Normandy.MCP.Registry
(normandy v0.6.0)
View Source
Helpers for discovering and registering MCP tools in a Normandy tool registry.
Example
alias Normandy.MCP.Registry, as: MCPRegistry
alias Normandy.Tools.Registry
registry = Registry.new()
{:ok, registry} = MCPRegistry.discover_and_register(
registry,
Claudio.MCP.Adapters.ExMCP,
mcp_client,
prefix: "my_server"
)
Summary
Functions
Discovers tools from an MCP server and registers them in a tool registry.
Wraps a list of MCP tools as ToolWrapper structs.
Functions
@spec discover_and_register(Normandy.Tools.Registry.t(), module(), term(), keyword()) :: {:ok, Normandy.Tools.Registry.t()} | {:error, term()}
Discovers tools from an MCP server and registers them in a tool registry.
Options
:prefix- Namespace prefix for tool names
@spec wrap_tools(module(), term(), [Claudio.MCP.Client.Tool.t()], keyword()) :: [ Normandy.MCP.ToolWrapper.t() ]
Wraps a list of MCP tools as ToolWrapper structs.
Options
:prefix- Namespace prefix for tool names