Skip to content

feat: add Streamable HTTP Support to MCP Server #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

hashemix
Copy link
Member

📌 Summary

This PR introduces several enhancements and refactorings to the sdk:

✨ Major Feature:

  • Added support for Streamable HTTP for MCP Servers, to align with protocol specifications such as support of long-lived connections as well as none-streamable responses, batch messages, and DNS Rebinding protection.

🛠 Refactoring & Structural Improvements:

  • Refactored transport layer and associated traits
    Improved the separation of concerns and modularity by restructuring transport logic and key traits.

🔐 Security Enhancements:

  • Introduced DNS rebinding protection middleware
    Middleware added for both SSE and Streamable HTTP to mitigate DNS rebinding attacks.

✅ Testing & Compliance:

  • Implemented unit tests for HTTP streaming
    Tests ensure compliance with the official protocol and validate stream behavior under various conditions.

🔍 Related Issues

💡 Additional Notes

Readme and examples will be updated in following pull requests.
Streamable HTTP support for client will be released soon.

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.

1 participant