MCP.so
登录

Cargo Metadata MCP Server

@frozenlib

基本信息

分类

其他

传输方式

stdio

作者

frozenlib

关于 Cargo Metadata MCP Server

AI任せで作ってみたMCP Server

Cargo Metadata MCP Server 配置

暂无标准配置

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

代码仓库

Cargo Metadata MCP Server 工具

工具列表暂未提供

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

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Cargo Metadata MCP Server?

Cargo Metadata MCP Server implements a Model Context Protocol (MCP) server that exposes metadata from Cargo (Rust) projects. It provides tools to retrieve package information, dependencies, build targets, workspace details, and feature flags. This tool is for developers working with Rust projects who want to inspect Cargo metadata programmatically via MCP clients.

How to use Cargo Metadata MCP Server?

Build the server with cargo build --release, then run it with cargo run or directly execute ./target/release/mcp-attr-example-cargo-metadata. To integrate with MCP clients like Claude Desktop, add the server configuration to the client settings JSON, specifying the command path to the binary.

Key features of Cargo Metadata MCP Server

  • Get project metadata
  • Get package information
  • Get dependencies list
  • Get build targets
  • Get workspace information
  • Get features information

Use cases of Cargo Metadata MCP Server

  • Inspect Rust project metadata programmatically
  • Analyze dependencies in a Cargo workspace
  • Retrieve feature flags for conditional compilation
  • Check build targets for cross-compilation

常见问题

1

What dependencies does this server require?

It requires a Rust runtime and uses the `cargo_metadata`, `mcp-attr`, `tokio`, and `serde` crates.

2

How do I connect this server with Claude Desktop?

Add an entry to the MCP client configuration JSON with the command field pointing to the server binary (e.g., `"command": "path/to/mcp-attr-example-cargo-metadata"`).

3

Can I specify a different Cargo.toml file?

Yes, each tool accepts an optional `manifest_path` parameter. If omitted, the current directory’s Cargo.toml is used.

4

What is the license for this server?

The project is licensed under MIT or Apache-2.0.

5

What tools does the server expose?

It exposes six tools: `get_metadata`, `get_package_info`, `get_dependencies`, `get_targets`, `get_workspace_info`, and `get_features`.

评论

其他 分类下的更多 MCP 服务器