基本能力
产品定位
Switcher MCP是一个用于Switcher KIS设备集成的模型上下文协议服务器。
核心功能
- 发现网络中的Switcher设备
- 获取Switcher设备的当前状态
- 打开Switcher设备(可设置定时器)
- 关闭Switcher设备
- 获取Switcher设备的详细信息
适用场景
- 家庭自动化
- 智能设备控制
- 本地网络设备管理
工具列表
discover_devices: 发现网络中的Switcher设备get_device_state: 获取Switcher设备的当前状态turn_on: 打开Switcher设备(可设置定时器)turn_off: 关闭Switcher设备get_device_info: 获取Switcher设备的详细信息
使用教程
使用依赖
- 安装Poetry(如果尚未安装):
curl -sSL https://install.python-poetry.org | python3 -- 安装依赖:
poetry install安装教程
运行MCP服务器:
poetry run switcher-mcp或者激活虚拟环境并直接运行:
poetry shell
python -m switcher_mcp.server调试方式
poetry run black .: 格式化代码poetry run ruff check .: 代码检查poetry run mypy .: 类型检查poetry run pytest: 运行测试
