# Otp\_debug\_mcp 0.16 - debugging embedded BEAM nodes (Nerves, 32-bit ARM) over an SSH tunnel

**URL:** <https://erlangforums.com/t/otp-debug-mcp-0-16-debugging-embedded-beam-nodes-nerves-32-bit-arm-over-an-ssh-tunnel/6191>\
**Category:** Library Updates\
**Tags:** rabbitmq, cowboy, erlang, erlang-otp, ai, phoenix, mcp, debugging, claude, n-erves\
**Created:** [December 3, 2026, 1:38am UTC](https://erlangforums.com/t/otp-debug-mcp-0-16-debugging-embedded-beam-nodes-nerves-32-bit-arm-over-an-ssh-tunnel/6191 "2026-12-03T01:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayarodionov](https://erlangforums.com/user_avatar/erlangforums.com/ayarodionov/32/3278_2.png) [@ayarodionov](https://erlangforums.com/u/ayarodionov)\
**Post date:** [December 3, 2026, 1:38am UTC](https://erlangforums.com/t/otp-debug-mcp-0-16-debugging-embedded-beam-nodes-nerves-32-bit-arm-over-an-ssh-tunnel/6191/1 "2026-12-03T01:38:04Z")

</div>

otp\_debug\_mcp is an MCP server that lets an AI agent attach to a running Erlang/Elixir node as a hidden node and diagnose it with a recon-style playbook: memory, mailboxes, crash loops, slow calls, ports, ETS. It works the same for Erlang and Elixir node

The latest release targets embedded nodes, Nerves in particular. Some of it is useful for any BEAM device:

- 32-bit VMs. On a 32-bit VM (erlang:system\_info(wordsize) = 4), ETS and heap sizes counted in words were 2× too big. They now use the target’s word size.

- Reaching a device without exposing distribution. OTP’s ssh daemon refuses ssh -L unless tcpip\_tunnel\_in is set. That option takes a fun(Host, Port), so you can allow exactly one port: the node’s distribution port, with the node listening on loopback only (inet\_dist\_use\_interface, inet\_dist\_listen\_min/max). On your side, -erl\_epmd\_port 9100 dials that port through the tunnel without epmd. The guide is docs/nerves.md ( [otp\_debug\_mcp/docs/nerves.md at main · ayarodionov/otp\_debug\_mcp · GitHub](https://github.com/ayarodionov/otp_debug_mcp/blob/main/docs/nerves.md) ).

- In-memory logs. Nerves devices log to RingLogger’s buffer rather than to a file. recent\_errors now reads it, including errors logged before anyone connected.

- A demo device to try it on, examples/nerves ( [otp\_debug\_mcp/examples/nerves at main · ayarodionov/otp\_debug\_mcp · GitHub](https://github.com/ayarodionov/otp_debug_mcp/tree/main/examples/nerves) ): a release on a 32-bit ARM VM in Docker, reachable only over SSH, with a crash-looping driver and a backed-up mailbox to find.

Help wanted. It has only been tested on an emulated 32-bit ARM VM in Docker, not on real hardware. I would be very happy if anybody tried it on a real device (a Nerves board, or any embedded BEAM node) and reported what works and what doesn’t, here or in a GitHub issue.

- Repo: [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](https://github.com/ayarodionov/otp_debug_mcp)

- Release: [Release v0.16.1 · ayarodionov/otp\_debug\_mcp · GitHub](https://github.com/ayarodionov/otp_debug_mcp/releases/tag/v0.16.1)
