Skip to content

Conversation

@samthanawalla
Copy link
Contributor

@samthanawalla samthanawalla commented Sep 11, 2025

This PR disables batching support for stdio by storing the negotiated protocol version and comparing it to protocolVersion20250618.

Fixes: #21

@samthanawalla samthanawalla marked this pull request as ready for review September 11, 2025 17:05
@samthanawalla samthanawalla changed the title transport.go: disable stdio batching for older protocols transport.go: disable stdio batching for newer protocols Sep 11, 2025
Copy link
Contributor

@findleyr findleyr left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple comments. Thanks!

Copy link
Contributor

@findleyr findleyr left a comment

Choose a reason for hiding this comment

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

Thanks!

@samthanawalla samthanawalla merged commit b666793 into modelcontextprotocol:main Sep 11, 2025
5 checks passed
@samthanawalla samthanawalla deleted the removeBatchingStdio branch September 11, 2025 18:17
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.

Restrict JSON-RPC batching support

2 participants