# agentsbestfriend [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/TheRealFloatDev/AgentsBestFriend  
**GitHub Stars:** 0  
**npm Downloads (last month):** 306  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentsbestfriend

## Description
MCP that provides fast, token-efficient tools for navigating, searching, and understanding codebases

## Tools
Capabilities this server exposes over MCP:

- **abf_search** — Code search — exact (ripgrep), keyword-ranked, or semantic (embedding-based)
- **abf_search_multi** — Run multiple search queries (exact/keyword/semantic) in one call with weighted score merging
- **abf_symbols** — Functions, classes, exports in a file (AST-based for TS/JS, regex for Python)
- **abf_chunk** — Smart file chunk by symbol name, chunk index, or file overview
- **abf_project_overview** — Tech stack, folder structure, key dependencies at a glance
- **abf_dependencies** — Import graph — who imports what
- **abf_impact** — Find all usages of a symbol across the project
- **abf_impact_typed** — AST-aware (ts-morph) impact analysis with classified references (definition/call/import/type_ref/jsx) and confidence levels
- **abf_blast_radius** — BFS over reverse-import graph for a file with risk scoring (low/medium/high)
- **abf_related_tests** — Heuristically rank test files most likely to cover a file or symbol
- **abf_preview_changes** — Read-only preview: diff + symbol/import deltas + risk flags + external usage probe (no writes)
- **abf_refactor_plan** — Read-only ordered edit plan for rename/move/extract/split with collision detection
- **abf_apply_edit** — Write tool** — atomic file write with sha256 hash check (disabled unless `ABF_ENABLE_WRITES=1`)
- **abf_diagnostics** — TypeScript diagnostics (errors/warnings) for one file or all tracked TS/JS files
- **abf_definition** — Goto-definition via the TypeScript language service — file, line range, and source preview
- **abf_hover** — Type signature + JSDoc for an identifier (IDE-style hover)
- **abf_call_graph** — Transitive callers/callees of a function or method (TS/JS, ts-morph)
- **abf_git** — Git log, blame, diff (recent/staged/unstaged)
- **abf_file_summary** — Full-text search across LLM-generated file summaries (FTS5, OR/AND mode)
- **abf_conventions** — Detected naming, structure, and formatting conventions
- **abf_index** — Index status, rebuild, incremental update, or trigger re-summarization
- **abf_ping** — Health check — returns version and project root

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agentsbestfriend": {
    "command": "npx",
    "args": ["-y","agentsbestfriend"],
    "env": {
      "ABF_ENABLE_WRITES": "",
      "ABF_PROJECT_ROOT": ""
    }
  }
}
```

**Requires environment variables:** `ABF_ENABLE_WRITES`, `ABF_PROJECT_ROOT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What agentsbestfriend MCP server does

The agentsbestfriend MCP server gives coding agents structured access to a local repository. It can search source code with exact, keyword-ranked, or embedding-based methods; combine several searches; inspect symbols; retrieve file sections; and summarize a project's technology stack, directory layout, and dependencies.

Analysis tools cover import relationships, symbol usage, reverse-import blast radius, likely related tests, TypeScript diagnostics, definitions, hover information, and transitive call graphs. Git support includes log, blame, and recent, staged, or unstaged diff data. Read-only change planning can produce a preview or an ordered refactoring plan for operations such as rename, move, extract, or split.

A write operation is available through `abf_apply_edit`, but it is disabled unless `ABF_ENABLE_WRITES=1` is set. When enabled, the tool performs an atomic file write with a SHA-256 hash check.

## How it works

The server keeps a lightweight SQLite database at `.abf/index.db` in each project root. Files are discovered through `git ls-files`, and changed files are reprocessed incrementally. A watcher can keep the index current while files are edited. The database stores file metadata and summaries, extracted symbols, import edges, embeddings, smart chunks, and an FTS5 index over summaries.

TypeScript and JavaScript analysis uses AST-based processing, including ts-morph for typed impact analysis and call graphs. Python symbol extraction uses regular expressions. File chunks can follow symbol boundaries, which helps tools return focused context rather than entire files.

Ollama is optional. If it is running, the indexer can create file summaries with `qwen2.5-coder:1.5b` and embeddings with `nomic-embed-text`. Without Ollama, the tools remain available and semantic search falls back to keyword search.

## Setup and configuration

Install the package globally with `npm install -g agentsbestfriend`, then run `abf init`. Initialization indexes the project, optionally generates summaries and embeddings, adds `.abf/` to `.gitignore` after prompting, and guides MCP setup for supported agents.

The server itself starts in stdio mode with `abf start`. An MCP client can launch `npx agentsbestfriend start`; set `ABF_PROJECT_ROOT` in the client environment when the client does not provide the working directory. The CLI also provides commands for indexing, status checks, configuration, health checks, and the interactive portal.

Global settings are stored in `~/.abf/config.json`. Configuration covers the Ollama endpoint and models, automatic watching, Git-ignore handling, maximum file size, excluded patterns, and the default result count.

## Tools and capabilities

The agentsbestfriend MCP server exposes tools for:

- Exact, keyword, semantic, and multi-query code search.
- Symbols, chunks, definitions, hover data, diagnostics, and call graphs.
- Project overview, dependencies, conventions, file-summary search, and index management.
- Impact analysis, blast-radius scoring, related-test ranking, and Git inspection.
- Read-only change previews and refactoring plans, plus optional guarded file writes.

## Limitations and notes

The server requires Node.js 20 or newer, ripgrep, and Git. Ollama is not required, but semantic search and LLM-generated summaries depend on it. Language coverage differs by feature: AST-oriented capabilities target TypeScript and JavaScript, while Python symbol discovery uses regex-based extraction. The write tool is off by default and must be explicitly enabled.

_Full upstream README: https://allmcps.com/mcp/agentsbestfriend/readme_

