gitwtfhub

wtf is scopewalker-mcp?

timohaa/scopewalker-mcp — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 3/5LicenseSetup · easy

TL;DR

A local MCP server that gives AI coding assistants tools to check code size, complexity, documentation coverage, and code smells before they commit.

Mindmap

mindmap
  root((Scopewalker MCP))
    What it does
      Analyzes codebase quality
      Flags size violations
      Detects code smells
    Tech stack
      TypeScript
      tree-sitter
      tokei
      MCP
    Use cases
      Enforce standards
      Documentation coverage
      Complexity metrics
    Audience
      Developers
      AI coding agents

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Enforce file and function size limits before an AI coding agent commits changes.

REASON 2

Find undocumented functions, classes, and exports in a codebase.

REASON 3

Detect TODO, FIXME, and other code smell markers left in comments.

REASON 4

Spot prop drilling and overly complex functions across a project.

What's in the stack?

TypeScriptNode.jstree-sittertokeiMCP

How it stacks up

timohaa/scopewalker-mcp0xradioac7iv/tempfs52191314/web-agent-proxy-sdk
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires Node.js 22+ and the tokei binary installed separately via brew or cargo.

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

Wtf does this do

Scopewalker MCP is a tool that helps AI coding assistants keep code quality in check. AI agents will often create huge files or add too many parameters to a function even when told not to, so Scopewalker gives the assistant a way to actually check the codebase and enforce stricter standards instead of just following instructions blindly. It works as a local MCP server, a kind of plugin format that AI coding assistants like Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, and OpenAI Codex CLI can connect to. It runs entirely on your machine over standard input and output, makes no network calls, and offers eight read only tools the assistant can call. These tools count lines of code per file, detect functions and measure their length, calculate complexity scores like nesting depth and parameter counts, flag files or functions that exceed size limits, list out classes, functions, and other code structures, measure how much of the code has documentation comments, find markers like TODO or FIXME left in comments, and detect when the same parameter name gets passed through many functions and files, a pattern known as prop drilling. Under the hood it relies on existing tools rather than writing its own parser: tree-sitter for reading code structure, tokei for counting lines, and fast-glob for finding files. It has been tested on macOS with Claude Code but should work with any tool that speaks the MCP protocol. For safety, it only looks inside allowed folders, which default to your current working directory and the system temp folder, skips very large files to avoid slowing down your machine, and limits how much output it returns unless you ask for more. To use it you need Node.js 22 or newer and tokei installed separately, then you can install the package from npm or configure your AI assistant to run it directly with npx, no manual build required unless you want to develop it further. It supports analyzing TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, and Ruby code, and is released under the MIT license.

Yoink these prompts

Prompt 1
Add scopewalker-mcp to my Claude Code config and check this repo against size thresholds.
Prompt 2
Ask my AI assistant which functions in src/ have the highest cognitive complexity using this MCP server.
Prompt 3
Use scopewalker-mcp to find undocumented exports in a specific folder.
Prompt 4
Show me how to configure scopewalker-mcp in Cursor or VS Code.

Frequently asked questions

wtf is scopewalker-mcp?

A local MCP server that gives AI coding assistants tools to check code size, complexity, documentation coverage, and code smells before they commit.

What language is scopewalker-mcp written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, tree-sitter.

What license does scopewalker-mcp use?

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

How hard is scopewalker-mcp to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is scopewalker-mcp for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.