Skip to content

Expect no id in the refusal of an unreadable request id - #622

Merged
koic merged 1 commit into
modelcontextprotocol:mainfrom
koic:expect_no_id_in_the_refusal_of_an_unreadable_request_id
Oct 18, 2026
Merged

koic merged 1 commit into
modelcontextprotocol:mainfrom
koic:expect_no_id_in_the_refusal_of_an_unreadable_request_id

Conversation

@koic

@koic koic commented Oct 18, 2026

Copy link
Copy Markdown
Member

Motivation and Context

The null id test of test/mcp/server_test.rb (#612) expects the refusal to carry "id": null, and the test of an id that is neither a string nor an integer (#613) only checks that response[:id] is nil. #615, merged after both, leaves the id member out of an error response whose request id cannot be read, so the first test fails on main (CI run 39142457575) and the second no longer pins the shape of the response. Both now expect a response without an id member; the library is unchanged.

How Has This Been Tested?

test/mcp/server_test.rb; against main the null id test fails as in CI.

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

## Motivation and Context

The null id test of `test/mcp/server_test.rb` (modelcontextprotocol#612) expects the refusal to carry `"id": null`, and the test
of an id that is neither a string nor an integer (modelcontextprotocol#613) only checks that `response[:id]` is nil. modelcontextprotocol#615,
merged after both, leaves the `id` member out of an error response whose request id cannot be read,
so the first test fails on main (CI run 39142457575) and the second no longer pins the shape of the response.
Both now expect a response without an `id` member; the library is unchanged.

## How Has This Been Tested?

`test/mcp/server_test.rb`; against main the null id test fails as in CI.
@koic
koic merged commit 06d5372 into modelcontextprotocol:main Oct 18, 2026
11 checks passed
@koic
koic deleted the expect_no_id_in_the_refusal_of_an_unreadable_request_id branch October 18, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants