timohaa/scopewalker-mcp
Scopewalker MCP
Codebase analysis MCP server for AI agents: complexity metrics, size thresholds, prop drilling, and code smell detection built on tree-sitter and tokei.
0stars
timohaa/scopewalker-mcp
Scopewalker MCP
Local MCP server providing 8 read-only codebase analysis tools: complexity metrics, size thresholds, prop drilling, and code smell detection using tree-sitter and tokei.
Visit project- First shared
- Jul 3, 2026
- HN activity
- 10
Show HN@thaanpaaJul 3, 2026
Show HN: Scopewalker, an MCP server for codebase complexity metrics
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. So I built Scopewalker: a local MCP server (open source, runs over stdio, and makes no network calls) that gives agents actual numbers to check against. It gives the agent 8 read-only tools: line counts, cognitive complexity/nesting/parameter counts, an oversized-file/function checker against configurable thresholds, doc coverage, code smell detection (TODO/FIXME/HACK in comments and unsafe casts), and prop-drilling detection. It's tree-sitter + tokei + fast-glob under the hood; nothing is custom-parsed. Tested on macOS with Claude Code, but should work with Cursor, VS Code, Windsurf, Gemini CLI, Codex, or anything else that speaks MCP. TS/JS, Python, Go, Rust, Java, C/C++, and Ruby. I've actually been sitting on this for a while, because it's mostly vibe-coded. But I've used it and kept refining and fixing it for months, and it seems to work. Plus my colleague finally pushed me into polishing the repo and making it public.
Community