Skip to content

Quick start

From your project root:

Terminal window
npx @abdulmunimjemal/codescope install
Terminal window
✓ 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.

codescope speaks MCP over stdio. The server command is:

Terminal window
codescope mcp /path/to/your/repo

Claude 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.

You don’t need an agent to use codescope — the CLI exposes every tool:

Terminal window
codescope index . # build the graph, print stats
codescope search useState # fuzzy symbol search
codescope get GraphStore # jump to a definition
codescope callers parseSource # who calls this
codescope impact GraphStore # blast radius before a change
codescope context "auth flow" # ranked relevance map for a task
codescope affected src/store.ts # which tests a change affects
Terminal window
$ codescope callers parseSource
src/indexer.ts:97 indexFile

The index lives in .codescope/graph.db — add .codescope/ to your .gitignore. codescope already respects your repo’s .gitignore when indexing.