Remote MCP server configuration accessed over HTTP or SSE. Experimental: MCPServerConfigHTTP is part of an experimental API and may change or be removed.
| 3397 | // Experimental: MCPServerConfigHTTP is part of an experimental API and may change or be |
| 3398 | // removed. |
| 3399 | type MCPServerConfigHTTP struct { |
| 3400 | // Set to `true` to use defaults, or provide an object with additional auth or OIDC settings. |
| 3401 | Auth MCPServerAuthConfig `json:"auth,omitempty"` |
| 3402 | // Controls if tools provided by this server can be loaded on demand via tool search (auto) |
| 3403 | // or always included in the initial tool list (never) |
| 3404 | DeferTools *MCPServerConfigDeferTools `json:"deferTools,omitempty"` |
| 3405 | // Content filtering mode to apply to all tools, or a map of tool name to content filtering |
| 3406 | // mode. |
| 3407 | FilterMapping FilterMapping `json:"filterMapping,omitempty"` |
| 3408 | // HTTP headers to include in requests to the remote MCP server. |
| 3409 | Headers map[string]string `json:"headers,omitzero"` |
| 3410 | // Whether this server is a built-in fallback used when the user has not configured their |
| 3411 | // own server. |
| 3412 | IsDefaultServer *bool `json:"isDefaultServer,omitempty"` |
| 3413 | // OAuth client ID for a pre-registered remote MCP OAuth client. |
| 3414 | OauthClientID *string `json:"oauthClientId,omitempty"` |
| 3415 | // OAuth grant type to use when authenticating to the remote MCP server. |
| 3416 | OauthGrantType *MCPServerConfigHTTPOauthGrantType `json:"oauthGrantType,omitempty"` |
| 3417 | // Whether the configured OAuth client is public and does not require a client secret. |
| 3418 | OauthPublicClient *bool `json:"oauthPublicClient,omitempty"` |
| 3419 | // Set to `true` to use defaults, or provide an object with additional auth or OIDC settings. |
| 3420 | Oidc MCPServerAuthConfig `json:"oidc,omitempty"` |
| 3421 | // Timeout in milliseconds for tool calls to this server. |
| 3422 | Timeout *int64 `json:"timeout,omitempty"` |
| 3423 | // Tools to include. Defaults to all tools if not specified. |
| 3424 | Tools []string `json:"tools,omitzero"` |
| 3425 | // Remote transport type. Defaults to "http" when omitted. |
| 3426 | Type *MCPServerConfigHTTPType `json:"type,omitempty"` |
| 3427 | // URL of the remote MCP server endpoint. |
| 3428 | URL string `json:"url"` |
| 3429 | } |
| 3430 | |
| 3431 | func (MCPServerConfigHTTP) mcpServerConfig() {} |
| 3432 |
nothing calls this directly
no outgoing calls
no test coverage detected