UNPKG

@adeu/mcp-server

Version:

[![GitHub Repo stars](https://img.shields.io/github/stars/dealfluence/adeu?style=social)](https://github.com/dealfluence/adeu) [![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-green.svg)](https://modelcontextprotocol.io/) [![License: MIT](ht

15 lines • 856 B
export interface TestServer { /** One JSON-RPC request/response round trip. Resolves with the whole message. */ rpc(method: string, params: unknown): Promise<any>; /** tools/call, resolved to the tool's own result ({ content, isError? }). */ callTool(name: string, args: Record<string, unknown>): Promise<any>; /** A DOCX of one paragraph per string, written to a tracked temp path. */ buildDoc(paragraphs: string[]): Promise<string>; /** A tracked temp path for a tool's output_path. */ tempOut(label: string): string; /** Kill the server and remove every tracked temp file. */ stop(): void; } /** Boots the built server (`dist/index.js`) and completes the MCP handshake. */ export declare function startTestServer(label: string, env?: NodeJS.ProcessEnv): Promise<TestServer>; //# sourceMappingURL=test-rpc.d.ts.map