MCPServerConfig Class

Definition

Represents the configuration for an MCP server, including its name, endpoint, and additional metadata.

public class MCPServerConfig
type MCPServerConfig = class
Public Class MCPServerConfig
Inheritance
MCPServerConfig

Constructors

Name Description
MCPServerConfig()

Properties

Name Description
audience

Gets or sets the OAuth audience (Application ID) for this server. Non-null for V2 servers that require a per-audience token. Null or equal to the ATG App ID for V1 servers.

Headers

Gets or sets per-server HTTP headers, including the Authorization header populated by AttachPerAudienceTokensAsync before tool connections are established. Null until token attachment has run; callers should treat a missing Authorization header as a signal to fall back to the shared ATG token.

id

Gets or sets the id of the MCP server.

mcpServerName

Gets or sets the name of the MCP server.

publisher

Gets or sets the publisher identifier for this server.

scope

Gets or sets the OAuth scope for this server. V2 servers supply their own scope (e.g. "api://<audience>/Tools.ListInvoke.All"). Null for V1 servers that share the ATG token.

url

Gets or sets the url of the MCP server.

Applies to