McpServer
Use this page to reference local and HTTP MCP server connection fields.
The McpServer manifest: the envelope (apiVersion, kind, metadata; see Manifests) plus spec.
Fields
McpServerSpec (spec)
| Field | Type | Default | Meaning |
|---|---|---|---|
transport | stdio or http | stdio | How the server is reached: a local process, or an HTTP endpoint. |
command | list[str] | [] | The command that starts the server, for stdio. |
env | dict[str, str] | {} | Environment variable names and values for the stdio process. |
url | str or null | null | The server's URL, for http. |
headers | dict[str, str] | {} | HTTP headers to send, for http. |