Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverAllTools ¶
func DiscoverAllTools(ctx context.Context, configs []mcp.MCPConfig, register RegisterTool) (cleanup func())
DiscoverAllTools connects to each MCP server in configs and invokes register for every tool found. It returns a cleanup function that closes all open connections. Unreachable servers are logged and skipped.
Types ¶
type RegisterTool ¶
type RegisterTool func(name, description, namespace string, schema map[string]any, handler ToolHandler)
RegisterTool is called once per tool discovered on a connected MCP server.
Click to show internal directories.
Click to hide internal directories.