Skip to content

XaiMcpServerOptions

Namespace: Vercel.AI.Xai

public sealed class XaiMcpServerOptions

Arguments of String). Maps to mcpServerArgsSchema.

Inheritance: object

View source

public XaiMcpServerOptions(string serverUrl)

Creates the arguments.

Parameters

Name Type Description
serverUrl string

View source

public IReadOnlyList<string>? AllowedTools { get; init; }

Names of the tools the model may call.

Value: IReadOnlyList<string>

View source

public string? Authorization { get; init; }

The authorization header value.

Value: string

View source

public IReadOnlyDictionary<string, string>? Headers { get; init; }

Custom headers to send.

Value: IReadOnlyDictionary<string, string>

View source

public string? ServerDescription { get; init; }

A description of the MCP server.

Value: string

View source

public string? ServerLabel { get; init; }

A label for the MCP server.

Value: string

View source

public string ServerUrl { get; }

The URL of the MCP server.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product