ART Framework API Docs
    Preparing search index...

    Class McpClientController

    McpClientController Controls the MCP client, including OAuth flow, connection, and tool calls.

    Index

    Properties

    baseUrl: URL

    Methods

    • Calls a tool on the MCP server.

      Parameters

      • name: string

        The name of the tool to call.

      • args: any

        The arguments to pass to the tool.

      Returns Promise<any>

      A promise that resolves to the result of the tool call.

    • Checks if the user is authenticated.

      Returns boolean

      True if the user is authenticated, false otherwise.

    • Lists the available tools on the MCP server.

      Returns Promise<{ description?: string; name: string }[]>

      A promise that resolves to a list of tools.

    • Handles the OAuth callback, exchanging the authorization code for an access token.

      Returns Promise<boolean>

      A promise that resolves to true if the callback was handled, false otherwise.

    • Starts the OAuth flow by redirecting the user to the authorization server.

      Returns Promise<void>