MCP - Model Context Protocol
The mcp module connects external MCP servers. Their tools become
virtual Digitorn tools (naming like mcp_<server>__<tool>),
not a fixed catalog of mcp.connect / mcp.call_tool agent
actions.
| Property | Value |
|---|---|
| Module id | mcp |
| Fixed agent tools | none (dynamic) |
| Transports | stdio / SSE / HTTP (Go client) |
Configure servers
tools:
modules:
mcp:
config:
auto_install: false
servers:
filesystem:
transport: stdio
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
capabilities:
grant:
- module: mcp
Server config is normalized by schema.NormalizeServers. Hub
catalog / OAuth flows exist in the daemon; verify against current
Hub + internal/modules/mcp rather than Python-era snippets.
How agents call MCP tools
Once connected, tools appear in the tool index like any other
module action (subject to injection mode and grants). Use
search_tools / get_tool / direct call / execute_tool.
Resources and prompts may be exposed as additional virtual tools
when the server advertises them (see internal/modules/mcp/virtual.go).