@tanstack/ai-mcp
Version:
Host-side Model Context Protocol client for TanStack AI: discover and run MCP server tools, resources, and prompts in any adapter's chat() loop, with generated end-to-end types.
16 lines (15 loc) • 424 B
TypeScript
import { MCPEventStore } from './types.js';
/**
* In-process event subscription store. For development and tests only.
* Callers receive structured clones, so they cannot mutate stored state.
*
* @experimental
*
* @example
* ```ts
* import { inMemoryMCPEventStore } from '@tanstack/ai-mcp/events'
*
* const store = inMemoryMCPEventStore()
* ```
*/
export declare function inMemoryMCPEventStore(): MCPEventStore;