v1

latestOpenAPI 3.0.42026-07-264372153.8 KB
Mcp

Generate code from semantic type definitions

Generates production-ready code files from structured type definitions using semantic type understanding.

Supports 10 languages: TypeScript, Python, Go, C#, Java, Kotlin, Groovy, Scala, Swift, PHP.

This endpoint is used by the MetaEngine MCP Server for AI-assisted code generation via Claude Code and other MCP-compatible tools.

post/api/mcp/generate

Request body

language'TypeScript' | 'Python' | 'Go' | 'CSharp' | 'Java' | 'Kotlin' | 'Groovy' | 'Scala' | 'Swift' | 'Php' | 'Rust'
initializeboolean nullable
packageNamestring nullable
skipEnumMembersValidationboolean nullable

Response

Code generated successfully. Returns array of file paths and contents with execution metrics.

executionTimeInMillisecondsinteger
warningsstring[] nullable