get_crate_doc
Retrieve the main documentation page for a Rust crate to resolve unresolved imports or understand crate features, using the Cargo Doc MCP Server.
Instructions
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.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
crate_name | Yes | Name of the crate to get documentation for | |
project_path | Yes | Path to the Rust project (must be absolute path) |
Input Schema (JSON Schema)
{
"properties": {
"crate_name": {
"description": "Name of the crate to get documentation for",
"type": "string"
},
"project_path": {
"description": "Path to the Rust project (must be absolute path)",
"type": "string"
}
},
"required": [
"project_path",
"crate_name"
],
"type": "object"
}