Class McpCompilerService
java.lang.Object
org.ek9lang.mcp.McpCompilerService
Bridge between MCP server and the EK9 compiler.
Manages workspace, bootstrap caching, and compilation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA diagnostic entry from compilation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectDiagnostics(int errorLevel) Collect diagnostics from the last compilation.booleancompile(CompilerFlags flags) Compile the workspace up to the specified phase.booleanvoidinitializeWorkspace(List<String> roots) Initialize workspace from root directories.
-
Constructor Details
-
McpCompilerService
McpCompilerService(OsSupport osSupport)
-
-
Method Details
-
initializeWorkspace
-
compile
Compile the workspace up to the specified phase.- Returns:
- true if compilation succeeded without errors
-
collectDiagnostics
Collect diagnostics from the last compilation. -
hasErrors
public boolean hasErrors() -
getWorkspace
-
getLastCompiledProgram
-