Skip to content

Conversation

@injusticescorpio
Copy link
Contributor

@injusticescorpio injusticescorpio commented Dec 9, 2025

Motivation and Context

How Has This Been Tested?

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

The original test didn't actually exercise the `if not sse.data: continue`
code path. This rewrite:
- Mocks the SSE event stream to include an empty "message" event
- Uses httpx_sse.ServerSentEvent for accurate event simulation
- Uses proper type serialization instead of hardcoded JSON strings
- Validates that the client skips empty data and receives the real response
@maxisbey maxisbey enabled auto-merge (squash) December 9, 2025 15:11
@maxisbey maxisbey added bug Something isn't working P0 Broken core functionality, security issues, critical missing feature labels Dec 9, 2025
@maxisbey maxisbey merged commit 2bf9b10 into modelcontextprotocol:main Dec 9, 2025
18 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

This PR is included in version v1.23.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working P0 Broken core functionality, security issues, critical missing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants