
codebase-synapse
io.github.iwiels由 GitHub 帳號 iwiels 發布v0.1.13更新於 Oct 25, 2026
Indexes codebase into a local knowledge graph with 40+ AI tools and codebase-guard.
發布方自己的服務:Codebase
概覽
一個本機 MCP 伺服器,讀取預先建立的程式碼庫 SQLite 知識圖譜,讓助理搜尋程式碼、追蹤呼叫鏈並分析改動影響。
- 可以做什麼
- 搜尋與探索程式碼:語意搜尋、全文搜尋、符號搜尋、混合搜尋,以及結構相似度與跨專案符號定位。瀏覽知識圖譜:呼叫者與被呼叫者、匯入與相依方、最短路徑、死程式碼、PageRank 和類 Cypher 圖查詢。檢視架構:專案概觀、檔案結構、路由對應、模組邊界與叢集。分析 git 歷史:檔案考古、熱點、變更耦合和近期語意變更。維護記憶與上下文:持久與工作階段筆記、為編輯準備的預算上下文、工作集以及架構決策記錄。
- 適用情境
- 當助理需要針對大型程式碼庫給出有結構依據的答案而非猜測時適用,例如呼叫鏈、編輯前的相依影響、架構熱點或某個檔案的歷史。適合已在本機程式碼庫上使用支援 MCP 的程式設計客戶端的開發者。
- 執行需求
- 透過 npx 以 stdio 在本機執行(npm 套件,附 Windows、macOS 和 Linux 預編譯二進位檔)。需先用獨立的 CLI 指令為程式碼庫建立索引,索引寫入使用者家目錄下的本機 SQLite 資料庫。無需 Docker、雲端服務、API 金鑰或帳號,嵌入模型在本機執行。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 codebase-synapse,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🧠 Codebase Synapse
Give your AI agent a deep understanding of your entire codebase.
An MCP server that indexes your codebase into a local knowledge graph with 52 AI tools — semantic search, call-graph traversal, git archaeology, blast-radius analysis, and more.
[Codebase Synapse — Knowledge graph visualization]
Works with Claude Code · Cursor · Windsurf · Zed · Any MCP client
The Problem
AI coding agents (Claude, Cursor, etc.) are powerful — but they work with limited context. They can only see the files you open or feed them. Ask about call chains, architectural patterns, or blast-radius impact, and they guess.
Codebase Synapse fixes this. It indexes your entire repo into a local knowledge graph stored in SQLite, giving your AI agent real answers backed by structural analysis — not hallucinations.
How it works
⚡ Quick Start
1. Index your project (CLI, Zoekt-style)
Indexing runs as a separate CLI command and writes into ~/.codebase-synapse/codebase.db. The first index is the slow one; re-running it only re-indexes changed files. The MCP server never indexes — it only reads the pre-built index.
2. Start the MCP server
That's it. No Docker. No database setup. No cloud. The server starts via stdio and serves the pre-built index to your MCP client.
Configure your client
Claude Code / Claude Desktop
Add to your claude_desktop_config.json or mcp_servers.json:
Cursor
Add to your .cursor/mcp.json:
Other MCP clients
Any MCP client that supports stdio transport works. Just point it at:
✨ What It Does
🔍 Search & Discovery
🕸️ Knowledge Graph
🏗️ Architecture
🔬 Git Archaeology
🧠 Memory & Context
🛡️ Codebase Guard
Included as a bonus: codebase-guard is a PreToolUse hook for Claude Code that blocks writes to high-impact files until the agent runs impact_analysis first.
It uses PageRank scores and blast-radius data from the knowledge graph to identify architectural hubs. No more accidental edits to core files.
🔧 Technical Details
Supported Languages
Rust · Python · TypeScript · JavaScript · Go · Java · C# · PHP · C · C++
Architecture
🤝 Contributing
Contributions are welcome! The project uses standard Rust tooling:
📄 License
來源:README.md,提交 41a965b
工具
0版本歷史
1- v0.1.13最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。
其他 Codebase 整合
Codebase
design.codebase官方發布者
讓 AI 助理建置、預覽和更新網頁應用程式、下載原始碼,並在使用者允許時發布。
Reactable Codebase Readiness Assessments
由 GitHub 帳號 reactable-io 發布
遠端 MCP 伺服器,可在 AI 代理中依 12 個面向為程式碼庫評分,並提供問題發現、修正提示與重新評估。

Codebase Doctor
由 GitHub 帳號 subhajitlucky 發布
唯讀的程式碼庫稽核工具,讓編碼助理掃描儲存庫中的密鑰、相依性漂移、RLS 與驗證問題,並給出附覆蓋範圍說明的審查結論。

Dsh Codebase Chat
由 GitHub 帳號 shinzarou-eng 發布
一個本地優先的 MCP 伺服器,能針對程式碼庫提供附引用的回答,並產生稽核與報告。

Codebase Chat
由 GitHub 帳號 shinzarou-eng 發布
本地優先的程式碼庫智慧 MCP 伺服器,讓助理針對整個儲存庫問答、搜尋、稽核並安全修改程式碼,答案附上檔案與行號引用。