Skip to main content
Glama
Cargo Doc MCP Server

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)

Related MCP server: MCP Rust Docs Server

요구 사항

  • Node.js 16 이상

  • Rust and Cargo 설치됨

설치

종속성 설치:

지엑스피1

서버를 빌드하세요:

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시간 후에 만료됩니다.

특허

MIT

Available Tools

3 tools
get_crate_docA

Get crate's main documentation page. Useful for unresolved imports (e.g. use get_crate_doc when seeing 'unresolved import tokio::sync') or understanding crate features.

Inputs: project_path (required), crate_name (required).

list_symbolsB

List all symbols in a crate. Use when implementing traits or exploring available types. Shows structs, enums, traits with their paths.

Inputs: project_path (required), crate_name (required).

search_docB

Search crate docs for specific features, error messages, or usage examples. Helps debug compilation issues or learn new APIs.

Inputs: project_path (required), crate_name (required), query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_crate_doc retrieves main documentation pages, list_symbols enumerates all symbols in a crate, and search_doc performs targeted searches within documentation. There is no overlap in functionality, making it easy for an agent to select the appropriate tool based on the task.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (get_crate_doc, list_symbols, search_doc) with clear, descriptive verbs. There are no deviations in naming conventions, making the tool set predictable and easy to understand.

    Tool Count3/5

    With only 3 tools, the server feels somewhat thin for a documentation-focused domain, as it might lack operations like updating or managing documentation. However, the tools cover core use cases, so it's borderline but not severely mismatched.

    Completeness4/5

    The tools provide good coverage for basic documentation tasks: retrieving main docs, listing symbols, and searching. Minor gaps exist, such as no direct support for navigating between documentation sections or handling version-specific docs, but agents can likely work around these limitations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers