Share via


HostedMcpServerTool.AuthorizationToken Property

Definition

Gets or sets the OAuth authorization token that the AI service should use when calling the remote MCP server.

public:
 property System::String ^ AuthorizationToken { System::String ^ get(); void set(System::String ^ value); };
public string? AuthorizationToken { get; set; }
member this.AuthorizationToken : string with get, set
Public Property AuthorizationToken As String

Property Value

Remarks

When set, this value is automatically added to the Headers dictionary with the key "Authorization" and the value "Bearer {token}". Setting this property will overwrite any existing "Authorization" header in Headers. Setting this property to null will remove the "Authorization" header from Headers.

Applies to