Ast Metrics
@Halleck45
关于 Ast Metrics
Static code analyzer with MCP server. Gives AI agents access to complexity metrics, coupling analysis, community detection, risk scoring, and test quality, without reading every file.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"ast-metrics": {
"command": "ast-metrics",
"args": [
"mcp",
"."
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Ast Metrics?
Ast Metrics is a multi-language static code analyzer for Go, PHP, Python, Rust, TypeScript and more. It exposes architectural insights via MCP, allowing AI coding agents to query complexity hotspots, dependency graphs, coupling metrics, architectural communities, and test quality on demand without a server or account.
How to use Ast Metrics?
Install the tool with the provided curl command, then add the configuration shown to your .mcp.json file using the command ast-metrics with arguments ["mcp", "."].
Key features of Ast Metrics
- Analyze project overview, complexity, and maintainability.
- Retrieve file-level metrics (complexity, coupling, etc.).
- Identify riskiest code with composite score.
- Find functions/classes above complexity threshold.
- Get dependency subgraphs and coupling metrics.
- Detect architectural communities and test quality.
Use cases of Ast Metrics
- AI coding agents analyze code during development.
- Identify risky files prioritized for refactoring.
- Understand dependency relationships between components.
- Evaluate test quality and detect problematic tests.
- Discover architectural communities for modularization.
FAQ from Ast Metrics
What languages does Ast Metrics support?
It supports Go, PHP, Python, Rust, TypeScript, and more.
Does Ast Metrics require a server or account?
No server or account is needed. It works offline as a single binary.
How does Ast Metrics calculate risk?
It uses a composite score that combines complexity, coupling, and change frequency.
Can I get a high-level overview of my project?
Yes, the analyze_project tool provides a high-level overview of languages, average complexity, maintainability, and top risks.
How do I install Ast Metrics?
Run the provided curl command curl -s https://raw.githubusercontent.com/Halleck45/ast-metrics/main/scripts/download.sh|bash or download the binary directly.
开发工具 分类下的更多 MCP 服务器
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
评论