About Generic Hardware Bridge
Generic Hardware Bridge is an MCP server in the IoT category: hardware abstraction layer for serial, MQTT, and mock device control. It has been installed 0 times through Conduid.
Install
git clone https://github.com/594901146-coder/mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Generic Hardware Bridge
Powered by Claude · Grounded in docs
Security checks
- ·README presentNot checked yet.
- ·License declaredNot checked yet.
- ·Tests presentNot checked yet.
- ·Dependencies pinnedNot checked yet.
- ·No dynamic code executionNot checked yet.
- ·Scoped permissionsNot checked yet.
README
GenericHardwareBridge MCP Server
Model Context Protocol 服务器,用于硬件抽象和控制。
功能
set_level(port, value)- 连续量输出(亮度、角度、速度)toggle_state(port, state)- 开关量输出get_sensor_data(port, mode)- 传感器读取send_raw_packet(payload)- 原始指令透传
快速开始
pip install -r requirements.txt
python server.py
部署到 Railway
- 上传到 GitHub
- 在 Railway 中创建项目,选择该仓库
- 配置环境变量:
TRANSPORT_MODE=mqttMQTT_BROKER=broker.emqx.ioDEVICE_ID=esp32s3_001
- 部署
环境变量
| 变量 | 默认值 | 说明 |
|---|---|---|
TRANSPORT_MODE |
mock |
传输模式: mock/serial/mqtt |
SERIAL_PORT |
COM3 |
串口端口 |
MQTT_BROKER |
broker.emqx.io |
MQTT Broker 地址 |
MQTT_PORT |
1883 |
MQTT 端口 |
DEVICE_ID |
esp32s3_001 |
设备标识 |
MQTT_BASE_TOPIC |
hardware/bridge |
MQTT 主题前缀 |
README mirrored from the source repository 5 months ago. The original is authoritative.