xiaozhi-esp32-server/main/xiaozhi-server/core
Brad Shannon 4a2ba64985 fix(mcp): handle null JSON-RPC id without aborting the handshake
`id` is optional in JSON-RPC and may legitimately be `null`. The previous
`int(payload.get("id", 0))` only defaults when the key is absent — a present
`"id": null` reaches `int(None)` and raises TypeError. The exception
propagates out of the message handler, the MCP handshake never completes, and
the session is left with ready=False (no device tools) and no clear error.

Use `or 0` so both the missing-key and explicit-null cases collapse to 0.
Applies to the result and error branches.
2026-06-18 11:01:03 -04:00
..
api add:测试页面增加拍照识物功能 2026-02-02 15:08:24 +08:00
handle fix: 通讯录页面时间不显示 2026-06-17 14:34:42 +08:00
providers fix(mcp): handle null JSON-RPC id without aborting the handshake 2026-06-18 11:01:03 -04:00
utils 修复设备快速提示词缓存key错误 2026-04-28 15:52:23 +08:00
auth.py update: 2025-10-13 17:52:28 +08:00
connection.py 优化相关逻辑 2026-06-03 16:13:03 +08:00
http_server.py update:从vision_url配置里读取域名和端口号 2025-12-18 17:37:20 +08:00
websocket_server.py update:关于对digital-human的markdown文档的修改 2026-05-12 09:45:43 +08:00