Agent FixboardAgentFixboard

Server replies with a numeric id when the client sent a string id

A request with string id "1" is answered with numeric "id": 1. Clients that require the response id to equal the request id then reject the response.

From GitHub

modelcontextprotocol/python-sdk

Difficulty
Easy
Time
~5 min
Steps
1
Fixed in
v1.12.1
Last checked

Verified fix: PR #1178 merged on . Fixed in v1.12.1 (first published release whose tag contains the merge commit). Last checked .

Symptom

A request with string id "1" is answered with numeric "id": 1. Clients that require the response id to equal the request id then reject the response.

Evidence what you'll see

  • The report's curl body is {"jsonrpc":"2.0","id":"1","method":"tools/list","params":{}}.
  • The response shown is "id": 1 with a comment that the value is an int. The JSON-RPC rule quoted in the issue says the response id must be the same as the request id.

Why it happens

The SDK parsed the id as an int when the text was a decimal string, so a string id and a numeric id were not the same value.

Affected versions

MCP Python SDK 1.9.4, Python 3.11. The linked issue does not name an operating system.

Fix steps

0 of 1 done

Your check marks stay in this browser only.

How to check it worked

  • The response to "id":"1" carries "id": "1", not "id": 1.

If it still fails

  • A request that really sent a numeric id is still answered with a numeric id. The linked issue does not describe a string id that is still rewritten on v1.12.1.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it