command | string | Conditional | — | Command to run the MCP server (for stdio transport). Mutually exclusive with url |
url | string | Conditional | — | URL for SSE or streamable-http transport. Mutually exclusive with command |
transport | "stdio" | "sse" | "streamable-http" | No | Auto-detected | Transport protocol. Inferred from command (stdio) or url (sse) if not set |
env | dict[string, Field[string]] | No | — | Environment variables for the server process |
headers | dict[string, Field[string]] | No | — | Static HTTP headers for remote transports |
include_run_context_headers | boolean | No | false | Forward agent run context as headers (X-User-ID, X-Session-ID, X-Run-ID) |
timeout_seconds | integer | No | 10 | Connection timeout in seconds |
include_tools | list[string] | No | — | Only include these tool names |
exclude_tools | list[string] | No | — | Exclude these tool names |
tool_name_prefix | string | No | — | Prefix added to all tool names (avoids collisions) |