MCP server for the Quint formal specification language — typecheck, simulate, test, verify, and parse Quint specs
The server provides 6 well-intentioned formal verification tools with clear domain purpose (Quint specification language support). Naming is action-verb based and consistent (quint_typecheck, quint_run, quint_test, quint_verify, quint_parse, quint_docs). However, the implementation shows significant gaps in schema completeness, parameter description rigor, and output documentation. All tools have descriptions (good), but many descriptions lack specificity about prerequisites, return structure, and failure modes. Input schemas are present with Zod validation, but descriptions for parameters are inconsistent in depth, some are excellent ('Invariant to verify (required)') while others are vague ('Path to a .qnt file on disk' lacks format/constraint hints). No output schema is documented in the code or visible elsewhere, forcing LLMs to infer the structure. Error handling is present but generic (formatResult returns stdout/stderr as plain text), lacking categorization into retryable/user-fixable/fatal. This is a solid mid-range implementation, better than average community servers (avoids trivial naming and completely missing descriptions), but lacks the rigor of production-grade tools.
Return quick reference documentation for Quint syntax and built-in operators. Supports searches.
Parse a Quint specification and return the AST (abstract syntax tree) in JSON. Useful for analysis or validation without running the spec.
Simulate a Quint specification with random execution. Runs the state machine and optionally checks an invariant. Returns pass/fail and a counterexample trace if the invariant is violated.
Run named test definitions (run statements) from a Quint spec. Returns pass/fail for each test with failure details.
Type-check a Quint specification. Returns success or type errors with locations. Provide either source code or a file path.
Exhaustive model checking of a Quint spec via Apalache (requires Java 17+). Slower than simulation but checks ALL reachable states. Returns pass or a counterexample trace. Falls back gracefully if Apalache is not installed.
No documented output schemas. Tools return formatResult(result) which produces {content: [{type: 'text', text: string}], isError: boolean}. LLMs cannot know what structure to expect, forcing them to parse freeform text (stdout/stderr). This violates pattern:response-shaper and wastes tokens on unstructured output parsing.
Parameter 'invariant' in quint_run is optional but semantically critical. The description says 'Invariant to check during simulation' but does not explain: What happens if omitted? Does the tool still run without checking? Is there a default? This ambiguity forces LLMs to guess.
Parameters 'init', 'step', 'invariant' across quint_run, quint_verify, quint_test lack format/constraint hints. Descriptions state defaults ('default: init') but do not explain valid syntax, naming conventions, or examples. An LLM cannot know if 'init' should be a simple identifier, a qualified name, or Quint syntax.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 47 | - | v1 |
Error handling is generic. formatResult() returns plain stdout/stderr text with no categorization. LLMs cannot distinguish between 'Quint CLI not installed' (user-fixable), 'type error in spec' (user should fix spec), or 'Apalache timeout' (retryable). This violates pattern:error-classification.
quint_parse description says 'Return the AST (abstract syntax tree) in JSON' but the actual output is formatResult() → {content: [{type: 'text', text: string}]}. The raw JSON AST is not directly accessible, it is buried inside a text field. This breaks tool chaining and forces LLMs to parse JSON from text.
quint_docs can filter documentation with a 'search' parameter, but the description does not explain: What is searched (operator names, descriptions, examples)? What is returned (matching entries, count, structure)? The cheatsheet file path is hardcoded and file is not visible in the repo, so completeness is unverifiable.
Both quint_run and quint_verify accept 'source' or 'file_path' but descriptions do not clarify mutual exclusivity or behavior if both are provided. The code resolves them sequentially (source preferred), but LLMs must infer this from implementation.
Parameters 'max_samples' (quint_run) and 'max_steps' (quint_run, quint_verify) lack numeric constraints. Descriptions state defaults but not min/max bounds. An LLM could pass max_samples=1000000, causing timeout or resource exhaustion.