How It Works
MCP tools are automatically discovered and made available to your agent, which intelligently chooses which tools to use based on user requests. When a user asks for information that requires external data, the agent will:1
Identify the need
Detect that the user’s request requires external data.
2
Select tools
Choose the appropriate tools from the available MCP servers.
3
Execute
Run the tools with the relevant parameters.
4
Respond
Process the results and provide a natural language response.
Transport Methods
Zero Runtime supports two transport methods for MCP servers.Example
Pass MCP servers to the agent via themcp_servers parameter. Use MCPServerStdio for local scripts and MCPServerHTTP for remote services.
Server options
MCPServerStdio (local process)
MCPServerHTTP (remote service)
What’s Next
Function Tools
Add custom Python functions as tools.
RAG
Ground responses in a knowledge base.
References
- Python
- Node JS
Examples
MCP Client
Consume tools from an MCP server.