← 返回 Skills 市场
toddpan

Feyagate

作者 pan zuji · GitHub ↗ · v1.0.6 · MIT-0
cross-platform ⚠ pending
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feyagate
功能描述
MCP smart home gateway skill for AI agents — Control Xiaomi, Tuya, Midea, eWeLink devices via OpenClaw, Claude Code, Hermes, Codex, Windsurf & more
使用说明 (SKILL.md)

FeyaGate Skill — MCP Smart Home Gateway for AI Agents

MCP-based multi-platform smart home gateway supporting Xiaomi, Tuya, Midea, eWeLink, Serial, and GPIO. Compatible with OpenClaw, Claude Code, Hermes, Codex, Windsurf, Copilot, 小智AI and other MCP-compatible AI agents.

Before Using Any Tool

Run this check before calling any FeyaGate MCP tool:

feyagate status
  • If status is RUNNING → proceed with tool calls.
  • If status is STOPPED or command not found → run feyagate start first. If feyagate is not installed, run pip install feyagate-skill && feyagate setup && feyagate start.

Dual API endpoints:

Endpoint Protocol URL
MCP (PC proxy) Streamable HTTP JSON-RPC 2.0 http://localhost:38080/mcp/http
MCP (ESP32 gateway) WebSocket / Streamable HTTP ws://\x3Cgateway>:8765/mcp / http://\x3Cgateway>:8765/mcp/http
HTTP REST (ESP32 gateway) REST API http://\x3Cgateway>:8080/api/v1/...

Note: The PC proxy (miloco-mcp-server) provides all gateway MCP tools plus additional extensions (camera P2P, Xiaomi auth, etc.).

Quick Start

pip install feyagate-skill       # Step 1: Install Python package
feyagate setup                   # Step 2: Download MCP server binary (~30MB)
feyagate start                   #        Start service (localhost:38080)
feyagate install-claude          # Step 3: Register with your AI agent
feyagate auth                    # Step 4: Authorize smart home platform

Other agent install commands: install-cursor, install-openclaw, install-hermes, install-codex, install-windsurf, install-copilot

Full step-by-step guide: QUICKSTART.md

Server Lifecycle (CLI)

Action Command
Install binary feyagate setup [--dir PATH]
Start feyagate start [--port PORT]
Stop feyagate stop
Restart feyagate restart [--port PORT]
Status feyagate status
Logs feyagate log [-n 50]
Upgrade feyagate upgrade
Auth Xiaomi feyagate auth [--status] [--code CODE]

Manual Scripts (Advanced)

Action macOS/Linux Windows
Install bash scripts/install.sh scripts\install.ps1
Setup bash scripts/setup.sh scripts\setup.bat
Start bash scripts/start.sh scripts\start.bat
Stop bash scripts/stop.sh scripts\stop.bat
Verify bash scripts/verify.sh scripts\verify.bat
Status bash scripts/health_check.sh scripts\health_check.bat
Custom port bash scripts/start.sh --port 9090 scripts\start.bat --port 9090
Upgrade bash scripts/upgrade.sh powershell -File scripts\upgrade.ps1
Check updates bash scripts/upgrade.sh --check powershell -File scripts\upgrade.ps1 -Check

Cross-Platform Tools

Unified interfaces that work across all platforms. System auto-detects device platform.

Tool Arguments Returns
device/list filter (string[]), platform (opt) devices[] with platform field
device/specs deviceId (string) Platform-specific spec: properties, actions
platform/status All platform connection/auth/sync status
gateway/info Version, device count, ports
scene/list platform (string) scenes[]
scene/trigger platform (string), sceneId (string) Trigger result

Parameter convention: device/specs uses deviceId (camelCase); platform-specific tools (xiaomi/*, tuya/*, etc.) use device_id (snake_case).

Sub-Skill Loading Guide (for AI agents)

This skill uses a modular structure. The main skill defines cross-platform tools; platform-specific tools are in sub-skill files.

Loading strategy:

  1. Always load this main SKILL.md first — it provides the core cross-platform tools and MCP endpoint info.
  2. Load sub-skills on demand based on the user's intent. Each sub-skill's trigger keywords (listed in frontmatter sub_skills) indicate when to load it.
  3. Cross-platform workflow (no sub-skill needed): device/listdevice/specs → identify platform → load corresponding sub-skill for control operations.
Sub-Skill File When to Load Covers
feyagate-xiaomi skills/xiaomi.md Xiaomi/Mi Home devices, cameras, XiaoAI speakers MIOT device control, OAuth auth, camera P2P, XiaoAI TTS/music
feyagate-tuya skills/tuya.md Tuya/Smart Life devices DP property read/write, QR code auth
feyagate-midea skills/midea.md Midea/美的 appliances AC/appliance control, account auth
feyagate-ewelink skills/ewelink.md eWeLink/Sonoff devices Switch control, multi-channel
feyagate-automation skills/automation.md Scheduling, automation, rooms, memory Schedule, trigger engine, room, memory, skill system
feyagate-extension skills/extension.md Serial, GPIO, license, config Serial, GPIO, Xiaozhi AI, license, config, stats

License System

  • Free edition: Xiaomi platform only (device control, cameras, XiaoAI, MCP proxy)
  • Licensed edition: All platforms (Xiaomi + Tuya + Midea + eWeLink)
  • tuya/set_property, midea/set_property, ewelink/set_property return license_required on free edition
  • get_properties and all other tools work without license

Configuration

config/config.yaml:

server:
  http_port: 38080
  ws_port: 8765
  bind_address: "0.0.0.0"
auth:
  cloud_server: "cn"      # cn / de / sg / us / ru / i2
  token_file: "data/auth_token.json"
camera:
  frame_interval: 500
  buffer_max_size: 20
  buffer_ttl: 300
  jpeg_quality: 90
tuya:
  token_file: "data/tuya_token.json"
midea:
  token_file: "data/midea_token.json"
ewelink:
  token_file: "data/ewelink_token.json"
xiaozhi:
  endpoint: ""            # ws:// or wss:// (empty = disabled)

Troubleshooting

Symptom Fix
command not found: feyagate pip install feyagate-skill
FeyaGate not installed feyagate setup
connection refused feyagate start
authorized: false feyagate auth (Xiaomi) or use platform-specific auth tool
cannot open shared object file feyagate upgrade or re-run feyagate setup
Tool not found Check tool name (see tools/list output)
key 'device_id' not found Platform tools use device_id; cross-platform device/specs uses deviceId
license_required error Set license key via license/set tool

Full API reference: FeyaGate_MCP_API.md, FeyaGate_HTTP_API.md

能力标签
requires-oauth-tokenrequires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feyagate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feyagate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.6
Feyagate-skill 1.0.6 Changelog - Added detailed SKILL.md documentation describing cross-platform smart home gateway usage, endpoints, commands, and modular sub-skills. - Sub-skills for Xiaomi, Tuya, Midea, eWeLink, Automation, and Extension now documented with triggers and usage guidance. - Included CLI usage for installation, status, authentication, and manual scripts for Linux/macOS/Windows. - Provided license requirement details distinguishing free vs. licensed features. - Added configuration sample and troubleshooting guide for common setup and runtime issues. - Outlined the recommended workflow for integrating with compatible AI agents and platforms.
元数据
Slug feyagate
版本 1.0.6
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Feyagate 是什么?

MCP smart home gateway skill for AI agents — Control Xiaomi, Tuya, Midea, eWeLink devices via OpenClaw, Claude Code, Hermes, Codex, Windsurf & more. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 Feyagate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feyagate」即可一键安装,无需额外配置。

Feyagate 是免费的吗?

是的,Feyagate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Feyagate 支持哪些平台?

Feyagate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Feyagate?

由 pan zuji(@toddpan)开发并维护,当前版本 v1.0.6。

💬 留言讨论