
mcp attr example cargo metadata
AI任せで作ってみたMCP Server
Repository Info
About This Server
AI任せで作ってみたMCP Server
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Cargo Metadata MCP Server
このプロジェクトは、Model Context Protocol (MCP)を使用して、Cargo プロジェクトのメタデータ情報を提供するサーバーを実装しています。
機能
この MCP サーバーは以下の機能を提供します:
- プロジェクトのメタデータ情報の取得
- パッケージ情報の取得
- 依存関係リストの取得
- ビルドターゲットの取得
- ワークスペース情報の取得
- フィーチャー情報の取得
使い方
ビルド
cargo build --release
実行
cargo run
または、ビルド済みのバイナリを直接実行することもできます:
./target/release/mcp-attr-example-cargo-metadata
MCP クライアントとの連携
このサーバーを MCP クライアント(例:Claude Desktop)と連携するには、クライアントの設定ファイルに以下のように追加します:
{
"mcpServers": {
"cargo-metadata": {
"command": "path/to/mcp-attr-example-cargo-metadata"
}
}
}
提供されるツール
このサーバーは以下のツールを提供します:
get_metadata- プロジェクトのメタデータを取得しますget_package_info- プロジェクトのパッケージ情報を取得しますget_dependencies- プロジェクトの依存関係リストを取得しますget_targets- プロジェクトのビルドターゲットを取得しますget_workspace_info- プロジェクトのワークスペース情報を取得しますget_features- プロジェクトのフィーチャー情報を取得します
各ツールは、オプションで manifest_path パラメータを受け取ります。指定しない場合は、カレントディレクトリの Cargo.toml ファイルが使用されます。
技術的な詳細
このプロジェクトは以下の技術を使用しています:
- mcp-attr - MCP サーバーを宣言的に記述するための Rust クレート
- cargo_metadata - Cargo プロジェクトのメタデータを取得するための Rust クレート
- tokio - 非同期ランタイム
- serde - シリアライズ/デシリアライズフレームワーク
ライセンス
MIT または Apache-2.0
Quick Start
Clone the repository
git clone https://github.com/frozenlib/mcp-attr-example-cargo-metadataInstall dependencies
cd mcp-attr-example-cargo-metadata
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.