MCP for Raspberry Pi Pico W
MCP for Raspberry Pi Pico W

The firmware exposes JSON-RPC tools that can be invoked using the tools/call
method. Use tools/list
to discover available tools: set_location
, set_switch_id
, and set_switch
. These allow you to configure the target switch and toggle the onboard LED.
Example requests:
{ "jsonrpc": "2.0", "method": "tools/call",
"params": { "name": "set_location", "arguments": { "location": "office" } },
"id": 1 }
{ "jsonrpc": "2.0", "method": "tools/call",
"params": { "name": "set_switch_id", "arguments": { "switch_id": "led" } },
"id": 2 }
{ "jsonrpc": "2.0", "method": "tools/call",
"params": { "name": "set_switch", "arguments": { "state": "on" } },
"id": 3 }
Call set_switch
with "state": "on"
or "off"
. The LED changes only when the request's location
or switch_id
matches the previously set values or when both fields are omitted.