UNPKG

@nestia/sdk

Version:

Nestia SDK and Swagger generator

16 lines (15 loc) 648 B
import { type Node } from "@ttsc/factory"; import { INestiaProject } from "../../structures/INestiaProject"; import { ITypedMcpRoute } from "../../structures/ITypedMcpRoute"; import { ImportDictionary } from "./ImportDictionary"; /** * Emits a typed client wrapper for an MCP tool. * * Object output types are wrapped in `Primitive<T>` because MCP round-trips * values through JSON. Void MCP tools return `Promise<void>`. * * @author wildduck - https://github.com/wildduck2 */ export declare namespace SdkMcpRouteProgrammer { const write: (project: INestiaProject) => (importer: ImportDictionary) => (route: ITypedMcpRoute) => Node[]; }