@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function createMCPClient

    • Simple factory functions for protocol-specific clients.

      Both factories accept a transport argument that flows through to the size-cap surface so callers reaching the factory exports honor the same maxResponseBytes contract as ProtocolClient.callTool. Without it, the factories would silently bypass the cap, which the public API (TransportOptions) implies they honor.

      Parameters

      • agentUrl: string
      • OptionalauthToken: string
      • Optionalheaders: Record<string, string>
      • OptionalserverVersion: "v2" | "v3"
      • OptionaladcpVersion: string
      • Optionaltransport: TransportOptions

      Returns {
          callTool: (
              toolName: string,
              args: Record<string, unknown>,
              debugLogs?: DebugLogEntry[],
          ) => Promise<unknown>;
      }