xiaozhi-esp32-server/main/xiaozhi-server/core/providers
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
..
asr fix: 停止帧发送后与原先音频时序问题 2026-04-22 15:55:28 +08:00
intent Merge branch 'py_test_typing' into feature/python-typing 2026-02-05 17:14:47 +08:00
llm fix: 修复频繁打断下生成器不会清理 2026-04-22 11:24:43 +08:00
memory delete log 2026-05-01 16:03:02 +08:00
tools fix(mcp): handle null JSON-RPC id without aborting the handshake 2026-06-18 11:01:03 -04:00
tts Merge pull request #3158 from xinnan-tech/chore/cleanup 2026-05-08 10:38:53 +08:00
vad refactor: vad独立时间戳,相关残余状态处理 2026-04-09 17:15:35 +08:00
vllm fix: 修正VLLM本地调用,question参数为空会用英文回复的问题 2025-07-07 09:02:59 +08:00