Skip to content

v0.3.1

Choose a tag to compare

@gbdrt gbdrt released this 01 Dec 14:22
5251f5c

rocq-mcp v0.3.1

The last release on the pytanque / coq-lsp (pet) backend. Use it with Rocq/Coq switches where pet is available; the next release moves to pyrocq.

New tools

  • rocq_health — toolchain check: which opam switch the server runs on, rocq c / pet paths and versions.
  • rocq_switch — change the running server's opam switch in-session.

Compilation

  • rocq c is the default compiler (falls back to coqc).
  • rocq_compile_file: multi-error reporting (errors per declaration, stopping at the first top-level error), keep_vo, mode="vos", timing, and vo_rebuild_warning when a compile rewrites .vo files used by live sessions.
  • Dune projects: .vo kept out of the source tree; modern (rocq.theory ...) stanzas via dune rocq top.
  • Pattern-based diagnostic_hint on configuration failures (missing load path, .vo version skew).
  • _CoqProject: -native-compiler {yes,no,ondemand} allowed as -arg; absolute -Q/-R/-I paths under $OPAM_SWITCH_PREFIX/lib/coq allowed.

Interactive tools

  • Per-call timeout= on interactive tools (clamped by ROCQ_QUERY_TIMEOUT_CAP).
  • from_state is now required on rocq_check / rocq_step_multi (no implicit current state).
  • LRU state table (default 1000 states); stale-state warning when a held state's dependency .vo was rebuilt.
  • focus_depth on proof-state responses; bullets and braces handled as standalone sentences.
  • rocq_diag: load average, server_version; rocq_assumptions parsing fixes.
  • Unified response envelope (success / error / reason).

Full changelog: 0.2.0...0.3.1