Skip to main content

Module tool_adapter

Module tool_adapter 

Source
Expand description

Tool adapter - exposes MCP tools through the Tool trait.

Structs§

McpToolAdapter
Adapter that wraps an MCP tool and implements the Tool trait.

Functions§

register_mcp_tools
Register all MCP tools from a registry into a ToolRegistry (sync version). Use this at startup when you have mutable access to the registry.
register_mcp_tools_async
Register all MCP tools from a registry into a ToolRegistry (async version). Use this when registering tools dynamically after startup.