Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMCP ¶
func NewMCP(cfg MCPConfig, deps MCPDeps) (agentkit.ToolProvider, error)
NewMCP registers tool/mcp: Load mcpServers JSON and expose MCP tools as dynamic model-visible tools.
Best practices:
- Put project servers in .cursor/mcp.json; use global:mcp.json for cross-project defaults.
- Mount via tools/runtime deps.dynamicTools, not deps.tools, because definitions are discovered at runtime.
- Server configs and their tool lists are loaded once and cached; run the "mcp" command to reload mcp.json and rediscover tools after editing it or restarting a server.
Types ¶
Click to show internal directories.
Click to hide internal directories.