MCP
Mister Morph can connect to MCP and register MCP-provided tools into the same tool-calling loop.
Tool Name Mapping
MCP tools are registered as: mcp_<server_name>__<tool_name>
Example: mcp_example__read_file
Supported Transports
stdio(default)http
Configuration
yaml
mcp:
servers:
- name: example_cmd
type: stdio
command: npx
args: ["-y", "@modelcontextprotocol/example_cmd", "/tmp"]
allowed_tools: []
- name: remote
type: http
url: "https://mcp.example.com/mcp"
headers:
Authorization: "Bearer ${MCP_REMOTE_TOKEN}"
allowed_tools: ["search"]Where:
enable: enables or disables a server entryallowed_tools: limits which tools from that server are usable; leave it empty for no restriction
Lifecycle
- Runtime reads
mcp.servers. - Connect to each enabled/valid server.
- List server tools.
- Adapt and register tools into local registry.
- On shutdown, close MCP sessions.