OpenAIMcpToolOptions
Namespace: Vercel.AI.OpenAI
public sealed class OpenAIMcpToolOptionsOptions of Mcp(OpenAIMcpToolOptions). One of ServerUrl or ConnectorId must be set.
Inheritance: object
Properties
Section titled “Properties”AllowedToolNames
Section titled “AllowedToolNames”public IReadOnlyList<string>? AllowedToolNames { get; set; }Allowed tool names.
Value: IReadOnlyList<string>
AllowedToolsReadOnly
Section titled “AllowedToolsReadOnly”public bool? AllowedToolsReadOnly { get; set; }Allow only read-only tools.
Value: bool?
Authorization
Section titled “Authorization”public string? Authorization { get; set; }OAuth access token for the MCP server or connector.
Value: string
ConnectorId
Section titled “ConnectorId”public string? ConnectorId { get; set; }Identifier of a service connector.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; set; }HTTP headers to send to the MCP server.
Value: IReadOnlyDictionary<string, string>
NeverRequireApprovalToolNames
Section titled “NeverRequireApprovalToolNames”public IReadOnlyList<string>? NeverRequireApprovalToolNames { get; set; }Tool names that never require approval.
Value: IReadOnlyList<string>
RequireApproval
Section titled “RequireApproval”public string? RequireApproval { get; set; }Approval policy: always or never.
Value: string
ServerDescription
Section titled “ServerDescription”public string? ServerDescription { get; set; }Description of the server.
Value: string
ServerLabel
Section titled “ServerLabel”public string ServerLabel { get; set; }A label for this MCP server, used to identify it in tool calls.
Value: string
ServerUrl
Section titled “ServerUrl”public string? ServerUrl { get; set; }URL of the MCP server.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product