llmwire - v2.2.0
    Preparing search index...

    Class McpClient

    Index
    capabilities: Record<string, unknown> = {}
    serverInfo?: { name: string; version?: string }
    • Any JSON-RPC method; the raw result. A JSON-RPC error becomes an AIError with code MCP_ERROR and providerCode set to the RPC code.

      Parameters

      • method: string
      • Optionalparams: unknown

      Returns Promise<any>

    • tools/call, flattened: text items joined by newlines, anything else as JSON. A result marked isError throws so the model sees { error }.

      Parameters

      • name: string
      • args: unknown = {}

      Returns Promise<string>

    • Parameters

      • name: string
      • Optionalargs: Record<string, string>

      Returns Promise<
          {
              description?: string;
              messages: { content: McpContent; role: string }[];
          },
      >

    • The server's tools as Tool[]: the server's own JSON Schema, and an execute that calls tools/call and flattens the result to text.

      Returns Promise<Tool[]>