@cubie-ai/tiny-ai - v0.0.14
    Preparing search index...

    Class TinyMCP

    TinyMCP creates an interface between TinyAgent and the Model Context Protocol (MCP) SDK.

    Index

    Constructors

    Properties

    client: Client

    The MCP client instance

    connected: boolean = false

    Whether the client is connected

    promptMap: Record<string, string> = {}

    The prompts available to the client

    resourceMap: Record<string, TinyTool> = {}

    The resources available to the client

    toolMap: Record<string, TinyTool> = {}

    The tools available to the client

    Methods

    • Attach the MCP Client instance to the transport. Does nothing if the client is already connected.

      Returns Promise<void>

    • Disconnects the MCP client.

      Returns Promise<void>