Search Results for

    Show / Hide Table of Contents

    Class McpAccessTokenService

    Inheritance
    object
    McpAccessTokenService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Agents.McpTools
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class McpAccessTokenService

    Methods

    | Edit this page View Source

    EnsureAccessTokensAsync(Mcp, CancellationToken)

    Returns true if access token is refreshed. Returns false if no action was taken (e.g. token already present).

    Declaration
    public UniTask<bool> EnsureAccessTokensAsync(Mcp mcp, CancellationToken ct)
    Parameters
    Type Name Description
    Mcp mcp
    CancellationToken ct
    Returns
    Type Description
    UniTask<bool>
    | Edit this page View Source

    RegisterTokenProvider(string, IOAuthTokenProvider)

    Declaration
    public void RegisterTokenProvider(string serverLabel, IOAuthTokenProvider provider)
    Parameters
    Type Name Description
    string serverLabel
    IOAuthTokenProvider provider
    | Edit this page View Source

    UnregisterTokenProvider(string)

    Declaration
    public bool UnregisterTokenProvider(string serverLabel)
    Parameters
    Type Name Description
    string serverLabel
    Returns
    Type Description
    bool

    Extension Methods

    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