mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-25 04:29:51 +01:00
- trigger_handler.py:新增 POST /mcp/vision/trigger {device_id},
在活动连接中按 device_id 找到设备,主动调用其拍照工具(动态查找 take_photo),
经 vision_handler 识别后返回规范手办名;不碰串口、不写卡。
设备未在线/未识别等业务结果统一返回 HTTP 200,便于机器客户端解析。
- websocket_server.py:给 WebSocketServer 加 active_connections 注册表
(基于镜像版打的最小补丁),供触发端点按 device_id 反查连接。
- http_server.py / app.py:SimpleHttpServer 接收 ws_server 引用并注册触发路由。
- vision_handler.py:识别返回增加 figurine 规范名字段(带下划线),供触发端点提取。
- docker-compose:挂载新增/改动的服务端文件使其在容器内生效。
配合 zebbingo-ai-agent 的 tools/figurine-capture-station 桌面工位使用。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| models | ||
| music | ||
| plugins_func | ||
| test | ||
| agent-base-prompt.txt | ||
| app.py | ||
| config.yaml | ||
| config_from_api.yaml | ||
| docker-compose.yml | ||
| docker-compose_all.yml | ||
| mcp_server_settings.json | ||
| performance_tester.py | ||
| performance_tester_vllm.py | ||
| requirements.txt | ||