# crosspad-mcp [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/CrossPad/crosspad-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 372  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/crosspad-mcp

## Description
Development workflow server for CrossPad — build, test, run, screenshot, and navigate code

## Tools
Capabilities this server exposes over MCP:

- **crosspad_build** — [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_<rev> -DSDKCONFIG=sdkconfig.<rev>; 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/<preset>/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)
- **crosspad_repo_status** — 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.
- **crosspad_devices** — [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.
- **crosspad_doctor** — 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.
- **crosspad_snapshot** — [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).
- **crosspad_flash** — [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.
- **crosspad_toolsets** — 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=<name> (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.
- **crosspad_task** — Poll, wait on, cancel or list long-running crosspad tasks (build, flash, hil_run, capture, stimulus, submodule_update). Task handles are task_<n>; results are kept 1 h after completion. Use this when your client does not support the MCP tasks capability.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "crosspad-mcp": {
    "command": "npx",
    "args": ["-y","crosspad-mcp-server"]
  }
}
```

## Documentation

## What crosspad-mcp does

crosspad-mcp provides MCP tools for developing and testing CrossPad software across a host simulator and supported hardware. It can build the PC simulator with CMake and Ninja, build ESP32-S3 firmware through ESP-IDF, or produce STM32G0 firmware using CMake, Ninja, and arm-none-eabi. The server also reports repository state, connected CrossPads, host and daemon health, and a compact runtime snapshot.

Hardware operations include flashing ESP32 devices over OTA or UART and STM32 boards through SWD or DFU. Flashing is guarded by a preflight that checks USB mode, port role, firmware age, and board-revision compatibility. A confirmation is required before writing, and a dry-run can stop after validation.

## How it works

The server exposes MCP tools through the `crosspad-mcp-server` npm package or the CrossPad Claude Code plugin. Its default tool visibility is intentionally narrow: the `core` toolset starts enabled, while additional toolsets can be enabled as needed. Available groups include device, HIL, simulator, code, Git, apps, and trace tooling. Tool visibility changes emit `tools/list_changed`, so clients should refresh their tool list afterward.

Builds and flashes may run as background tasks. `crosspad_task` can list, poll, wait for, or cancel operations, which is useful for clients without MCP task support. Completed task results remain available for one hour. The server can also run in read-only mode, which removes writing tools from the visible set.

## Setup and configuration

The simplest Claude Code setup uses the CrossPad plugin:

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

The plugin starts the server and installs the matching npm package on first launch. Node.js 18 or newer is required. Open Claude Code in the `platform-idf` checkout so the plugin can find that repository.

A direct MCP registration is also available:

```bash
claude mcp add crosspad -- npx -y crosspad-mcp-server
```

Use either the plugin or the direct registration, not both. The direct setup assumes the CrossPad repositories are arranged side by side under `~/GIT/`; repository paths can be configured when that layout is different. The server can also start with selected toolsets, such as `--toolsets device,sim`.

## Tools and capabilities

- `crosspad_build` builds PC, ESP32-S3, or STM32 targets with platform-specific environment handling and diagnostic parsing. It supports incremental, clean, reconfigure, and ESP-IDF full-clean modes where applicable.
- `crosspad_repo_status` checks branches, commits, dirty files, and submodule synchronization across detected CrossPad repositories.
- `crosspad_devices` lists connected CrossPads, USB modes, port roles, hardware kind, and implicit device selection.
- `crosspad_doctor` checks host tooling, firmware and build directories, simulator freshness, daemon state, permissions, port locks, audio visibility, and daemon-held resources.
- `crosspad_snapshot` returns simulator or hardware state, including applications, UI, kit, LEDs, pads, memory, Bluetooth, and console counters.
- `crosspad_flash` validates and flashes ESP32 or STM32 firmware, with confirmation, dry-run, board-revision checks, and optional boot-console access.
- `crosspad_toolsets` controls which CrossPad tool groups are visible.
- `crosspad_task` manages asynchronous builds, flashes, HIL runs, captures, stimuli, and submodule updates.

## Limitations and notes

The ESP32 build requires a known board revision and uses revision-specific build directories and SDK configuration. Flashing refuses a target-port role that is unsuitable for writing, including the STM32 bridge console. Snapshot UI references are invalidated by UI actions and must be reminted with a subsequent snapshot. The `crosspad-hil` daemon and the required CrossPad repositories, toolchains, and host permissions must be available for their associated checks and hardware operations.

_Full upstream README: https://allmcps.com/mcp/crosspad-mcp/readme_

