PromptExecution/rust-cargo-docs-rag-mcp
MCP tools for Rust Context Engineering (rustdocs, rust analyzer)
Platform-specific configuration:
{
"mcpServers": {
"rust-cargo-docs-rag-mcp": {
"command": "npx",
"args": [
"-y",
"rust-cargo-docs-rag-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
rust-cargo-docs-rag-mcp is an MCP (Model Context Protocol) server that provides tools for Rust crate documentation lookup. It allows LLMs to look up documentation for Rust crates they are unfamiliar with.
This README focuses on how to build, version, release, and install the project using two common paths:
---
git clone https://github.com/promptexecution/rust-cargo-docs-rag-mcp.git
cd rust-cargo-docs-rag-mcp
cargo build --release
cargo install --path .
# Or install the pkgx-managed binary and check its version
just install-pkgxThe repository includes a mini pkgx pantry so you can build and run the CLI through pkgx without touching your global toolchain:
git clone https://github.com/promptexecution/rust-cargo-docs-rag-mcp.git
cd rust-cargo-docs-rag-mcp
export PKGX_PANTRY_PATH=$PWD/pkgx
export PKGX_PANTRY_DIR=$PWD/pkgx # pkgx^2 compatibility
pkgx cratedocs versionpkgx will download the tagged source tarball, compile cratedocs with the required Rust toolchain, and cache the result for subsequent runs. Once you're ready to upstream this package to the central pkgx pantry, copy pkgx/projects/github.com/promptexecution/rust-cargo-docs-rag-mcp/package.yml into a new PR there.
This repository is wired to Cocogitto via cog.toml. Typical flow to create a release:
cargo install cocogitto git checkout main
git pull origin main
cog bump patch
# or `cog bump minor` / `cog bump major`cog bump runs the pre_bump_hooks/post_bump_hooks defined in cog.toml.Loading reviews...