import { Readable, Writable } from 'node:stream'; import { TCloud } from './index.js'; import './shielded.js'; import 'viem'; import './client-CaPP4njg.js'; import '@tangle-network/sandbox'; import './sandbox.js'; import '@tangle-network/tcloud-attestation'; /** Transport streams the server reads/writes. Defaults bind to the process * stdio; tests inject in-memory streams. */ interface McpServerOptions { input?: Readable; output?: Writable; } /** * Run the MCP stdio server against an authenticated TCloud client. Resolves when input closes. * Handles `initialize`, `tools/list`, `tools/call` (+ ignores notifications, which carry no id). * * Requests are dispatched without blocking the read loop, so a slow `deep_research` * call cannot stall concurrent `web_search` requests — each response carries its * own id. Pass `{ input, output }` to drive the transport over arbitrary streams * (tests inject in-memory streams); both default to the process stdio. */ declare function runMcpServer(client: TCloud, opts?: McpServerOptions): Promise; export { type McpServerOptions, runMcpServer };