Skip to content

Streamable HTTP Transport Support #2

@bytestream

Description

@bytestream

Does this client work with the https://github.com/php-mcp/server/tree/d2c583302c4d08dea887c7cbae49c767b0ce75b9?tab=readme-ov-file#3--streamable-http-transport-recommended ?

When I connect to the server I see Connection failed: HTTP connection failed: HTTP status code 406 (Not Acceptable)

The solution was to set MCP_HTTP_DEDICATED_LEGACY=true, set the client to connect to 'http://127.0.0.1:8090/mcp/sse' and restart the server:

$ php artisan mcp:serve --transport=http
Starting MCP server on http://127.0.0.1:8090
  - Transport: Legacy HTTP
  - SSE endpoint: http://127.0.0.1:8090/mcp/sse
  - Message endpoint: http://127.0.0.1:8090/mcp/message
  - Mode: Server-Sent Events

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions