Functions

mockMcpClient

Function: mockMcpClient()

mockMcpClient(options): McpClient

Defined in: src/lib/mcp/mockMcpClient.ts:70

Build an in-memory McpClient. Useful when you want to develop against MCP semantics without spawning subprocesses, hitting the network, or installing @modelcontextprotocol/sdk. Same McpClient shape as mcpClient(opts) — code that consumes one accepts the other.

Parameters

options

MockMcpClientOptions

Returns

McpClient

On this page