Skip to content

HTTPS #16

@kate-tortubekova

Description

@kate-tortubekova

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions