mcpay
Version:
SDK and CLI for MCPay functionality - MCP servers with payment capabilities
29 lines • 1.35 kB
TypeScript
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 { Account } from "viem";
export declare enum ServerType {
HTTPStream = "HTTPStream",
Payment = "Payment"
}
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, account, }: {
initStdioServer?: () => Promise<Server>;
initStreamClient?: () => Promise<Client>;
serverConnections: ServerConnection[];
account?: Account;
}) => 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