Wiznet makers

matthew

Published September 16, 2025 ©

89 UCC

9 WCC

31 VAR

0 Contests

0 Followers

0 Following

Original Link

MCP for Raspberry Pi Pico W

MCP for Raspberry Pi Pico W

COMPONENTS Hardware components

WIZnet - W55RP20-EVB-Pico

x 1


PROJECT DESCRIPTION

MCP for Raspberry Pi Pico W

LED Control via JSON-RPC

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.

Documents
  • Source

Comments Write