
Agentsbestfriend
io.github.TheRealFloatDev由 GitHub 帳號 TheRealFloatDev 發布v0.12.0更新於 Oct 24, 2026
MCP that provides fast, token-efficient tools for navigating, searching, and understanding codebases
概覽
一個本機 MCP 伺服器,為編碼助理提供節省 token 的工具,用來搜尋、瀏覽與分析專案程式碼庫。
- 可以做什麼
- AgentsBestFriend 會將專案索引到本機 SQLite 資料庫,並提供程式碼搜尋(精確、關鍵字或語意)、符號與程式碼區塊擷取、專案概觀、匯入圖、影響範圍與爆炸半徑分析、相關測試排序、TypeScript 診斷、定義/懸停查詢、呼叫圖,以及 git log/blame/diff 等工具。它也提供唯讀的變更預覽與重構規劃工具,以及一個可選的原子寫入工具。可選的 Ollama 整合可產生 LLM 檔案摘要與嵌入向量。
- 適用情境
- 當助理在大型程式碼庫中反覆重讀檔案或盲目搜尋,而你希望取得關於符號、相依性與變更影響的緊湊結構化答案時,它很有用。最適合 TypeScript/JavaScript 專案,對 Python 提供以正規表達式為基礎的支援。
- 執行需求
- 透過 stdio 在本機執行,通常使用 npx agentsbestfriend start 或全域 npm 安裝。需要 Node.js 20 或更新版本、ripgrep 與 git。Ollama 為選用,用於摘要與語意搜尋。環境變數 ABF_PROJECT_ROOT 用於指定專案根目錄,未設定時預設為目前工作目錄。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agentsbestfriend,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
AgentsBestFriend (abf)
Give your AI coding agents superpowers — a local MCP server for fast, token-efficient code navigation, search & analysis.
Works with VS Code Copilot, Cursor, Claude Code/Desktop, Codex, Cline, Zed, Gemini CLI, Goose, OpenCode, and any other MCP-compatible agent.
Why?
AI coding agents waste tokens re-reading files and searching blindly. ABF gives them purpose-built tools that return exactly what they need — in compact, structured responses that preserve context.
Tools
Install
Prerequisites
- Node.js ≥ 20
- ripgrep —
brew install ripgrep(macOS) /apt install ripgrep(Linux) - git
- Ollama (optional) — for summaries & semantic search: ollama.com
Quick Start
abf init walks you through everything:
- Indexes your project — discovers and indexes all files via
git ls-files - Generates LLM summaries & embeddings (if Ollama is running) — with live
(12/80)progress - Adds
.abf/to.gitignore— prompts before writing - Installs ABF as an MCP server for your agents — you pick which agents (Cursor, VS Code, Claude Code, etc.) and whether to use
npx agentsbestfriend start(always latest) orabf start(local install)
Manual Agent Setup
If you prefer to configure manually, add ABF as a stdio MCP server. Using npx is recommended — it always runs the latest published version without requiring a global install:
VS Code / GitHub Copilot (.vscode/mcp.json):
Cursor (.cursor/mcp.json):
Claude Desktop (claude_desktop_config.json):
Set
ABF_PROJECT_ROOTin theenvblock if the agent does not pass its working directory automatically.
CLI Commands
How It Works
ABF maintains a lightweight SQLite index (.abf/index.db) inside each project root. The index is built once and updated incrementally — only changed files are re-processed. A file watcher keeps it current as you edit.
Optional: LLM Enrichment
With Ollama running locally, ABF generates file summaries and embeddings:
Both abf init and abf portal → Re-index show live progress:
Large files are automatically split into chunks for embedding — no context-length errors.
Without Ollama, all tools still work normally. Semantic search falls back to keyword mode.
Configuration
Global config at ~/.abf/config.json. Edit interactively with abf config or via abf portal.
Architecture
Built with Turborepo + pnpm workspaces. Core modules:
Development
Links
- GitHub: github.com/TheRealFloatDev/AgentsBestFriend
- npm: npmjs.com/package/agentsbestfriend
- Issues: github.com/TheRealFloatDev/AgentsBestFriend/issues
- MCP Spec: modelcontextprotocol.io
License
MIT
來源:README.md,提交 f44860a
工具
0版本歷史
1- v0.12.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。