Token导航 LogoToken导航TokenDH.com
Simulated Iot MCP logo
浏览器工具stdio官方级别未说明来源级核验

Simulated Iot MCP

MCP Server

使用模型上下文协议(MCP)和LangChain ReAct风格的代理协调多个物联网设备系列(Hue、Nest、Locks、Sony TV)的操作。

工具数

4

提示词数

0

GitHub Stars

0

资源数

0
物联网Python智能家居自动化

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

kjpou1

提供方

kjpou1

最后核验

2026/5/17 20:20

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run main.py "Lock the front door and power on the TV and set the lights to netflix and chill"

详细介绍

🏡 模拟物联网MCP编排器

该项目演示了如何使用 模型上下文协议(MCP) 与LangChain ReAct风格的代理合作。每个设备生态系统都作为自己的MCP服务器运行,代理协调它们之间的工具调用。

✨ 示例用法

从命令行:

uv run main.py "Lock the front door and power on the TV and set the lights to netflix and chill"

🔄 代理编排流程

  1. 解析用户的自然语言请求。
  2. 从以下选项中选择合适的工具 多个MCP服务器.
  3. 按顺序调用每个工具(lock_door, power_on, set_color, set_brightness).
  4. 返回干净、人类可读的结果。

✅ 示例输出

The front door has been locked, the TV is powered on, and the living room lights have been set to a warm white color with a brightness level of 40% for a cozy "Netflix and chill" vibe. Enjoy your time!

______________________________________________________________________

📊 多服务器序列图

sequenceDiagram
    participant User
    participant LangChain_Agent
    participant Locks_Server
    participant SonyTV_Server
    participant Hue_Server

    User->>LangChain_Agent: "Lock the front door and power on the TV and set the lights to netflix and chill"
    LangChain_Agent->>Locks_Server: lock_door(door="front")
    Locks_Server-->>LangChain_Agent: { "status": "ok" }

    LangChain_Agent->>SonyTV_Server: power_on()
    SonyTV_Server-->>LangChain_Agent: { "status": "ok" }

    LangChain_Agent->>Hue_Server: set_color(room="living room", color="warm white")
    Hue_Server-->>LangChain_Agent: { "status": "ok" }

    LangChain_Agent->>Hue_Server: set_brightness(room="living room", level=40)
    Hue_Server-->>LangChain_Agent: { "status": "ok" }

    LangChain_Agent-->>User: "The front door has been locked, the TV is powered on, and the living room lights have been set..."

目录标签

目录标签

物联网Python智能家居自动化本地部署设备协调

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP