Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad-mcp

npm M8ven Live Monitored CI node license: GPL-3.0-or-later

Talk to your CrossPad. Let Claude do the toolchain.

crosspad-mcp is an MCP server that teaches Claude Code (or any MCP client) how to develop for the CrossPad pad controller. You say "flash the new build and check that it boots"; it runs the ESP-IDF build, asks you to confirm the flash, opens the console, runs the smoke scenario and tells you what happened — with the hardware traps already built in, so you don't have to remember which serial port reboots the board when you open it.

What you can do with it

Every card is a real prompt. The tools named underneath are what runs — you never have to call them yourself.

Say this…

…and this happens

"Build the firmware and flash it over OTA."

crosspad_build platform=idf streams the build, crosspad_flash transport=ota asks for confirmation, then streams the upload. New app directories are detected and the fullclean is done for you.

"Show me what's on the simulator screen."

crosspad_run launches the PC sim, crosspad_screenshot returns the LCD as an image Claude can actually look at. Then "press pad 5", "turn the encoder left twice" — crosspad_input.

"Play a drum pattern on the pads and record what comes out."

crosspad_stimulus hits the pads with real timings, crosspad_capture records the board through its own USB-audio endpoint, crosspad_analyze gives a verdict (onsets, clicks, silence, velocity curve).

"Why did it crash?"

crosspad_diagnose_crash — reset reason, registers, backtrace decoded against the ELF that is actually flashed, heap after restart. One call.

"Watch the battery charger state machine while I plug the cable in."

crosspad_trace polls STM32 variables live over ST-Link without halting the core, and plots them.

"Install the sampler app and rebuild."

crosspad_apps_install app_name=sampler adds the submodule from the crosspad-apps registry, then a clean build.

"Where is IPadLogicHandler implemented?"

crosspad_interface_implementations across every repo of the ecosystem, or crosspad_symbol for clangd-precise definitions and call hierarchies.

"Is my board even connected?"

crosspad_devices and crosspad_doctor — which USB mode it is in, which ports belong to it, what is missing on the host, and how to fix each thing.

Related MCP server: devctl-mcp

Quick start

One plugin brings the server and the skills (the ecosystem map, per-role guides, hardware traps, the game/kit port guide). In a terminal:

claude plugin marketplace add CrossPad/crosspad-mcp
claude plugin install crosspad@crosspad

(or /plugin marketplace add CrossPad/crosspad-mcp and /plugin install crosspad@crosspad inside Claude Code). The plugin starts the server through plugin/launch.mjs, which installs the matching crosspad-mcp-server from npm into ~/.local/crosspad-mcp on first start and finds your platform-idf checkout itself: the folder you opened Claude in, so a fork anywhere on disk works. Node.js 18 or newer is all it needs.

Open Claude Code in your platform-idf folder, then ask:

is my CrossPad connected, and is the toolchain set up?

That runs crosspad_doctor. Every failed check comes with a fix.

Without the plugin: claude mcp add crosspad -- npx -y crosspad-mcp-server. That server assumes your repos live side by side under ~/GIT/ — if they don't, set the paths once. Use one of the two, never both: they would register the server twice.

How it is organised

Only the core toolset is visible when the server starts, so the tool list stays small. Claude enables the others as the conversation needs them — or you start the server with --toolsets device,sim.

flowchart LR
    core["core · always on<br/>devices · doctor · snapshot<br/>build · flash · repo status · tasks<br/>bench lease"]
    sim["sim<br/>PC simulator: run, screenshot,<br/>input, MIDI, settings, tests"]
    device["device<br/>the board over USB: console,<br/>CDC verbs, UI driving, USB mode"]
    hil["hil<br/>scenarios, pad stimulus,<br/>audio capture + analysis, BLE"]
    code["code<br/>symbols, interfaces,<br/>docs search"]
    git["git<br/>submodule drift,<br/>update, commit"]
    apps["apps<br/>crosspad-apps registry"]
    trace["trace<br/>SWD live variables"]
    core --> sim & device & code & git & apps
    device --> hil
    core --> trace

Anything that writes to a device or your host is tiered. Flashing, DFU and SWD writes come back as confirmation required first; --read-only removes every writing tool from the list entirely. Long operations (builds, flashes, scenarios) run as tasks you can check on, wait for or cancel.

Who is it for

Going deeper

  • Usage reference — every install path, every tool and toolset, resources and prompts, configuration, HTTP transport, the v10 migration table.

  • FAQ — the questions that cost people an afternoon.

  • CHANGELOG

License

GPL-3.0-or-later — see LICENSE. Part of the CrossPad project. Releases up to 10.3.0 were published under MIT.

Available Tools

8 tools
crosspad_buildA
Destructive

[PC | ESP | STM HW] Build CrossPad for the given platform. • platform='pc' → CMake + Ninja host simulator. PREFER THIS over cmake --build build (picks right MSVC env on Windows, parses errors/warnings, streams progress). • platform='idf' → idf.py build for ESP32-S3 firmware. PREFER THIS over raw idf.py build (sources IDF env, auto-fullcleans when new apps detected, parses errors/warnings). Follows the board revision resolved by tools/crosspad_board.py — passes -B build_ -DSDKCONFIG=sdkconfig.; refuses if no revision is known. • platform='stm' → CMake + Ninja + arm-none-eabi for STM32G0 firmware (CrossPad r20). Uses CMakePresets (Debug/Release); output is build//CrossPad_STM32_r20.elf. Mode×platform compatibility: • incremental → all (default) • clean → all (wipes build dir, then builds) • reconfigure → PC & STM (re-runs cmake without wiping cache) • fullclean → IDF only (runs idf.py fullclean, then builds)

Inputs: platform (required), mode, board, build_type. Returns: tail, error, errors, success, +7 more

crosspad_devicesA
Read-onlyIdempotent

[ESP HW] List connected CrossPads as seen by the crosspad-hil daemon: id (dev_xxxx, stable per USB serial), usb_mode (default|audio|bootloader|unknown), and every port role (cdc, console=STM VCP, esp_midi, stm_midi, uac2, bootloader). kind keeps the v9 meaning: 'esp-native' (rev <2.0) or 'stm-bridge' (rev 2.0, STM32 composite CDC+MIDI). selected is set when exactly one device would be chosen implicitly by every other tool.

Inputs: no named parameters. Returns: ts, error, details, devices, +3 more

crosspad_doctorA
Read-onlyIdempotent

Environment doctor. Host checks: hil_python interpreter, crosspad-hil version vs the one this server needs, platform-idf root, ESP-IDF env, crosspad-pc root, per-rev build dirs and firmware age, simulator binary staleness. Daemon checks merged in: udev/dialout, port locks (holder PID + purpose), rtmidi/ALSA/sounddevice visibility. Also reports the daemon as a process: uptime, ops served, open handles and the OS resources it holds (ALSA sequencer clients, fds). Each check is {name, ok, detail, fix}; ok is false when any check fails. Run this first when a device tool errors. action=restart_daemon restarts the crosspad-hil daemon — how a newly installed crosspad-hil or a new scenario becomes visible without restarting this server.

Inputs: action, confirm_token. Returns: ok, hint, tool, error, +8 more

crosspad_flashA
Destructive

[ESP HW | STM HW] Flash firmware. Danger tier: it always runs a preflight first, always returns that preflight (refusal included), and needs a confirmation before writing anything. Preflight reports: the device's USB mode, which role the target port plays (the STM32 bridge console is refused as a flash target), the binary's own version string, whether it is older than the newest file under main/ or components/, and whether the build's board revision matches the device's — a mismatch is a blocker, because the revisions differ in pinout and the wrong image looks like dead hardware. target='esp': transport='ota' streams over USB CDC with the device running (no bootloader mode); transport='uart' runs idf.py flash and needs download mode. wait_boot=true then opens the console and returns a BootResult. target='stm': method='swd' (ST-Link) or 'dfu' (system bootloader, hold pad 1 at boot). The flash runs as a job: wait_seconds=0 (default) returns a task handle for crosspad_task; wait_seconds>0 inlines the final status. dry_run=true stops after the preflight. force=true overrides every blocker except the port-role refusal.

Inputs: port, force, device, method, +11 more. Returns: ts, hint, task, tool, +12 more

crosspad_repo_statusA
Read-only

Git status across ALL detected CrossPad repos in one call: branch, HEAD, dirty files, submodule sync state. PREFER THIS over running git status per repo — handles the 5-repo monorepo layout in one shot.

Inputs: no named parameters. Returns: error, repos, success

crosspad_snapshotA
Read-onlyIdempotent

[ESP HW | PC sim] One-call state snapshot (~300 tokens): apps {running, available}, ui {focus {ref,label}, group [{ref,label}], drawer, theme, app}, kit, leds, pads, mem, ble, console counters. Refs e<i> are ENC_GROUP indices for crosspad_ui focus — any UI action invalidates them and the next snapshot re-mints them. diff_from=<snapshot_id> adds changed. target=sim maps the simulator's stats onto the same shape (ui null).

Inputs: device, target, include, diff_from. Returns: ts, ui, ble, kit, +12 more

crosspad_taskA
Read-onlyIdempotent

Poll, wait on, cancel or list long-running crosspad tasks (build, flash, hil_run, capture, stimulus, submodule_update). Task handles are task_; results are kept 1 h after completion. Use this when your client does not support the MCP tasks capability.

Inputs: action (required), task, timeout_ms. Returns: task, error, tasks, success, +1 more

crosspad_toolsetsA
Read-onlyIdempotent

Manage which crosspad_* toolsets are visible. Only core is on at start. Toolsets: core, device, hil, sim, code, git, apps, trace. action=list shows all with enabled state; enable/disable take toolset= (core cannot be disabled); describe lists each tool with its safety tier. Enabling emits tools/list_changed — re-list tools afterwards. Tools hidden by a readonly policy never appear.

Inputs: action (required), toolset. Returns: added, error, enabled, removed, +5 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct concern: repo status, build, device enumeration, environment health, runtime snapshot, flashing, toolset visibility, and task lifecycle. No two tools have overlapping responsibilities, and the descriptions reinforce clear boundaries with explicit platform and scope tags.

    Naming Consistency4/5

    All names share the consistent `crosspad_` prefix and snake_case format, so the set is easy to scan and predict. However, the pattern is slightly mixed: `crosspad_build` and `crosspad_flash` are verb-like, while `crosspad_devices`, `crosspad_snapshot`, and `crosspad_toolsets` are noun-like resources.

    Tool Count5/5

    Eight tools is a well-scoped count for a multi-platform development server, with each tool covering a major workflow area and no redundancy. The count sits comfortably in the ideal range, especially given the built-in toolset management for expanding or hiding tools.

    Completeness4/5

    Core workflows—repo status, build, device discovery, environment checks, snapshot, flash, and async task management—are covered without dead ends. Minor gaps like direct device reset, app interaction, or trace collection are plausibly deferred to non-core toolsets, so the surface is slightly incomplete but not broken.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server that spawns autonomous Claude Code agents in GitHub repos, enabling task delegation with persistent state, multi-step workflows, and job monitoring.
      47
      161 npm
      2
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that lets Claude manage long-running development processes across frameworks like Flutter, Next.js, Spring Boot, and Vite, with lifecycle control, log streaming, and hot reload support.
      1
      -
    • A
      license
      A
      quality
      B
      maintenance
      Code intelligence MCP server for Claude Code providing multi-project code graph, semantic search, session history, knowledge base, and web search.
      15
      4
      MIT