HostedMcpServerTool.Headers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.