Skip to content

Stateful CLI replaces the MCP endpoint; released notty-community dependency

Latest

Choose a tag to compare

@lukstafi lukstafi released this 30 Nov 09:32
· 2 commits to main since this release

The MCP endpoint is gone: the stateful CLI (minidebug_view <db> tui --db-mode with tui-render, tui-cmd and tui-status) replaces it, and CLI.md has a new section on reading traces from an AI agent. ppx_minidebug now depends on the released notty-community, so it no longer needs a pinned fork on Linux and macOS.

From the changelog:

Added

  • Expandable Long Values: Truncated leaf entries now render as expandable multiline content, improving readability for large data structures
  • Highlight Navigation in TUI: New m/M keys to jump to next/previous search highlight with automatic expansion
  • Numeric Sexp Inlining: Numeric-only sexp entries are now inlined for better searchability
  • Profiling Summary: minidebug_view <db> profile prints an aggregated per-function summary (calls, total, average, min, max), inspired by Landmarks
  • Dune Instrumentation Backend: ppx_minidebug can be used as a dune instrumentation backend, with automatic instrumentation of functions (#50)
  • Mouse Support in TUI: clicking and wheel scrolling

Removed

  • Breaking: the MCP server (minidebug_mcp) and the vendored ocaml-mcp are removed. The stateful CLI replaces it: minidebug_view <db> tui --db-mode with the tui-render, tui-cmd and tui-status commands. This drops the eio_main, cohttp-eio, jsonrpc and yojson dependencies

Fixed

  • Fixed duplicate data in wrapped long values when show_times enabled
  • Fixed decode_ellipsis_set skipping outer bracket when parsing inner arrays
  • Fixed backward goto-highlight (M) to skip current highlight first
  • Fixed Windows symlink issue with database file resolution
  • Removed unnecessary ALTER statements in DB migration code
  • Fixed minidebug_view <db> tui --db-mode exiting at once with no such table: tui_state on a trace no client command had touched yet
  • tui-cmd now exits with status 1 when a command fails or no TUI processes the batch, and withdraws its commands on such a timeout instead of leaving them for the next TUI to execute
  • Errors while setting up the TUI state tables, such as a read-only trace, are reported instead of ignored
  • Fixed TUI highlights being skipped for scopes reachable through more than one parent (#84)
  • Fixed ToC files: not created at log level 0, truncated on snapshot_every_sec snapshots, and correct when the debug channel is stdout (PrintBox backend)
  • Fixed a type error when building with OCaml 5.5

Changed

  • Depend on the released notty-community (>= 0.2.4) from the opam repository instead of pinning a fork. That release is not available on Windows: until upstream ships Windows console support (ocaml-community/notty-community#12), Windows builds need opam pin add notty-community.dev git+https://github.com/lukstafi/notty-community.git
  • Updated README to remove outdated platform independence note
  • Database-backed TUI state improvements