Share via


HostedMcpServerTool.Headers Property

Definition

Gets or sets a mutable dictionary of HTTP headers to include when calling the remote MCP server.

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

Property Value

Remarks

The underlying provider is not guaranteed to support or honor the headers.

This property is useful for specifying the authentication header or other headers required by the MCP server.

As HTTP header names are case-insensitive, callers should use OrdinalIgnoreCase comparison when constructing the dictionary.

Applies to