code-analyze-mcp
@clouatre-labs
code-analyze-mcp について
aptu-coder: MCP server for AST analysis, call graphs, and code structure (tree-sitter)
基本情報
設定
ツール
10boolean
string
integer
Directory tree with LOC, function, and class counts; respects `.gitignore`
Functions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions
Lightweight function and import index (~75% smaller than `analyze_file`); returns graceful fallback (empty index with note) for unsupported extensions
Call graph for a named symbol across a directory; callers, callees, call depth
Create or overwrite a file; creates parent directories
Replace a unique exact text block; errors if zero or multiple matches; empty `new_text` deletes the block; CRLF normalized before matching
Run a shell command; returns stdout, stderr, exit code; output capped and filtered; optional `timeout_secs` (kill on expiry) and `drain_timeout_secs` (post-exit drain window); heredoc rejected before spawn (file-write pattern, stdin-consuming flag, stdin parameter conflict, or missing closing delimiter)
概要
What is code-analyze-mcp?
code-analyze-mcp is a standalone Model Context Protocol server that analyzes code structure using tree-sitter. It provides AI agents with directory structure, symbol definitions, and call graphs without reading raw files, supporting 18 programming languages.
How to use code-analyze-mcp?
Install via Homebrew (brew install clouatre-labs/tap/aptu-coder), cargo-binstall, or cargo install aptu-coder. Configure your MCP client with either streamable HTTP (recommended for multi-agent setups) or stdio transport. The server exposes tools such as analyze_directory, analyze_file, analyze_symbol, edit_overwrite, edit_replace, and exec_command.
Key features of code-analyze-mcp
- Offloads mechanical code analysis, reducing token usage and costs
- Supports 18 languages including Python, Rust, TypeScript, and C++
- Provides paginated outputs for large codebases
- Includes built-in output filters for common CLI tools
- OpenSSF Silver certified for security best practices
- Offers two transport modes: streamable HTTP and stdio
Use cases of code-analyze-mcp
- AI agents exploring unfamiliar codebases via directory trees and call graphs
- Reducing token consumption during large refactoring or auditing tasks
- Tracing symbol dependencies across multi-language projects
- Replacing raw file scanning with structured structural context
- Performing targeted file edits and shell command execution within MCP
FAQ from code-analyze-mcp
What languages does code-analyze-mcp support?
It supports 18 languages: Astro, C/C++, C#, CSS, Fortran, Go, HTML, Java, JavaScript, JSON, Kotlin, Markdown, Python, Rust, TOML, TSX, TypeScript, and YAML.
How do I install code-analyze-mcp?
Install via Homebrew (brew install clouatre-labs/tap/aptu-coder), cargo binstall aptu-coder (no Rust toolchain required), or cargo install aptu-coder (requires Rust).
How do I configure code-analyze-mcp with an MCP client?
Use streamable HTTP for multi-agent setups (e.g., brew services start aptu-coder then add streamable_http configuration) or stdio for single-client use (e.g., claude mcp add --transport stdio aptu-coder -- aptu-coder).
Does code-analyze-mcp provide benchmarks showing cost savings?
Yes. Benchmarks against Django (Python) and OpenFAST (Fortran) show 14%–68% fewer tokens and 21%–68% cheaper runs compared to native tool workflows.
What runtime dependencies are required?
The server is a standalone binary; no external runtime is needed beyond the operating system. For cargo install, the Rust toolchain is required; Homebrew and cargo-binstall do not require it.
「開発者ツール」の他のコンテンツ
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
OpenSumi
opensumiA framework helps you quickly build AI Native IDE products. MCP Client, supports Model Context Protocol (MCP) tools via MCP server.
コメント