Skip to content

Conversation

@jamadeo
Copy link
Collaborator

@jamadeo jamadeo commented Nov 19, 2025

Motivation and Context

Some servers don't send any response headers until they have something to stream (specifically the Spring AI mcp sdk). Other clients (typescript, python) don't block on receiving a response to this stream. It's for out-of-band notifications, so it isn't necessary to block here.

How Has This Been Tested?

Tested with block/goose

Breaking Changes

No breaking changes

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

@github-actions github-actions bot added T-core Core library changes T-transport Transport layer changes labels Nov 19, 2025
@jamadeo jamadeo force-pushed the jackamadeo/dont-block-on-stream branch from f78cb36 to 8bbf7c6 Compare November 19, 2025 20:22
@jamadeo jamadeo changed the title fix: Don't block on creating the SSE stream fix: don't block on creating the SSE stream Nov 19, 2025
Copy link
Contributor

@alexhancock alexhancock left a comment

Choose a reason for hiding this comment

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

Nice. It makes sense

@alexhancock alexhancock merged commit da57ee7 into main Nov 20, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-transport Transport layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants