Skip to content

Conversation

@dak2
Copy link
Contributor

@dak2 dak2 commented Jun 15, 2025

Motivation and Context

The reason for the change is that a NameError occurs when a POST request is made while the stream is closed because ModelContextProtocol is undefined.

How Has This Been Tested?

A NameError does not occur when a POST request is made while the stream is closed using the sample code from 'examples/streaming_http_test_server.rb' file.

Breaking Changes

There is no need. Streamable HTTP transport has not been published.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

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

Additional context

@dak2 dak2 force-pushed the fix/rename-to-mcp branch from bfc739f to 2a8d3d9 Compare June 15, 2025 06:18
@dak2 dak2 marked this pull request as ready for review June 15, 2025 06:18
The reason for the change is that a NameError occurs when a POST request is made while the stream is closed because ModelContextProtocol is undefined.

I have also added test cases to check the behaviour when IOError and Errno::EPIPE occurs.
@dak2 dak2 force-pushed the fix/rename-to-mcp branch from 2a8d3d9 to dc38c9f Compare June 15, 2025 06:21
@koic koic merged commit 529f3bb into modelcontextprotocol:main Jun 15, 2025
5 checks passed
@koic
Copy link
Member

koic commented Jun 15, 2025

Thanks!

@dak2 dak2 deleted the fix/rename-to-mcp branch June 15, 2025 07:14
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