normalize string ID to int in server messages for compatibility by wangxm345566462 · Pull Request #851 · modelcontextprotocol/python-sdk

added 6 commits

May 30, 2025 16:04
Some non-standard SSE servers may return numeric IDs as strings,
even when the original request used an integer. This change ensures
that message.root.id is always an integer to maintain consistency
and avoid type issues in downstream processing.
Some non-standard SSE servers may return numeric IDs as strings,
even when the original request used an integer. This change ensures
that message.root.id is always an integer to maintain consistency
and avoid type issues in downstream processing.
Some non-standard SSE servers may return numeric IDs as strings,
even when the original request used an integer. This change ensures
that message.root.id is always an integer to maintain consistency
and avoid type issues in downstream processing.
Some non-standard SSE servers may return numeric IDs as strings,
even when the original request used an integer. This change ensures
that message.root.id is always an integer to maintain consistency
and avoid type issues in downstream processing.

晓明 王 and others added 3 commits

June 5, 2025 16:05

Kludex

@Kludex

@wangxm345566462