Quick start
1. Wire it into your agent (the easy way)
Section titled “1. Wire it into your agent (the easy way)”From your project root:
npx @abdulmunimjemal/codescope install ✓ added codescope for claude → .mcp.json ✓ added codescope for cursor → .cursor/mcp.json
Restart your agent to pick up the change.This merges a codescope MCP server entry into your agents’ configs without
touching anything else already there. Target one agent with --agent claude or
--agent cursor, or write to your home directory with --global.
Requires Node ≥ 18. Nothing to install globally — npx runs it on demand.
2. Or wire it by hand
Section titled “2. Or wire it by hand”codescope speaks MCP over stdio. The server command is:
codescope mcp /path/to/your/repoClaude Code — add to .mcp.json:
{ "mcpServers": { "codescope": { "command": "npx", "args": ["-y", "@abdulmunimjemal/codescope", "mcp", "."] } }}Cursor / Codex / any MCP client — same command:
npx -y @abdulmunimjemal/codescope mcp .
When it starts, codescope indexes the repo, begins watching for changes, and
serves the graph. Your agent now has tools like search_symbols, find_callers,
neighborhood, and context.
3. Try it from the terminal
Section titled “3. Try it from the terminal”You don’t need an agent to use codescope — the CLI exposes every tool:
codescope index . # build the graph, print statscodescope search useState # fuzzy symbol searchcodescope get GraphStore # jump to a definitioncodescope callers parseSource # who calls thiscodescope impact GraphStore # blast radius before a changecodescope context "auth flow" # ranked relevance map for a taskcodescope affected src/store.ts # which tests a change affects $ codescope callers parseSource src/indexer.ts:97 indexFileThe index lives in .codescope/graph.db — add .codescope/ to your
.gitignore. codescope already respects your repo’s .gitignore when indexing.
Next steps
Section titled “Next steps”- MCP tools — every tool your agent gets.
- How it works — the graph, incremental indexing, and resolution.
- Benchmarks — how it compares to codegraph.