XaiMcpServerOptions
Namespace: Vercel.AI.Xai
public sealed class XaiMcpServerOptionsArguments of String). Maps to mcpServerArgsSchema.
Inheritance: object
Constructors
Section titled “Constructors”XaiMcpServerOptions(string)
Section titled “XaiMcpServerOptions(string)”public XaiMcpServerOptions(string serverUrl)Creates the arguments.
Parameters
| Name | Type | Description |
|---|---|---|
serverUrl |
string |
Properties
Section titled “Properties”AllowedTools
Section titled “AllowedTools”public IReadOnlyList<string>? AllowedTools { get; init; }Names of the tools the model may call.
Value: IReadOnlyList<string>
Authorization
Section titled “Authorization”public string? Authorization { get; init; }The authorization header value.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; init; }Custom headers to send.
Value: IReadOnlyDictionary<string, string>
ServerDescription
Section titled “ServerDescription”public string? ServerDescription { get; init; }A description of the MCP server.
Value: string
ServerLabel
Section titled “ServerLabel”public string? ServerLabel { get; init; }A label for the MCP server.
Value: string
ServerUrl
Section titled “ServerUrl”public string ServerUrl { get; }The URL of the MCP server.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product