Skip to main content

Module tools

Module tools 

Source
Expand description

MCP tool module

Provides MCP tools for Rust crate documentation lookup.

§Tool List

  • docs::lookup_crate::LookupCrateToolImpl: Lookup crate documentation
  • docs::search::SearchCratesToolImpl: Search crates
  • docs::lookup_item::LookupItemToolImpl: Lookup specific items
  • health::HealthCheckToolImpl: Health check

§Examples

use std::sync::Arc;
use crates_docs::tools::{ToolRegistry, create_default_registry};
use crates_docs::tools::docs::DocService;
use crates_docs::cache::memory::MemoryCache;

let cache = Arc::new(MemoryCache::new(1000));
let doc_service = Arc::new(DocService::new(cache).unwrap());
let registry = create_default_registry(&doc_service);

Modules§

docs
Document lookup tool module
health
Health check tool

Structs§

ToolRegistry
Tool registry

Traits§

Tool
Tool trait

Functions§

create_default_registry
Create default tool registry