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.

28 lines 925 B
import type { McpServerOptions } from "../McpClientProvider.js"; import type { StorageProvider } from "./StorageProvider.js"; /** * In-memory storage provider for testing or non-persistent scenarios * * Stores server configurations in memory only. Data is lost when the * component unmounts or page reloads. * * @example * ```typescript * // Useful for testing * const storage = new MemoryStorageProvider(); * const provider = ( * <McpClientProvider storageProvider={storage}> * <App /> * </McpClientProvider> * ); * ``` */ export declare class MemoryStorageProvider implements StorageProvider { private storage; getServers(): Record<string, McpServerOptions>; setServers(servers: Record<string, McpServerOptions>): void; setServer(id: string, config: McpServerOptions): void; removeServer(id: string): void; clear(): void; } //# sourceMappingURL=MemoryStorageProvider.d.ts.map