Skip to main content

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)​

FieldTypeDefaultMeaning
transportstdio or httpstdioHow the server is reached: a local process, or an HTTP endpoint.
commandlist[str][]The command that starts the server, for stdio.
envdict[str, str]{}Environment variable names and values for the stdio process.
urlstr or nullnullThe server's URL, for http.
headersdict[str, str]{}HTTP headers to send, for http.

See also​

  • Agent for agent tool configuration.
  • Manifests for shared metadata and validation.