Otp_debug_mcp 0.15: a flight recorder, read-only mode, and conclusions instead of data

otp_debug_mcp is an MCP server that lets an AI agent (Claude Code, Cursor, Copilot, …) debug a running Erlang/OTP node, in the spirit of recon and Erlang in Anger. It attaches as a hidden node, so the node needs no changes, and shows terms from an Erlang node in Erlang syntax. It also knows RabbitMQ, EMQX, ejabberd, riak_core, mnesia, cowboy, ranch. GitHub - ayarodionov/otp_debug_mcp: MCP server for AI-driven debugging of live Erlang/Elixir OTP nodes: hidden-node attach, recon-based diagnostic battery, safe tracing, snapshot/diff · GitHub

What’s new in 0.14 and 0.15:

  • Conclusions, not data. diagnose states each problem once, with its evidence and the next step, instead of dumping every check’s measurements. For example, it reports a mailbox’s growth rate, where the process is stuck, and who floods it (from an isolated OTP 27+ trace session). On our 34 blind sessions, the cost per session fell by 15%.
  • Flight recorder. record samples the node every few seconds, even after the agent disconnects. history tells what happened while nobody was looking, with times. wait_for_problem waits until a new problem appears. The recorder loads nothing onto the node and uses under a tenth of one scheduler.
  • For production. Read-only mode (OTP_DEBUG_MCP_READ_ONLY=true) refuses every step that would change the node. An audit log records every tool call. Names you give the tools never create new atoms on the node.
  • Easier start. MCP prompts in the client’s menu: help, investigate NODE SYMPTOM and watch NODE MINUTES. Also a real --help and --version.

Try it: releases for Linux and macOS bundle their own runtime, or use the Docker image Package otp_debug_mcp · GitHub . Start a broken demo node with examples/erlang/run.sh shop and tell the agent: “shop_erl@yourhost is falling behind and its memory keeps growing. Find out why.” The tutorial goes on from there to your own nodes and production, with best practices.

Tested on OTP 26–29. Feedback welcome, especially problems it misses and what you’d need before pointing it at production.