/** * CodeEmitter — Full MCP Server Generator (MVA Convention) * * Generates a **complete, ready-to-run MCP Server** following the MVA directory convention: * * models/{tag}.schema.ts — M: Zod response schemas (data boundary) * views/{tag}.presenter.ts — V: createPresenter() scaffolds (perception layer) * agents/{tag}.tool.ts — A: defineTool() with all Vurb features * index.ts — Barrel export + ToolRegistry + registerAll() * server.ts — Complete MCP Server with attachToServer() * * Every feature is controlled by {@link GeneratorConfig}. * * @module */ import type { ApiSpec } from '../parser/types.js'; import { type GeneratorConfig } from '../config/GeneratorConfig.js'; /** A generated file with its path and content */ export interface GeneratedFile { readonly path: string; readonly content: string; } /** @deprecated Use GeneratorConfig instead */ export interface EmitterConfig { readonly baseUrl?: string; readonly contextImport?: string; } /** * Generate all files from a mapped OpenAPI spec. * * Follows the MVA directory convention: * models/ → Zod schemas (Model layer) * views/ → createPresenter (View layer) * agents/ → defineTool (Agent layer) * * @param spec - Mapped ApiSpec (actions must have resolved names) * @param config - Full generator configuration or legacy EmitterConfig * @returns Array of generated files */ export declare function emitFiles(spec: ApiSpec, config?: GeneratorConfig | EmitterConfig): GeneratedFile[]; //# sourceMappingURL=CodeEmitter.d.ts.map