One of the following:
McpTransportConfigParamHTTP { server_url, type, authorization, headers }

Connects to an MCP server over HTTP.

server_url: string

The URL of the MCP server.

minLength0
maxLength1048576
type: "http"

The type of the object. Always http.

authorization?: string | null

The authorization value sent to the MCP server, if any.

minLength0
maxLength1048576
headers?: Record<string, string> | null

Additional HTTP headers sent to the MCP server.

McpTransportConfigParamStdio { command, cwd, type, 3 more }

Starts an MCP server as a local process.

command: string

The command used to start the MCP server.

minLength0
maxLength1048576
cwd: string

The working directory used to start the MCP server.

minLength0
maxLength1048576
type: "stdio"

The type of the object. Always stdio.

args?: Array<string> | null

Arguments passed to the MCP server command.

minItems0
maxItems16384
env?: Record<string, string> | null

Environment variables set for the MCP server process.

env_vars?: Array<string> | null

Environment variable names to inherit from the selected execution environment.

minItems0
maxItems16384