Skip to content

Interface: OpenAIMcpServerConfig

@providerprotocol/ai


@providerprotocol/ai / openai / OpenAIMcpServerConfig

Defined in: src/providers/openai/types.ts:1274

MCP (Model Context Protocol) server configuration

optional allowed_resources: string[]

Defined in: src/providers/openai/types.ts:1287

Allowed resources


optional headers: Record<string, string>

Defined in: src/providers/openai/types.ts:1285

Headers to send with requests


optional name: string

Defined in: src/providers/openai/types.ts:1278

Server name for identification


optional require_approval: "always" | { tools: string[]; type: "except"; } | "never"

Defined in: src/providers/openai/types.ts:1289

Require approval for tool calls


optional tool_configuration: object

Defined in: src/providers/openai/types.ts:1280

Tool configuration for the server

optional allowed_tools: string[] | { type: "all"; }

Allowed tools from this server


url: string

Defined in: src/providers/openai/types.ts:1276

Server URL