Skip to content

Conversation

@MackinnonBuck
Copy link
Collaborator

Summary

In #892, the RequestId property in JsonRpcMessageWithId was changed to be required to align with with the MCP schema. The intention behind this change was to disallow uninitialized values. However:

  1. You can still just assign the value default, which is what happens in practice because...
  2. The current design actually expects RequestId to be uninitialized in some cases so that an ID can be dynamically/lazily generated

Forcing developers to explicitly set RequestId to default doesn't seem helpful.

Changes

This PR reverts RequestId to be non-required and adjusts internal usage to account for this.

Fixes #892 (comment)

Copy link
Contributor

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@MackinnonBuck MackinnonBuck merged commit d540dc1 into main Nov 19, 2025
16 of 17 checks passed
@MackinnonBuck MackinnonBuck deleted the mbuck/fix-request-id branch November 19, 2025 00:03
Copilot AI mentioned this pull request Nov 19, 2025
15 tasks
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.

3 participants