Yichus / Reference / API MCP tools
api_compile
Parse and type-check Bosatsu API sources in memory (CompileKernel). No filesystem.
Kind: Compile. Origin: Yichus/Mcp::catalog.
CLI: yichus api compile — the same parse and type-check (`build` type-checks any Bosatsu files).
Parameters
sources(required, array) — JSON array of {fileName, source} Bosatsu files.
Read the result according to this tool’s scope: static checks, bounded execution checks, and descriptive diagrams answer different questions. A successful call is not a general approval of the program. The safety and permissions guide compares the checks and provides editable ownership, guard, and role examples.