Class Mcp
Give the model access to additional tools via remote Model Context Protocol (MCP) servers.
public class Mcp : Tool
- Inheritance
-
objectMcp
- Inherited Members
- Extension Methods
Properties
AccessToken
Optional. An OAuth access token that can be used with a remote MCP server.
public string AccessToken { get; set; }
Property Value
- string
AllowedTools
Optional. List of allowed tool names or a filter object.
public McpToolRefList AllowedTools { get; set; }
Property Value
ConnectorId
Optional. Identifier for service connectors.
public string ConnectorId { get; set; }
Property Value
- string
Headers
Optional. Optional HTTP headers to send to the MCP server.
public Dictionary<string, string> Headers { get; set; }
Property Value
- Dictionary<string, string>
RequireApproval
Optional. Specify which of the MCP server's tools require approval.
public StringOr<McpToolApprovalFilter> RequireApproval { get; set; }
Property Value
- StringOr<McpToolApprovalFilter>
ServerDescription
Optional. Optional description of the MCP server.
public string ServerDescription { get; set; }
Property Value
- string
ServerLabel
Required. A label for this MCP server, used to identify it in tool calls. It must start with a letter and consist of only letters digits '-' and '_'.
public string ServerLabel { get; set; }
Property Value
- string
ServerUrl
Optional. The URL for the MCP server.
public string ServerUrl { get; set; }
Property Value
- string