UNPKG

mcpay

Version:

SDK and CLI for MCPay functionality - MCP servers with payment capabilities

28 lines 1.39 kB
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import type { SSEClientTransportOptions } from "@modelcontextprotocol/sdk/client/sse.js"; import type { StreamableHTTPClientTransportOptions } from "@modelcontextprotocol/sdk/client/streamableHttp.js"; import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { type X402ClientConfig } from "../../client/with-x402-client.js"; export declare enum ServerType { HTTPStream = "HTTPStream" } export interface ServerConnection { url: string; serverType: ServerType; transportOptions?: SSEClientTransportOptions | StreamableHTTPClientTransportOptions; client?: Client; } /** * Enhanced proxy server that connects to multiple MCP servers and exposes them via a stdio interface */ export declare const startStdioServer: ({ initStdioServer, initStreamClient, serverConnections, x402ClientConfig, }: { initStdioServer?: () => Promise<Server>; initStreamClient?: () => Promise<Client>; serverConnections: ServerConnection[]; x402ClientConfig?: X402ClientConfig; }) => Promise<Server[]>; /** * Creates server connection configurations from a list of URLs */ export declare const createServerConnections: (urls: string[], serverType?: ServerType, transportOptions?: StreamableHTTPClientTransportOptions) => ServerConnection[]; //# sourceMappingURL=start-stdio-server.d.ts.map