Class Mcp
Give the model access to additional tools via remote Model Context Protocol (MCP) servers.
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class Mcp : Tool
Properties
| Edit this page View SourceAccessToken
Optional. An OAuth access token that can be used with a remote MCP server.
Declaration
[JsonProperty("authorization")]
public string AccessToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
AllowedTools
Optional. List of allowed tool names or a filter object.
Declaration
[JsonProperty("allowed_tools")]
public McpToolRefList AllowedTools { get; set; }
Property Value
| Type | Description |
|---|---|
| McpToolRefList |
ConnectorId
Optional. Identifier for service connectors.
Declaration
[JsonProperty("connector_id")]
public string ConnectorId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Headers
Optional. Optional HTTP headers to send to the MCP server.
Declaration
[JsonProperty("headers")]
public Dictionary<string, string> Headers { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
OAuthType
Declaration
[JsonIgnore]
public McpOAuthType OAuthType { get; set; }
Property Value
| Type | Description |
|---|---|
| McpOAuthType |
RequireApproval
Optional. Specify which of the MCP server's tools require approval.
Declaration
[JsonConverter(typeof(StringOrConverter<McpToolApprovalFilter>))]
[JsonProperty("require_approval")]
public StringOr<McpToolApprovalFilter> RequireApproval { get; set; }
Property Value
| Type | Description |
|---|---|
| StringOr<McpToolApprovalFilter> |
ServerDescription
Optional. Optional description of the MCP server.
Declaration
[JsonProperty("server_description")]
public string ServerDescription { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 '_'.
Declaration
[JsonProperty("server_label")]
public string ServerLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ServerUrl
Optional. The URL for the MCP server.
Declaration
[JsonProperty("server_url")]
public string ServerUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |