@mkrainbow/rtio-led-switch-demo
v0.0.6
Published
control-led via mcp.
Downloads
14
Readme
RTIO MCP Demo
RTIO has REST-like features (such as immediate return of device call results), making it extremely simple for LLM to remotely control devices through MCP (Model Context Protocol). The following demonstrates remote control of an LED via the MCP protocol.
Available Tools
rtio_led_switch- Turn LED on or off via RTIO service。
- Input:
onoroff(string) - Returns: The result of turning the LED on or off, or an error message.
Prompts
Prompts:
- Turn LED on via RTIO service.
- Turn LED off via RTIO service.
Installation
NPX
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": ["-y", "@mkrainbow/rtio-led-switch-demo"],
"env": {
"RTIO_DEVICE_URL": "http(s)://<YOUR_RTIO_SERVICE>/<YOUR_DEVICE_ID>"
}
}
}
}- RTIO_DEVICE_URL - The RTIO server address and deviceID needs to be set.
Fast-Agent Example
mcp:
servers:
rtio_led_switch:
command: "npx"
args: ["-y", "@mkrainbow/rtio-led-switch-demo"]
env:
RTIO_DEVICE_URL: "http://localhost:17917/cfa09baa-4913-4ad7-a936-3e26f9671b10"
More
Learn more: LLM-Based Remote LED Control
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
