/** * Shared test utilities for MCP server tests. */ import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { FileStorage } from "../core/storage/index.js"; export interface McpTestContext { client: Client; storage: FileStorage; cleanup: () => Promise; } /** * Creates a test context with an in-process MCP client/server pair. * Uses InMemoryTransport for isolated testing without stdio. */ export declare function createMcpTestContext(): Promise; /** The result type from client.callTool() */ type CallToolResult = Awaited>; /** * Parses the JSON content from an MCP tool response. * MCP returns content as an array of content blocks; this extracts and parses the first text block. */ export declare function parseToolResponse(result: CallToolResult): T; /** * Checks if a callTool result indicates an error. */ export declare function isErrorResult(result: CallToolResult): boolean; export {}; //# sourceMappingURL=test-helpers.d.ts.map