- 将MCPMQTT类重构为MQTTHandler,改进MQTT连接配置管理 - 新增从配置中心获取MQTT配置的功能 - 新增多种机器人控制命令包括避障、导航、充电等服务 - 更新pyproject.toml版本号并添加requests依赖 - 优化日志记录和错误处理机制
Terminal Go2 MCP Server
This project provides a server that uses the Machine Control Protocol (MCP) to interact with a Go2 robot via MQTT. It exposes the robot's capabilities, such as navigation and speech, as tools that can be called by an MCP client.
Features
- MQTT Integration: Communicates with the robot over MQTT for robust and real-time command execution.
- MCP Tooling: Exposes robot actions as standardized MCP tools.
- Core Functions:
nav_to: Navigate the robot to a specified location.speak: Make the robot say a given phrase.custom_action: Trigger a predefined custom action on the robot.save_position: Save the robot's current position with a name.
Installation
To install the necessary dependencies, run:
pip install -e .
Usage
To start the server, run the following command from the project's root directory:
terminal_go2_mcp
The server will connect to the MQTT broker and expose the robot's functions as MCP tools.