Expand description
Tool traits and types for MCP servers.
This module provides the core abstractions for defining and executing MCP tools.
Structs§
- FnTool
- A simple function-based tool.
- Tool
Entry - Entry for auto-discovered tools registered via
#[mcp_tool]. - Tool
Registry - Registry for managing tools.
Traits§
- McpTool
- Trait for implementing MCP tools.
- Tool
Provider - Trait for types that can provide multiple tools.
Functions§
- all_
tools - Returns all auto-discovered tools.
- tools_
in_ group - Returns auto-discovered tools filtered by group.
Type Aliases§
- BoxFuture
- A boxed future for async tool execution.
- DynTool
- A type-erased tool wrapper.
- Tool
Call Result - Result type for tool execution - returns content or an error message.
- Tool
Factory - A factory function that creates a tool instance.