貨物ドキュメントMCPサーバー
cargo doc コマンドを通じてRustドキュメントを管理するためのMCPサーバー。このサーバーは、Rustドキュメントをローカルでチェック、ビルド、検索するためのツールを提供します。
特徴
ツール
get_crate_doc
- 全体的な概念と使用方法を理解するための crate のメインドキュメントページを取得します- パラメータ:
project_path
: Rust プロジェクトへのパス (絶対パスである必要があります)crate_name
: ドキュメントを取得するクレートの名前
- パラメータ:
list_symbols
- クレートのドキュメント内のすべてのシンボル(構造体、列挙型、特性など)を一覧表示します- パラメータ:
project_path
: Rust プロジェクトへのパス (絶対パスである必要があります)crate_name
: シンボルを一覧表示するクレートの名前
- パラメータ:
search_doc
- クレート内のドキュメントを検索- パラメータ:
project_path
: Rust プロジェクトへのパス (絶対パスである必要があります)crate_name
: 検索するクレートの名前query
: 検索クエリ(キーワードまたはシンボル)limit
(オプション): 返される結果の最大数 (デフォルト: 10)
- パラメータ:
要件
- Node.js 16以降
- RustとCargoをインストール
インストール
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
使用法
次の構成を追加します。
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
キャッシュシステム
サーバーは、パフォーマンス向上のため、ビルドされたドキュメントパスのキャッシュを維持します。ドキュメントを最新の状態に保つため、キャッシュエントリは24時間後に期限切れになります。
ライセンス
マサチューセッツ工科大学
local-only server
The server can only run on the client's local machine because it depends on local resources.
Rust ドキュメントを管理するためのサーバー。ユーザーは cargo doc コマンドを使用して、ローカルで Rust ドキュメントを確認、ビルド、検索できます。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server that provides AI tools with access to Rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.Last updated -22TypeScript
- AsecurityAlicenseAqualityA documentation server based on MCP protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval.Last updated -251JavaScriptMIT License
- -securityAlicense-qualityA document-based MCP server that supports keyword searching and content retrieval from official website documentation.Last updated -5TypeScriptMIT License
- -securityAlicense-qualityA server that provides organized documentation content for various applications using the Model Context Protocol, enabling AI assistants to access quickstart guides and code examples.Last updated -PythonMIT License