Scopewalker MCP
Integrates with GitHub Copilot in VS Code to provide codebase health analysis and complexity metrics.
Allows OpenAI Codex CLI to access codebase analysis tools such as threshold checks, complexity metrics, and code smell detection.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Scopewalker MCPcheck thresholds in the src directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Scopewalker MCP
An MCP (Model Context Protocol) server providing codebase analysis tools for AI assistants.
Why Scopewalker?
AI coding agents perform better on codebases that follow complexity standards. Small, focused files and functions are easier to understand, modify safely, and fit within context windows. Scopewalker gives agents visibility into code health metrics, enabling them to:
Verify size limits before committing (default: files <300 lines, functions <100 lines, configurable)
Identify complex code that needs refactoring before modification
Find undocumented code that may cause misunderstanding
Navigate unfamiliar codebases efficiently
See AGENTS.md for a sample integration.
Related MCP server: flyto-indexer
Features
Scopewalker MCP provides 8 tools organized into three categories:
Core Analysis
get_line_counts- Line count metrics via tokeiget_functions- Function counts and per-function line metrics
Codebase Health
check_thresholds- Find oversized files and functionsget_code_inventory- Classes, methods, functions, and exports inventoryget_complexity_metrics- Nesting depth, parameters, cognitive complexity
Code Quality
get_documentation_coverage- Undocumented symbol detectionget_code_smells- Detect TODO, FIXME, HACK, BUG, and other markers plus unsafe castsget_prop_drilling- Detect parameter threading (prop drilling) across function chains
See TOOLS.md for detailed parameter and response documentation.
Safety Defaults
Path scoping: All tools only operate inside allowed roots (defaults: current working directory and system temp). Override with
SCOPEWALKER_ALLOWED_ROOTS=/abs/path1,/abs/path2.Large file guard: AST-based tools skip files larger than 1 MB to avoid excessive memory/CPU use. Tokei-based line counts do not enforce this limit.
Output limits: Tools default to returning 20 files/items unless
limitis set.Comment redaction:
get_code_smellsredacts comment text by default; passinclude_text: trueto return snippets explicitly.
Requirements
Node.js 22+
tokei - Install via
brew install tokeiorcargo install tokei
Installation
npm install
npm run buildConfiguration
Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"scopewalker-mcp": {
"command": "node",
"args": ["/path/to/scopewalker-mcp/dist/index.js"]
}
}
}Or use the CLI:
claude mcp add scopewalker-mcp --scope user -- node /path/to/scopewalker-mcp/dist/index.jsSee Claude Code MCP documentation for details.
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"scopewalker-mcp": {
"command": "node",
"args": ["/path/to/scopewalker-mcp/dist/index.js"]
}
}
}Or configure via File > Preferences > Cursor Settings > MCP.
See Cursor MCP documentation for details.
VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"scopewalker-mcp": {
"command": "node",
"args": ["/path/to/scopewalker-mcp/dist/index.js"]
}
}
}Requires VS Code 1.102+ with Agent Mode enabled.
See VS Code MCP documentation for details.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"scopewalker-mcp": {
"command": "node",
"args": ["/path/to/scopewalker-mcp/dist/index.js"]
}
}
}Or configure via Windsurf Settings > Cascade > Manage MCPs.
See Windsurf MCP documentation for details.
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"scopewalker-mcp": {
"command": "node",
"args": ["/path/to/scopewalker-mcp/dist/index.js"]
}
}
}See Gemini CLI MCP documentation for details.
OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.scopewalker-mcp]
command = "node"
args = ["/path/to/scopewalker-mcp/dist/index.js"]Or use the CLI:
codex mcp add scopewalker-mcp -- node /path/to/scopewalker-mcp/dist/index.jsSee Codex MCP documentation for details.
Development
npm run build # Build the project
npm run check # Lint + typecheck
npm run test # Run tests
npm run test:coverage # Run tests with coverageSee CONTRIBUTING.md for contribution guidelines.
Supported Languages
Function detection and parsing support:
TypeScript/JavaScript
Python
Go
Rust
Java
C/C++
Ruby
Architecture
Scopewalker MCP is a thin orchestration layer over battle-tested libraries:
Task | Library |
Line counting | tokei (CLI) |
Code parsing | tree-sitter |
File discovery | fast-glob |
Input validation | zod |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/timohaa/scopewalker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server