Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Scopewalker

БесплатноНе проверен

MCP server providing codebase analysis tools for AI assistants, including line counts, function metrics, threshold checks, and code quality detection.

GitHubEmbed

Описание

MCP server providing codebase analysis tools for AI assistants, including line counts, function metrics, threshold checks, and code quality detection.

README

Buy Me A Coffee

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 totals
  • get_functions - function and method detection; per-file counts, or per-function line metrics via detail=lines with a min_lines filter for hunting oversized functions
  • get_complexity_metrics - max/average nesting depth and parameter counts (JSX props included), import counts, and a cognitive-complexity score per file, with hotspots flagged for deeply nested or over-parameterized functions
  • check_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 default
  • get_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 casts in TypeScript
  • get_prop_drilling - parameter names threaded through many functions and files, with forwarding evidence and a high/medium/low risk rating

It'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, Gemini CLI, Codex, or anything else that speaks MCP.

See TOOLS.md for the quick reference and docs/ for per-tool parameters and example responses.

Safety Defaults

  • No network access: All analysis runs locally over stdio — no data leaves your machine, no API keys or external services involved.
  • 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 limit is set.
  • Comment redaction: get_code_smells redacts comment text by default; pass include_text: true to return snippets explicitly.

Requirements

  • Node.js 22+
  • tokei - Install via brew install tokei or cargo install tokei

Installation

npm install
npm run build

Configuration

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

See 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.js

See Codex MCP documentation for details.

Usage

Once configured, the assistant calls Scopewalker's tools on its own — no special syntax needed. Ask things like:

  • "Check this repo against our size thresholds before I commit"
  • "Which functions in src/ have the highest cognitive complexity?"
  • "Find undocumented exports in src/auth"
  • "Are there any TODO/FIXME/HACK markers left in this module?"
  • "Show me functions that take more than 5 parameters"

It picks the right tool and parameters for the request.

This repo also dogfoods its own tools via Claude Code skills and agents:

Development

npm run build          # Build the project
npm run check          # Lint + typecheck
npm run test           # Run tests
npm run test:coverage  # Run tests with coverage

See CONTRIBUTING.md for contribution guidelines and docs/patterns.md for tool registration, error handling, and testing patterns.

Supported Languages

Function detection and parsing support:

  • TypeScript/JavaScript
  • Python
  • Go
  • Rust
  • Java
  • C/C++
  • Ruby

License

MIT

from github.com/timohaa/scopewalker-mcp

Установка Scopewalker

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/timohaa/scopewalker-mcp

FAQ

Scopewalker MCP бесплатный?

Да, Scopewalker MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Scopewalker?

Нет, Scopewalker работает без API-ключей и переменных окружения.

Scopewalker — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Scopewalker в Claude Desktop, Claude Code или Cursor?

Открой Scopewalker на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Scopewalker with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development