openakita/skills@xiaodu-control

Control Xiaodu smart home devices and scenes via the MCP protocol.

2.0k|274|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/openakita/openakita --skill openakita-skills-xiaodu-control
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openakita/skills@xiaodu-control
Source: https://github.com/openakita/openakita/tree/main/skills/xiaodu-control
Command: npx skills add https://github.com/openakita/openakita --skill openakita-skills-xiaodu-control

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Managing Xiaodu smart home devices and IoT hardware typically requires manual app interaction; this Skill lets an AI agent list devices, send control actions, and trigger scenes programmatically through the Xiaodu MCP protocol.

Core Features & Use Cases

  • Device Listing: Query all connected Xiaodu devices with their IDs and status via the MCP list_devices tool.
  • Device Control: Turn devices on or off and pass optional parameter values using the control_device tool.
  • Scene Automation: Execute named scenes such as a home-arrival mode through the execute_scene tool.
  • Use Case: Ask the agent to turn on the living room light or activate a "coming home" scene, and it calls the Xiaodu MCP server with your configured key to perform the action.

Quick Start

Set the XIAODU_MCP_KEY environment variable, then ask the agent to list my Xiaodu devices and turn on the light with ID light-001.

Frequently Asked Questions about openakita/skills@xiaodu-control

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Xiaodu smart home devices from the command line?

Run the xiaodu_mcp.py script with the control subcommand, passing --device with the device ID and --action such as on or off. The script sends a JSON-RPC tools/call request to the Xiaodu MCP server.

How do I list all devices connected to Xiaodu MCP?

Set the XIAODU_MCP_KEY environment variable and run python3 scripts/xiaodu_mcp.py devices. The script initializes an MCP session and calls the list_devices tool, printing each device ID, status, and name.

What credentials does the Xiaodu MCP client need?

The client requires the XIAODU_MCP_KEY environment variable, which is inserted into the MCP server URL. You can optionally override the endpoint with XIAODU_MCP_URL. Without the key, the script exits with an error.

Does the Xiaodu MCP client require external Python packages?

No external packages are needed. The script uses only the Python standard library (argparse, json, os, sys, urllib) to make JSON-RPC 2.0 calls over HTTP to the MCP server.

Why does the Xiaodu control script fail with an authentication error?

Failures usually occur when XIAODU_MCP_KEY is unset or invalid, causing the script to exit before connecting. HTTP errors from the server are printed with the status code and response body for diagnosis.