MCP.so
登录

code-analyze-mcp

@clouatre-labs

关于 code-analyze-mcp

aptu-coder: MCP server for AST analysis, call graphs, and code structure (tree-sitter)

基本信息

分类

开发工具

许可证

Apache-2.0

运行时

rust

发布者

clouatre-labs

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

10

boolean

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.

评论

开发工具 分类下的更多 MCP 服务器