Codebase analysis tools for AI agents: complexity, prop drilling, doc coverage, code smells.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
AI agents will happily create 1000+ line source files and add a 20th parameter to a function call, even if there's a rule file telling them not to. Scopewalker exists to enforce stricter codebase standards.
It's a local MCP server (open source, runs over stdio, makes no network calls) that exposes 8 read-only tools:
get_line_counts - per-file line counts (total, code, blank, comment) with sorting, extension filters, and project-wide totalsget_functions - function and method detection; per-file counts, or per-function line metrics via detail=lines with a min_lines filter for hunting oversized functionsget_complexity_metrics - max/average nesting depth and parameter counts (JSX props included), import counts, a per-file cognitive-complexity score, and per-function cyclomatic complexity with high/extreme severity bands, plus hotspots flagged for deeply nested or over-parameterized functionscheck_thresholds - flags files and functions exceeding size thresholds (defaults: 300 lines per file, 100 per function)get_code_inventory - classes with their methods, functions, interfaces/types, enums, and constants, each marked exported or not; private symbols hidden by defaultget_documentation_coverage - coverage percentage plus every function, class, or method missing a doc comment (JSDoc, Python docstrings, Rust ///, and other per-language formats)get_code_smells - TODO/FIXME/HACK/XXX/BUG/UNUSED/DEPRECATED markers found by scanning actual comments via the AST (no false positives from string literals), plus as unknown as / as any as double casts in TypeScriptget_prop_drilling - parameter names threaded through many functions and files, with forwarding evidence and a high/medium/low risk ratingIt's tree-sitter (parsing) + tokei (line counting) + fast-glob (file discovery) under the hood; nothing is custom-parsed. Tested on macOS with Claude Code, but should work with Cursor, VS Code, Windsurf, Antigravity CLI, Codex, or anything else that speaks MCP.
See TOOLS.md for the quick reference, docs/ for per-tool parameters and example responses, and docs/usage-examples.md for a guide to wiring Scopewalker into skills, subagents, and AGENTS.md.
SCOPEWALKER_ALLOWED_ROOTS=/abs/path1,/abs/path2.max_files caps at 10000, max_depth at 64, limit at 5000.limit is set.get_code_smells redacts comment text by default; pass include_text: true to return snippets explicitly.brew install tokei or cargo install tokeiScopewalker is published to npm as scopewalker-mcp; no clone or build needed. Configure your MCP client to run it via npx (examples below), or install it globally with npm install -g scopewalker-mcp.
To build from source instead, see Development.
Or add to ~/.claude.json:
See Claude Code MCP documentation for details.
Download scopewalker-mcp.mcpb from the latest release and open it with Claude Desktop (or drag it into Settings > Extensions) for one-click installation.
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Or configure via File > Preferences > Cursor Settings > MCP.
See Cursor MCP documentation for details.
Add to .vscode/mcp.json in your workspace:
Requires VS Code 1.102+ with Agent Mode enabled.
See VS Code MCP documentation for details.
Add to ~/.codeium/windsurf/mcp_config.json:
Or configure via Windsurf Settings > Cascade > Manage MCPs.
See Windsurf MCP documentation for details.
Antigravity CLI (agy) replaced Gemini CLI in June 2026; MCP servers now
live in a dedicated config file instead of ~/.gemini/settings.json. Add
to ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json
(per project):
Use /mcp inside the prompt panel to check server status and reload the
config.
See Antigravity CLI MCP documentation for details, and the migration guide if you're coming from Gemini CLI.
Add to ~/.codex/config.toml:
Or use the CLI:
See Codex MCP documentation for details.
Once configured, the assistant calls Scopewalker's tools on its own; no special syntax needed. Ask things like:
src/ have the highest cognitive complexity?"src/auth"It picks the right tool and parameters for the request.
This repo also dogfoods its own tools via Claude Code skills and agents:
.claude/skills/review-changes/SKILL.md: runs check_thresholds and get_code_smells during pre-commit and full-repository reviews.claude/agents/standards-enforcer.md: uses the full tool set to find and fix standards violations.claude/agents/docs-reality-sync.md: uses get_code_inventory and get_functions to keep docs in sync with codeTo run from source instead of npm:
Then point your MCP client at the build output, e.g. claude mcp add --scope user scopewalker-mcp -- node /path/to/scopewalker-mcp/dist/index.js.
See CONTRIBUTING.md for contribution guidelines and docs/patterns.md for tool registration, error handling, and testing patterns.
The AST-based tools (everything except get_line_counts) parse:
.ts, .tsx, .js, .jsx, .mjs, .cjs).py).go).rs).java).c, .h, .cpp, .cc, .cxx, .hpp).rb)get_line_counts runs through tokei, so it reports on every language tokei recognizes. See docs/tools-overview.md for what is detected per language.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/scopewalker-mcp)<a href="https://allmcps.com/mcp/scopewalker-mcp"><img src="https://allmcps.com/api/badge/scopewalker-mcp?style=directory" alt="Scopewalker MCP on AllMCPs" /></a>