Skip to content

Conversation

2bitburrito
Copy link
Contributor

  • Changed StreamID's to store randomly generated strings.
  • Created a defaultStreamID field on the StreamableServerTransport struct which is generated and saved on instansiation.
  • Updated all tests.

Fixes #259

@2bitburrito
Copy link
Contributor Author

Ok - thanks for the notes. I apprecaite the feedback and apologies if there are any further issues. I haven't done much open-source stuff before.

I have:

  • Removed the defaultStreamID implementation and just used an empty string for the default stream.
  • Updated the comment to not include implementation details
  • Fixed the auto-formatted issue
  • Added an extra test in TestEventID that ensure's StreamID's can be empty strings.

Thanks, let me know how that looks and whether there's anything else you'd recommend.

Hugh

@2bitburrito
Copy link
Contributor Author

Hi Jonathan, I've made those changes now.

jba
jba previously approved these changes Aug 12, 2025
@jba
Copy link
Contributor

jba commented Aug 12, 2025

Now please resolve conflicts.

…tocol#266)

- Changed StreamID's to store randomly generated strings.
- Updated all tests.
- Resolved conflicts
@2bitburrito
Copy link
Contributor Author

Hi Jonathan,
All conflicts are resolved.
I have also sqashed that down to a single commit to keep it clean too. Let me know if there are any issues.

@findleyr findleyr merged commit 0a8fe40 into modelcontextprotocol:main Aug 15, 2025
5 checks passed
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.

stream IDs should be random strings
3 participants