Cargo Doc MCP Server

local-only server

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

Integrations

  • Enables management of Rust documentation through cargo doc commands, providing tools to check, build, and search Rust documentation locally. Features include retrieving crate documentation pages, listing symbols (structs, enums, traits), and searching within crate documentation.

화물 문서 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 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

You must be authenticated.

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

사용자가 cargo doc 명령을 통해 로컬에서 Rust 문서를 확인하고, 빌드하고, 검색할 수 있도록 하는 Rust 문서를 관리하는 서버입니다.

  1. Features
    1. Tools
  2. Requirements
    1. Installation
      1. Usage
        1. Debugging
          1. Cache System
            1. License
              ID: l4augy7aft