Skip to main content
Glama

Cargo Doc MCP Server

by spacemeowx2

貨物ドキュメント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をインストール

インストール

依存関係をインストールします:

pnpm install

サーバーを構築します。

pnpm run build

自動リビルドを使用した開発の場合:

pnpm run watch

使用法

次の構成を追加します。

{ "mcpServers": { "docs-rs-mcp": { "command": "/absolute/path/to/docs-rs-mcp/build/index.js" } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。

pnpm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

キャッシュシステム

サーバーは、パフォーマンス向上のため、ビルドされたドキュメントパスのキャッシュを維持します。ドキュメントを最新の状態に保つため、キャッシュエントリは24時間後に期限切れになります。

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Rust ドキュメントを管理するためのサーバー。ユーザーは cargo doc コマンドを使用して、ローカルで Rust ドキュメントを確認、ビルド、検索できます。

  1. 特徴
    1. ツール
  2. 要件
    1. インストール
      1. 使用法
        1. デバッグ
          1. キャッシュシステム
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Get the narrative and API documentation for the exact version of any of your dependencies. (Only Rust is supported at the moment.)
                Last updated -
                1
                43
                47
                TypeScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                Provides curated documentation access via the Gemini API, enabling users to query and interact with technical docs effectively by overcoming context and search limitations.
                Last updated -
                13
                TypeScript
              • -
                security
                F
                license
                -
                quality
                An 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 -
                3
                TypeScript
              • -
                security
                A
                license
                -
                quality
                An MCP server that enables interaction with the Vercel API to manage deployments, DNS records, domains, projects, and environment variables through natural language commands.
                Last updated -
                65
                TypeScript
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/spacemeowx2/cargo-doc-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server