← 返回
未分类

Feyagate

MCP smart home gateway for AI agents. Control Xiaomi, Tuya, Midea, eWeLink, cameras, and XiaoAI speakers via MCP protocol.
MCP智能家居网关,支持AI代理控制小米、涂鸦、美的、ewelink、摄像头及小爱音箱。
toddpan
未分类 clawhub v1.0.9 3 版本 100000 Key: 无需
★ 0
Stars
📥 406
下载
💾 0
安装
3
版本
#latest

概述

FeyaGate Skill — MCP Smart Home Gateway

Control smart home devices (lights, cameras, AC, speakers) from any AI agent via MCP protocol. Supports Xiaomi · Tuya · Midea · eWeLink · Serial · GPIO.

Prerequisites

  • Python 3.9+
  • macOS / Linux / Windows
  • curl (for installation)

Before Using Any Tool

Run this check before calling any FeyaGate MCP tool:

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

Quick Start

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

Other agents: install-cursor, install-openclaw, install-hermes, install-codex, install-windsurf, install-copilot

Full guide: QUICKSTART.md

Server Lifecycle

ActionCommand
-----------------
Install binaryfeyagate setup [--dir PATH]
Startfeyagate start [--port PORT]
Stopfeyagate stop
Restartfeyagate restart [--port PORT]
Statusfeyagate status
Logsfeyagate log [-n 50]
Updatefeyagate update
Authfeyagate auth [--status] [--code CODE]

Cross-Platform Tools

These tools work across all platforms (system auto-detects device platform):

ToolArgumentsReturns
--------------------------
device/listfilter (string[]), platform (opt)Devices with platform field
device/specsdeviceId (string)Platform-specific spec: properties, actions
platform/statusAll platform connection/auth/sync status
gateway/infoVersion, device count, ports
scene/listplatform (string)Scene list
scene/triggerplatform, sceneIdTrigger result

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

Sub-Skill Loading Strategy

The main skill provides cross-platform tools. Load sub-skills on demand based on the user's platform:

Sub-SkillFileWhen to Load
------------------------------
feyagate-xiaomiskills/xiaomi.mdXiaomi/Mi Home devices, cameras, XiaoAI speakers
feyagate-tuyaskills/tuya.mdTuya/Smart Life devices
feyagate-mideaskills/midea.mdMidea/美的 appliances
feyagate-ewelinkskills/ewelink.mdeWeLink/Sonoff devices
feyagate-automationskills/automation.mdSchedule, triggers, rooms, memory
feyagate-extensionskills/extension.mdSerial, GPIO, Xiaozhi AI, license

Workflow: device/listdevice/specs → identify platform → load corresponding sub-skill

License

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

Configuration

~/.feyagate/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
camera:
  frame_interval: 500
  jpeg_quality: 90
xiaozhi:
  endpoint: ""            # ws:// or wss:// (empty = disabled)

Troubleshooting

SymptomFix
--------------
command not found: feyagatepip install feyagate-skill
FeyaGate not installedfeyagate setup
connection refusedfeyagate start
authorized: falsefeyagate auth or platform auth tool
Tool not foundCheck tools/list output
license_requiredSet license via license/set tool

Full API docs: FeyaGate_MCP_API.md, FeyaGate_HTTP_API.md

版本历史

共 3 个版本

  • v1.0.9 当前
    2026-06-07 06:11
  • v1.0.8
    2026-05-26 23:34 安全
  • v1.0.7
    2026-05-25 17:11 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,283
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,079 📥 808,907
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,376 📥 320,230