-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Hello, and thank you for your work on this library!
I’m building a custom MCP server based on php-mcp/serve, using HttpServerTransport with HTTP+SSE. I’m encountering an issue when the client makes a request over HTTPS, the server responds via plain HTTP.
I suspect this behavior is related to the sslContext parameter passed to the HttpServerTransport. However, the documentation doesn’t specify what exact value or configuration is expected for enabling HTTPS. Could you please clarify what should be passed to the sslContext argument to make the transport work correctly over HTTPS?
Also, I’d like to extend the HttpServerTransport class to customize the SSE handling logic, specifically the handleSseRequest() method. Would you consider making some of the methods (like handleSseRequest) protected instead of private to support inheritance?
Thank you so much for your attention and participation.