Search Results for

    Show / Hide Table of Contents

    Class Mcp

    Give the model access to additional tools via remote Model Context Protocol (MCP) servers.

    Inheritance
    object
    Tool
    Mcp
    Inherited Members
    Tool.Type
    Tool.TryGetToolName(out string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class Mcp : Tool

    Properties

    | Edit this page View Source

    AccessToken

    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
    | Edit this page View Source

    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
    | Edit this page View Source

    ConnectorId

    Optional. Identifier for service connectors.

    Declaration
    [JsonProperty("connector_id")]
    public string ConnectorId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    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>
    | Edit this page View Source

    OAuthType

    Declaration
    [JsonIgnore]
    public McpOAuthType OAuthType { get; set; }
    Property Value
    Type Description
    McpOAuthType
    | Edit this page View Source

    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>
    | Edit this page View Source

    ServerDescription

    Optional. Optional description of the MCP server.

    Declaration
    [JsonProperty("server_description")]
    public string ServerDescription { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    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
    | Edit this page View Source

    ServerUrl

    Optional. The URL for the MCP server.

    Declaration
    [JsonProperty("server_url")]
    public string ServerUrl { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    McpExtensions.CreateBuiltinTokenProvider(Mcp)
    McpExtensions.GetConnector(Mcp)
    McpExtensions.IsConnectorType(Mcp)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation