Skip to content

Custom MCP Servers

Beyond the built-in catalog, you can connect any MCP-compatible server:

  1. Open the agent node config panel
  2. Click Add MCP ServerCustom Server
  3. Configure:
{
"name": "My Custom Tools",
"transport": "streamable-http",
"url": "https://my-mcp-server.example.com/mcp",
"authType": "api_key",
"authCredentialRef": "my_server_key",
"authHeaderName": "X-API-Key",
"selectedTools": ["tool_a", "tool_b"],
"timeout": 30000
}
FieldTypeRequiredDescription
namestringYesDisplay name
transportstringYesstreamable-http or sse
urlstringYesServer endpoint URL
authTypestringYesnone, api_key, or bearer
authCredentialRefstringFor authCredential key reference
authHeaderNamestringFor api_keyHeader name (e.g., X-API-Key)
selectedToolsstring[]YesTool names to enable
timeoutnumberNoPer-call timeout in ms (default: 30000)

When you add a custom server URL, the flow builder automatically discovers available tools by calling the server’s tool listing endpoint. You can then select which tools to enable.

Your MCP server must:

  • Implement the MCP protocol (v2025-03-26 or compatible)
  • Support streamable HTTP or SSE transport
  • Be accessible from the CAVOS Agents runtime (no localhost/private IPs — SSRF protection is enforced)
  • Respond within the configured timeout

For optimal agent performance, ensure your tools have:

  • Clear, descriptive names
  • Detailed descriptions explaining when and how to use each tool
  • Well-defined JSON Schema for input parameters
  • Meaningful error messages on failure