Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Chizu MCP - Codebase Map & Impact TracingNew to Visual Studio Code? Get it now.
Chizu MCP - Codebase Map & Impact Tracing

Chizu MCP - Codebase Map & Impact Tracing

Shunsuke F

|
14 installs
| (0) | Free
Give Copilot Chat a compact codebase map, symbol ranges, bounded source reads, and VS Code language-server caller trees before it edits your project.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Chizu MCP

Give the agent a map before it touches the codebase.

Chizu is a Model Context Protocol (MCP) server for VS Code and GitHub Copilot Chat. It combines a compact codebase map, Tree-sitter ASTs, VS Code language services, dependency analysis, and guarded editing so an agent can inspect impact before changing code.

Why Chizu?

AI coding agents often begin with broad searches or whole-file reads. Chizu changes the order of operations:

  1. Read the project map and symbol tree.
  2. Read only the relevant bounded ranges.
  3. Trace callers, types, dependencies, and the current Git diff.
  4. Preview a symbol replacement or project rename.
  5. Apply only after review and validation.

What It Provides

Navigation and context

  • chizu_get_project_tree: a hierarchical .gitignore-aware file tree with AST symbols, imports, important files, depth limits, and file caps.
  • chizu_get_symbol_tree: classes, functions, methods, properties, signatures, and zero-based ranges from Tree-sitter, with VS Code language-service fallback.
  • chizu_read_file_range: at most 400 lines from a workspace-relative file.
  • chizu_get_symbol_type_context: type-definition locations and bounded source ranges resolved through VS Code.
  • chizu_find_symbol_callers: a bounded caller tree with path-aware cycle detection and ready, timeout, or unavailable status.

Impact and architecture analysis

  • chizu_analyze_diff_impact: maps the current Git diff to changed AST symbols and traces each symbol's callers.
  • chizu_check_architecture_health: resolves imports, ranks files, detects dependency cycles, and evaluates optional forbidden-layer rules.
  • AST cache invalidation responds to open-document versions, disk modification times, saves, deletes, and explicit edits.

Guarded changes

  • chizu_replace_symbol_body: previews or applies one complete Tree-sitter symbol replacement.
  • chizu_rename_symbol_safely: previews or applies a VS Code rename across workspace files.

Write operations default to preview. To apply them, enable chizu.allowEdits explicitly after reviewing the preview. Applied changes are rolled back when Tree-sitter reports a syntax error or VS Code reports new error diagnostics.

MCP Resources and Prompt

  • chizu://workspace/map: compact workspace and symbol map.
  • chizu://workspace/architecture: dependency rankings, cycles, and layer violations.
  • chizu://workspace/diagnostics: diagnostics from open workspace documents.
  • chizu-safe-change: a prompt that guides map inspection, impact tracing, preview, guarded application, and post-change verification.

Supported Languages

Chizu includes Tree-sitter WASM parsers for TypeScript, TSX, JavaScript, JSX, Python, and C#. VS Code language providers still supply references, type definitions, rename edits, fallback symbols, and diagnostics for each language.

How It Works

The VS Code extension runs a loopback-only bridge inside the extension host. It registers one stdio MCP server per open workspace root. The stdio server sends authenticated requests to the bridge with a random per-session token.

The bridge calls VS Code language services and local parsers without exposing a general command runner:

  • vscode.executeDocumentSymbolProvider
  • vscode.executeReferenceProvider
  • vscode.executeTypeDefinitionProvider
  • vscode.executeDocumentRenameProvider
  • VS Code workspace edits, diagnostics, and text document access

For diff analysis, the extension invokes only the fixed git diff --no-ext-diff --unified=0 HEAD -- command in the validated workspace root.

Quick Start

  1. Install Chizu from the VS Code Marketplace, or open Quick Open (Ctrl+P / Cmd+P) and run:

    ext install ShunsukeF.chizu-mcp
    
  2. Open a workspace and wait for its language extensions to finish indexing.

  3. Ask Copilot Chat to read chizu://workspace/map or call chizu_get_project_tree.

  4. Use chizu_get_symbol_tree and chizu_read_file_range for the smallest relevant source ranges.

  5. Run chizu_find_symbol_callers, chizu_analyze_diff_impact, or chizu_check_architecture_health before a risky change.

  6. Preview chizu_replace_symbol_body or chizu_rename_symbol_safely. Enable chizu.allowEdits only when applying is intended.

Limits

  • Reference, type-definition, and rename accuracy depends on the language extensions installed in VS Code.
  • Cross-workspace references outside the open workspace root are not expanded.
  • Caller traversal defaults to depth 2, supports at most depth 5, and returns at most 200 nodes.
  • File trees are capped at 10,000 files and folded by directory depth.
  • Bounded source and type-definition reads prevent whole-file requests through Chizu.
  • Large workspaces can still need time for the underlying language server to finish indexing.

Privacy and Safety

Chizu does not transmit source code to its own external service. Source data is returned through VS Code's local MCP channel to the connected MCP client. The bridge is bound to 127.0.0.1 and requires a random token known only to the extension host and its child server.

Paths must be workspace-relative and stay within an open workspace root. Edits are disabled by default, require an explicit apply: true, and use syntax and diagnostics checks with rollback. Chizu does not expose a general shell or arbitrary file-write tool.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft