MCP.so
登录
A

Ast Metrics MCP Server

@Halleck45

基本信息

关于 Ast Metrics MCP Server

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.

#static-analysis#code-quality#code-complexity#coupling#linter

Ast Metrics MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ast-metrics": {
      "command": "ast-metrics",
      "args": [
        "mcp",
        "."
      ]
    }
  }
}

Ast Metrics MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 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.

常见问题

1

What languages does Ast Metrics support?

It supports Go, PHP, Python, Rust, TypeScript, and more.

2

Does Ast Metrics require a server or account?

No server or account is needed. It works offline as a single binary.

3

How does Ast Metrics calculate risk?

It uses a composite score that combines complexity, coupling, and change frequency.

4

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.

5

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 服务器