MCPServerConfig.Headers Property

Definition

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.

public System.Collections.Generic.Dictionary<string,string>? Headers { get; set; }
member this.Headers : System.Collections.Generic.Dictionary<string, string> with get, set
Public Property Headers As Dictionary(Of String, String)

Property Value

Applies to