UNPKG

mcp-use

Version:

Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.

27 lines 1.02 kB
import type { BaseConnector } from "../connectors/base.js"; import { BaseMCPClient } from "./base.js"; /** * Browser-compatible MCPClient implementation * * This client works in both browser and Node.js environments by avoiding * Node.js-specific APIs (like fs, path). It supports: * - Multiple servers via addServer() * - HTTP connector * - All base client functionality */ export declare class BrowserMCPClient extends BaseMCPClient { /** * Get the mcp-use package version. * Works in all environments (Node.js, browser, Cloudflare Workers, Deno, etc.) */ static getPackageVersion(): string; constructor(config?: Record<string, any>); private _trackClientInit; static fromDict(cfg: Record<string, any>): BrowserMCPClient; /** * Create a connector from server configuration (Browser version) * Supports HTTP connector only */ protected createConnectorFromConfig(serverConfig: Record<string, any>): BaseConnector; } //# sourceMappingURL=browser.d.ts.map