MCP Server for Delphi/Object Pascal compilation
This server has critical gaps in definition quality. Both tools ('compile' and 'build') have minimal descriptions (under 100 chars each), lack detailed parameter documentation, and expose no output schema to the LLM. The parameter 'project' is optional but has no guidance on search behavior when omitted. Error handling is absent, there is no indication of what compilation failures look like, what the tool returns on success, or how the LLM should interpret results. The tool descriptions state what they do but fail to explain WHEN to use each (compile vs build distinction is unclear without reading the description carefully). No enum constraints, validation rules, or recovery guidance. The implementation uses subprocess calls to Delphi compilers but none of that complexity is documented for the agent.
Build project in Release configuration (alias for compile with Release config).
Compile Delphi project (.dpr or .dproj) in Debug configuration.
Missing output schema documentation. Neither tool documents what fields the LLM receives on success (exit code, compilation errors, warnings, output path, time elapsed). LLMs cannot plan downstream actions or parse results without knowing the response structure.
Parameter descriptions are absent or minimal. The 'project' parameter in both tools states 'Path to project file. If omitted, searches current directory.' but does not explain search scope (recursive? immediate children only?), what happens if multiple projects are found, or whether .dpr is preferred over .dproj.
No error guidance. The tool implementation calls external Delphi compilers and can fail for many reasons (compiler not found, syntax errors, missing dependencies, disk full) but provides no error messages or recovery hints to the LLM. An agent cannot self-correct or guide the user.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-21 | F | 38 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 38 | - | v1 |
Tool descriptions do not distinguish Debug vs Release builds clearly enough for LLM decision-making. An agent unfamiliar with Delphi conventions cannot infer when to call 'compile' (debug) vs 'build' (release) without additional context. Add explicit guidance: 'Use for development/debugging. Produces unoptimized binaries.' vs 'Use for distribution. Produces optimized release binaries.'
No constraints or enums. Parameters accept free-form strings with no validation hints. The 'project' parameter could be a relative path, absolute path, or file glob, but the LLM is not told which formats are valid or how to resolve ambiguity.