PIO Agent
NPM · PLATFORMIO-MCP
Build, inspect, flash, and monitor PlatformIO firmware projects with policy-controlled tools.
Available components
Last scanned (19 hours ago)
Scores higher than 90% of npm servers
Category IoT and Hardware
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security98
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- No install/post-install scripts declared.Pass
- 43 of 146 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency97
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to jl-codes/platformio-mcp). View diagnostics → Pass
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 20 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability71
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 7381 tokens (~102/item across 72 items; 72 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management70
- Stability observed for 21 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage78
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 33% of tool parameters carry a description.Partial
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- All 5 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation.Pass
- An AI judge read all 72 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 16 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 67 to 70. That category is still filling its 30-day observation window: 20 days of observed history at the previous scan, 21 at this one. The score rises as the window fills, whether or not the server changes.
- 14 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 60 to 63. That category is still filling its 30-day observation window: 18 days of observed history at the previous scan, 19 at this one. The score rises as the window fills, whether or not the server changes.
- 13 Oct 26 0
- Security disclosure: unverified → fail ▼ functional
- 12 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 53 to 57. That category is still filling its 30-day observation window: 16 days of observed history at the previous scan, 17 at this one. The score rises as the window fills, whether or not the server changes.
- 11 Oct 26 +3
- Security disclosure: fail → unverified ▼ functional
- 3 Oct 26 +9
- Source repository: unverified → pass ▲ security
- Stability: unverified → 0.27 ▲ functional
- 2 Oct 26 −5
- Provenance: pass → unverified ▼ security
- 28 Sept 26 0
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 16 Oct 2026 · Analysed npm/platformio-mcp@3.1.0
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | npm |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | jl-codes/platformio-mcp |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/jl-codes/platformio-mcp/.github/workflows/release.yml@refs/tags/v3.1.0 |
| Rekor log index | 2961939495 |
| Predicate type | SLSA build provenance https://slsa.dev/provenance/v1 |
| Subject digest | sha512:5baf41b91f9cb6bb3b0de16fffa8adf718338361d22695f5688daf4cec2cbbb7df79c453ef0edef1b2628d7dc2173b4a382cf6010f85377f4c2cbae2b |
Background: How many MCP packages publish verified provenance →
Dependencies 146 packages
| Packages resolved | 146 |
|---|---|
| Stale | 43 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
acquire_lock ~47
Explicitly claim the hardware queue lock for multi-step tasks. Throws if already held.
| Name | Type | Req | Description |
|---|---|---|---|
| reason | string | – | Reason for locking |
| sessionId | string | yes | Your active Session ID |
No output schema declared.
No examples provided.
agent_build_diagnose ~103
Runs build_project and returns rich structured diagnostics with error taxonomy, evidence, severity, retry-safety, and resource usage (RAM/Flash).
| Name | Type | Req | Description |
|---|---|---|---|
| background | boolean | – | If true, dispatches build to background and returns a pending diagnostic status. |
| environment | string | – | Optional specific environment from platformio.ini. |
| projectDir | string | yes | Path to the PlatformIO project directory. |
| verbose | boolean | – | If true, preserves verbose build output. |
No output schema declared.
No examples provided.
agent_flash_monitor_verify ~211
Builds (optionally), flashes firmware with monitor restart, then verifies runtime serial output against expected/rejected patterns and stability criteria.
| Name | Type | Req | Description |
|---|---|---|---|
| autoBuild | boolean | – | If true, builds before flashing when firmware artifact is missing. |
| automationKey | string | – | Stable scheduled-run key. Supplying this activates unattended automation policy. |
| environment | string | – | Optional specific environment from platformio.ini. |
| expect_all | array | – | Serial markers expected to appear. |
| maxRunDurationSeconds | integer | – | Required finite execution budget for an unattended write. |
| port | string | – | Optional upload port. |
| projectDir | string | yes | Path to the PlatformIO project directory. |
| reject_patterns | array | – | Serial patterns that must not appear. |
| stabilityWindowSeconds | number | – | Required quiet window in seconds (default 10). |
| targetBinding | object | – | Short-lived exact target binding returned by agent_resolve_target. |
| timeoutSeconds | number | – | Verification window in seconds (default 45). |
No output schema declared.
No examples provided.
agent_generate_board_report ~59
Generates a compact board intelligence report and caches it in .pio-mcp-workspace/boardReport.json.
| Name | Type | Req | Description |
|---|---|---|---|
| boardId | string | yes | Target PlatformIO board ID. |
| projectDir | string | yes | Path to the PlatformIO project directory. |
No output schema declared.
No examples provided.
agent_get_last_report ~44
Returns the last persisted agent report from .pio-mcp-workspace/lastAgentReport.json.
| Name | Type | Req | Description |
|---|---|---|---|
| projectDir | string | yes | Path to the PlatformIO project directory. |
No output schema declared.
No examples provided.
agent_monitor_health ~122
Resolves one device, performs a bounded serial capture, evaluates health markers, and persists change-only automation state when automationKey is provided.
| Name | Type | Req | Description |
|---|---|---|---|
| automationKey | string | – | – |
| baudRate | integer | – | – |
| captureDurationSeconds | integer | – | – |
| cursor | string | – | – |
| environment | string | – | – |
| expectedMarkers | array | – | – |
| failureThreshold | integer | – | – |
| maxBytes | integer | – | – |
| port | string | – | – |
| projectDir | string | yes | – |
| rejectedPatterns | array | – | – |
No output schema declared.
No examples provided.
agent_resolve_target ~87
Resolves exactly one PlatformIO environment, board, and attached physical device. Returns ambiguity instead of guessing and issues a short-lived binding for write workflows.
| Name | Type | Req | Description |
|---|---|---|---|
| bindingTtlSeconds | integer | – | – |
| environment | string | – | Optional declared PlatformIO environment. |
| port | string | – | Optional exact attached serial port. |
| projectDir | string | yes | Exact PlatformIO project directory. |
No output schema declared.
No examples provided.
agent_safe_pin_audit ~60
Heuristic static pin audit for board-specific GPIO risks (ESP32 strapping/input-only/flash pins).
| Name | Type | Req | Description |
|---|---|---|---|
| boardId | string | yes | Target PlatformIO board ID. |
| projectDir | string | yes | Path to the PlatformIO project directory. |
No output schema declared.
No examples provided.
agent_validate_project ~56
Agent-oriented pre-flight validation for a PlatformIO project. Reports environments, board IDs, source-file presence, config gaps, connected devices, and recommended next actions.
| Name | Type | Req | Description |
|---|---|---|---|
| projectDir | string | yes | Path to the PlatformIO project directory. |
No output schema declared.
No examples provided.
build_project ~286
Compiles the project and generates the firmware binary via PlatformIO. PREFERRED over running `pio run` directly in a shell — this tool integrates with the hardware lock, the content-hash build cache (skips toolchain work when src/ is unchanged), and a structured-error parser that returns `structuredErrors` + `nextSteps` alongside the raw log. Returns immediately on a cache hit (no compilation). Set `verbose=true` only when you need the full log; otherwise the response stays compact. Use `background=true` for very long first-time builds to avoid MCP timeouts and poll with `check_task_status`.
| Name | Type | Req | Description |
|---|---|---|---|
| background | boolean | – | If true, dispatches the compilation to the background and returns immediately to prevent MCP timeouts. You must poll status subsequently. |
| environment | string | – | Optional specific environment to build from platformio.ini |
| forceExecution | boolean | – | Run a fresh build even when inputs match the cache |
| jobs | integer | – | Optional parallel build jobs |
| projectDir | string | yes | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
| sessionId | string | – | Agent session ID for pipeline lock validation |
| verbose | boolean | – | If true, returns the complete verbose build log in the result instead of truncating it on success |
No output schema declared.
No examples provided.
cancel_task ~45
Idempotently cancels one known background task and releases only resources proven to be owned by that task.
| Name | Type | Req | Description |
|---|---|---|---|
| projectDir | string | – | – |
| taskId | string | yes | – |
No output schema declared.
No examples provided.
capture_serial_window ~125
Acquires a bounded serial-monitor lease, captures redacted incremental output, and restores or releases resources on every exit path.
| Name | Type | Req | Description |
|---|---|---|---|
| automationKey | string | – | Stable scheduled-run key. Supplying this activates unattended automation policy. |
| baudRate | integer | – | – |
| cursor | string | – | – |
| durationSeconds | integer | – | – |
| environment | string | – | – |
| maxBytes | integer | – | – |
| port | string | – | – |
| projectDir | string | yes | – |
| targetBinding | object | – | Short-lived exact target binding returned by agent_resolve_target. |
No output schema declared.
No examples provided.
check_project ~132
Static analysis validation.
| Name | Type | Req | Description |
|---|---|---|---|
| background | boolean | – | Run slow analysis in background |
| environment | string | – | Specific environment to check |
| pattern | string | – | Source file pattern |
| projectDir | string | yes | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
| severity | string | – | Minimum defect severity |
| skipPackages | boolean | – | Exclude dependency source files |
| structuredReport | boolean | – | Request JSON analysis and return structured defects for foreground calls |
| tool | string | – | Configured analysis tool |
No output schema declared.
No examples provided.
check_task_status ~120
Polls the status of an ongoing background task. Returns a JSON object where `status` indicates the success of the polling operation itself, and `targetStatus` (running, failed, completed) indicates the state of the actual background task.
| Name | Type | Req | Description |
|---|---|---|---|
| logPath | string | – | Optional relative log path to check. |
| projectDir | string | – | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
| taskId | string | – | Optional task ID to check status. |
No output schema declared.
No examples provided.
clean_project ~127
Removes build artifacts and compiled files from the project.
| Name | Type | Req | Description |
|---|---|---|---|
| background | boolean | – | If true, dispatches the long-running execution to the background and returns immediately to prevent MCP timeouts. You must poll status subsequently. |
| environment | string | – | Optional environment to clean |
| full | boolean | – | Also remove downloaded build dependencies using fullclean |
| projectDir | string | yes | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
| sessionId | string | – | Agent session ID for pipeline lock validation |
No output schema declared.
No examples provided.
coredump ~177
Inspect an ESP core dump from a file or explicitly authorized device partition read, optionally analyzing it against an explicit ELF. Device reads can reset hardware and require separate device and host-command grants.
| Name | Type | Req | Description |
|---|---|---|---|
| analyze | boolean | – | – |
| approvalId | string | – | – |
| commandApprovalId | string | – | – |
| device | object | – | – |
| dumpPath | string | – | – |
| elfPath | string | – | – |
| encrypted | boolean | – | – |
| expectedElfSha256 | string | – | – |
| expectedInputSha256 | string | – | – |
| exportApprovalId | string | – | – |
| format | string | – | – |
| outPath | string | – | – |
| projectDir | string | yes | – |
| retainDump | boolean | – | Save the device partition in private managed storage with 24-hour expiry; requires export permission. |
No output schema declared.
No examples provided.
debug_cmd ~95
Send a classified GDB/MI or console command to this connection's session. Inspection, target mutation and privileged host commands are authorized separately. Timeout does not halt a running target.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| command | string | yes | – |
| request_approval_id | string | – | – |
| session_id | string | yes | – |
| target_approval_id | string | – | – |
| timeout_s | number | – | – |
No output schema declared.
No examples provided.
debug_list ~43
List this connection's debugger sessions, observed target state and pending cleanup. Does not enumerate another connection's sessions or contact hardware.
| Name | Type | Req | Description |
|---|---|---|---|
| request_approval_id | string | – | – |
No output schema declared.
No examples provided.
debug_start ~219
Build and start a connection-owned GDB session using PlatformIO's generated initialization, an identified USB probe and a local OpenOCD or J-Link backend. Host execution and target effects require separate permissions. Probe custody remains held until owned descendant groups close.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| backend_host_approval_id | string | – | – |
| backend_target_approval_id | string | – | – |
| build_approval_id | string | – | – |
| config_approval_id | string | – | – |
| discovery_approval_id | string | – | – |
| env | string|null | – | – |
| image_approval_id | string | – | – |
| initialization_host_approval_id | string | – | – |
| initialization_target_approval_id | string | – | – |
| load | boolean | – | – |
| probe | object | – | – |
| project_dir | string|null | – | – |
| request_approval_id | string | – | – |
| resolution_approval_id | string | – | – |
| system_approval_id | string | – | – |
| timeout_s | number | – | – |
No output schema declared.
No examples provided.
debug_stop ~104
Run the configured reset/run hook with host and target permissions, then close owned GDB/backend process groups and release probe custody. Set process_only for recovery without target commands; failed cleanup retains the session for retry.
| Name | Type | Req | Description |
|---|---|---|---|
| host_approval_id | string | – | – |
| process_only | boolean | – | – |
| request_approval_id | string | – | – |
| session_id | string | yes | – |
| target_approval_id | string | – | – |
| timeout_s | number | – | – |
No output schema declared.
No examples provided.
decode_backtrace ~133
Decode crash addresses against the selected current or retained ELF. Requires build permission for metadata; does not prove flashed-device identity.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| archivedElfSha256 | string | – | Retained ELF hash from this environment source path, for an earlier build. |
| environment | string | yes | Explicit build environment; metadata collection can execute project scripts. |
| expectedElfSha256 | string | – | – |
| includeAllHex | boolean | – | – |
| projectDir | string | yes | Explicit PlatformIO project directory. |
| text | string | yes | Crash output, at most 1 MiB UTF-8. |
No output schema declared.
No examples provided.
deps_check ~83
Audit declared and installed project dependencies, with optional separately authorized build and LDF graph evidence.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| build | boolean | – | – |
| buildApprovalId | string | – | – |
| configurationApprovalId | string | – | – |
| environment | string | – | – |
| inventoryApprovalId | string | – | – |
| projectDir | string | yes | – |
No output schema declared.
No examples provided.
flash_verification ~275
Build and upload firmware, verify fresh owned serial boot output, and decode crashes when authorized. Preserves quiet-window/crash checks; reports incomplete evidence and unverified firmware identity explicitly.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| baud | integer|null | – | – |
| config_approval_id | string | – | – |
| decode_approval_id | string | – | – |
| decode_config_approval_id | string | – | – |
| discovery_approval_id | string | – | – |
| env | string|null | – | – |
| expect | string | – | – |
| fail_on | string | – | – |
| manifest_approval_id | string | – | – |
| max_lines | integer | – | – |
| monitor_approval_id | string | – | – |
| monitor_port | string|null | – | – |
| preflight_discovery_approval_id | string | – | – |
| project_dir | string|null | – | – |
| read_approval_id | string | – | – |
| resume_id | string | – | – |
| selection_approval_id | string | – | – |
| settle_s | number | – | – |
| stability_window_s | number | – | – |
| stop_open_sessions | boolean | – | – |
| system_approval_id | string | – | – |
| timeout_s | number | – | – |
| upload_port | string|null | – | – |
| workflow_approval_id | string | – | – |
No output schema declared.
No examples provided.
get_approval_request ~42
Reads one approval request and expiry without exposing approve or deny mutations to the agent.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | yes | – |
| projectDir | string | – | – |
No output schema declared.
No examples provided.
get_board_info ~58
Gets detailed information about a specific board including MCU, frequency, flash, RAM, and supported frameworks.
| Name | Type | Req | Description |
|---|---|---|---|
| boardId | string | yes | Board ID (e.g., "esp32dev", "uno", "nucleo_f401re") |
No output schema declared.
No examples provided.
get_dashboard_url ~54
Retrieves the address and auth token for the MCP Web Dashboard. Automatically starts the web server on demand if offline.
| Name | Type | Req | Description |
|---|---|---|---|
| open | boolean | – | If true, automatically opens the authenticated GUI link natively in the system's browser. |
No output schema declared.
No examples provided.
get_lock_status ~19
Reveals who currently owns the hardware queue lock.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
get_monitor_status ~50
Reports active, inactive, or stale serial monitor state with a bounded incremental cursor.
| Name | Type | Req | Description |
|---|---|---|---|
| port | string | – | Optional exact serial port. |
| projectDir | string | – | Optional exact PlatformIO project directory. |
No output schema declared.
No examples provided.
get_policy_status ~41
Returns the active policy profile and allowed/approval-required/denied operations.
| Name | Type | Req | Description |
|---|---|---|---|
| projectDir | string | – | Optional project directory to resolve local policy profile context. |
No output schema declared.
No examples provided.
get_project_config ~50
Dumps platformio.ini JSON.
| Name | Type | Req | Description |
|---|---|---|---|
| projectDir | string | yes | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
No output schema declared.
No examples provided.
get_project_context ~161
Returns a compact pre-flight snapshot of a PlatformIO project: declared environments, source files under src/, `lib_deps`, build-cache state, firmware artifact path, connected serial devices, and a `nextSteps` checklist. Call this FIRST when starting work on a project instead of issuing several read_file/list_devices/cat-log calls — it collapses that ritual into a single deterministic response. Pure I/O, no toolchain invocation; safe to call repeatedly.
| Name | Type | Req | Description |
|---|---|---|---|
| includeBuildHistory | boolean | – | If true, include the most recent build/upload status summary from the workspace log directory. |
| projectDir | string | yes | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
No output schema declared.
No examples provided.
init_project ~121
Initializes a new PlatformIO project with the specified board and optional framework. Creates project structure with src/, include/, lib/, and test/ directories.
| Name | Type | Req | Description |
|---|---|---|---|
| board | string | yes | Board ID for the project |
| framework | string | – | Optional framework (e.g., "arduino", "espidf", "mbed") |
| platformOptions | object | – | Optional platform-specific configuration options |
| projectDir | string | yes | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
No output schema declared.
No examples provided.
install_library ~122
Installs a library from the PlatformIO registry either globally or to a specific project. Supports version specification.
| Name | Type | Req | Description |
|---|---|---|---|
| global | boolean | – | If true, performs the operation globally. Defaults to false. |
| library | string | yes | Library name or ID to install |
| projectDir | string | – | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
| version | string | – | Optional specific version (e.g., "1.0.0", "^2.1.0") |
No output schema declared.
No examples provided.
list_boards ~71
Lists all available PlatformIO boards with optional filtering by platform, framework, or MCU. Supports 1000+ boards across 30+ platforms.
| Name | Type | Req | Description |
|---|---|---|---|
| filter | string | – | Optional filter by platform (e.g., "espressif32"), framework (e.g., "arduino"), or MCU name |
No output schema declared.
No examples provided.
list_devices ~23
Lists all connected serial devices that can be used for firmware upload and monitoring.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
list_installed_libraries ~76
Lists all installed libraries either globally or for a specific project.
| Name | Type | Req | Description |
|---|---|---|---|
| global | boolean | – | If true, performs the operation globally. Defaults to false. |
| projectDir | string | – | Path to the PlatformIO project directory. Agents SHOULD ALWAYS explicitly provide this to ensure operations execute in the correct workspace, unless explicitly instructed otherwise. |
No output schema declared.
No examples provided.
list_pending_approvals ~39
Lists pending project-scoped approval requests without exposing any approval mutation.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| projectDir | string | – | – |
No output schema declared.
No examples provided.
list_targets ~52
List structured target metadata for selected or all environments. Requires build permission; does not execute the listed targets.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| environment | string | – | – |
| projectDir | string | yes | – |
No output schema declared.
No examples provided.
list_task_history ~46
Returns compact project-scoped task history after reconciling stale tracked processes.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| projectDir | string | yes | – |
| status | string | – | – |
No output schema declared.
No examples provided.
memory_watch ~182
Collect bounded heap/stack telemetry from an owned session or an authorized temporary monitor. Reports sample-window trends, explicit unknown units and incomplete collection; does not prove a memory leak.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| baud | integer|null | – | – |
| config_approval_id | string | – | – |
| discovery_approval_id | string | – | – |
| env | string|null | – | – |
| max_lines | integer | – | – |
| pattern | string|null | – | – |
| port | string|null | – | – |
| project_dir | string|null | – | – |
| read_approval_id | string | – | – |
| seconds | number | – | – |
| selection_approval_id | string | – | – |
| session_id | string|null | – | – |
| stack_unit | string | – | – |
| stack_warn_bytes | integer | – | – |
| stack_word_bytes | integer | – | – |
No output schema declared.
No examples provided.
monitor_capture ~139
Open, read and close an owned serial monitor. Both opening and reading must be authorized before startup; unconfirmed closure retains device ownership.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| baud | integer|null | – | – |
| config_approval_id | string | – | – |
| discovery_approval_id | string | – | – |
| env | string|null | – | – |
| max_lines | integer | – | – |
| port | string|null | – | – |
| project_dir | string|null | – | – |
| read_approval_id | string | – | – |
| seconds | number | – | – |
| selection_approval_id | string | – | – |
| until | string|null | – | – |
No output schema declared.
No examples provided.
partition_table ~232
Inspect ESP partition artifacts and firmware fit. Optional buildMetadata requires build permission and can execute project scripts. Optional readDevice resets/reads an explicitly selected serial device with separate permissions.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| boardApprovalId | string | – | – |
| buildMetadata | boolean | – | Generate build metadata under build permission; may execute project scripts. |
| commandApprovalId | string | – | – |
| configApprovalId | string | – | – |
| environment | string | – | – |
| firmwarePath | string | – | – |
| flashSize | integer | – | – |
| format | string | – | – |
| metadataApprovalId | string | – | – |
| observedTablePath | string | – | – |
| port | string | – | – |
| projectDir | string | yes | – |
| readApprovalId | string | – | – |
| readDevice | boolean | – | Read the partition sector from an explicit serial port; may reset hardware and requires separate device and host-command permissions. |
| sdkconfigPath | string | – | – |
| systemApprovalId | string | – | – |
| tableOffset | integer | – | – |
| tablePath | string | – | – |
No output schema declared.
No examples provided.
pkg_install ~62
Install a library, platform or tool in a project and save dependencies through PlatformIO.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| environment | string | – | – |
| kind | string | – | – |
| projectDir | string | yes | – |
| spec | string | yes | – |
No output schema declared.
No examples provided.
pkg_list ~47
List project packages and environments. Requires build permission because PlatformIO loads platform code.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| environment | string | – | – |
| projectDir | string | yes | – |
No output schema declared.
No examples provided.
pkg_outdated ~47
Report outdated project packages. Requires build permission because PlatformIO loads platform code.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| environment | string | – | – |
| projectDir | string | yes | – |
No output schema declared.
No examples provided.
pkg_search ~52
Search PlatformIO library, platform or tool registry packages by type and page.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| kind | string | – | – |
| page | integer | – | – |
| query | string | yes | – |
No output schema declared.
No examples provided.
pkg_uninstall ~61
Remove a library, platform or tool from a project and its declared dependencies.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| environment | string | – | – |
| kind | string | – | – |
| projectDir | string | yes | – |
| spec | string | yes | – |
No output schema declared.
No examples provided.
pkg_update ~47
Update project dependencies within declared version constraints, with retained output and configuration change hashes.
| Name | Type | Req | Description |
|---|---|---|---|
| approvalId | string | – | – |
| environment | string | – | – |
| projectDir | string | yes | – |
No output schema declared.
No examples provided.
port_diagnose ~97
Inspect serial-port presence, permissions and observed holders without opening or closing the device. Missing holder evidence does not prove availability.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| config_approval_id | string | – | – |
| env | string|null | – | – |
| monitor_approval_id | string | – | – |
| port | string|null | – | – |
| project_dir | string|null | – | – |
| selection_approval_id | string | – | – |
No output schema declared.
No examples provided.
power_profile ~374
Collect bounded serial current samples or PPK2 meter windows. PPK2 requires explicit mode, voltage/current limits, DUT port plus configured PIO_MCP_PPK2_ENV. An omitted meter port selects one matching PPK2 USB endpoint; ambiguous endpoints require explicit selection. Source mode requires independent power permission. operation=list/cleanup inspects or retries this connection's retained meter cleanup. An owned serial trigger retains DUT custody through meter cleanup. Explicit multi-interface selection pins the observed interface set and retains whole-device exclusion; physical acceptance is pending.
| Name | Type | Req | Description |
|---|---|---|---|
| approval_id | string | – | – |
| baud | integer | – | – |
| buckets | integer | – | – |
| config_approval_id | string | – | – |
| current_limit_ma | number | – | – |
| discovery_approval_id | string | – | – |
| dut_port | string | – | – |
| env | string|null | – | – |
| host_approval_id | string | – | – |
| max_lines | integer | – | – |
| mode | string | – | – |
| operation | string | – | – |
| pattern | string|null | – | – |
| port | string|null | – | – |
| power_approval_id | string | – | – |
| power_operation_id | string | – | – |
| profile_approval_id | string | – | – |
| project_dir | string|null | – | – |
| provenance | string | – | – |
| read_approval_id | string | – | – |
| seconds | number | – | – |
| selection_approval_id | string | – | – |
| sleep_threshold_ma | number|null | – | – |
| source | string | – | – |
| trigger | string|null | – | – |
| trigger_approval_id | string | – | – |
| trigger_seconds | number | – | Trigger wait limit; defaults to seconds when omitted. |
| trigger_session_id | string|null | – | – |
| voltage_mv | number|null | – | – |
No output schema declared.
No examples provided.
How do I install the PIO Agent MCP server?
PIO Agent runs locally as an npm package, launched with npx -y platformio-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
npm · platformio-mcp
claude mcp add jl-codes-platformio-mcp -- npx -y platformio-mcp
What is the PIO Agent MCP server?
PIO Agent is an MCP server listed in the public MCP registry as io.github.jl-codes/platformio-mcp. Build, inspect, flash, and monitor PlatformIO firmware projects with policy-controlled tools. This page covers its npm package (platformio-mcp).
Is the PIO Agent MCP server safe to use?
PIO Agent scores 88 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 16 October 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the PIO Agent MCP server expose?
PIO Agent exposes 72 tools: deps_check, project_envs, project_metadata, coredump, partition_table, and 67 more. Their descriptions and schemas cost roughly 7,381 tokens of context every time the server is loaded.
Is the PIO Agent MCP server still maintained?
PIO Agent is still listed as active in the MCP registry. We last reached this channel on 16 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the PIO Agent MCP server under?
PIO Agent declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.