Skip to content

[Server] HTTP Transport Header Compliance #226

Closed

Description

@chr-hertel

With the compliance report on HTTP method support / header handling @SamMorrowDrums discovered the PHP SDK responses come with 500.

See https://gist.github.com/SamMorrowDrums/9fb1191012cfcbb313e189af5a7c1fd9

Goal is to respond with 405 + Allow header.

Activity

  1. added
    bug
    Server
    on Jan 22, 2026
  2. chr-hertel commented on Feb 1, 2026

    @chr-hertel
    MemberAuthor

    Hi @SamMorrowDrums, was just looking at this again, also while reviewing @dotmarn's solution.

    How did you run into the 500s? Can't reproduce that right now
    I just used the very first example:

    php -S localhost:8000 examples/server/cached-discovery/server.php
    

    And this is what I get with v0.3.0 and main:

    Image

    And with #227:
    Image

  3. SamMorrowDrums commented on Feb 1, 2026

    @SamMorrowDrums

    @chr-hertel hey, thanks so much for looking into it, perhaps I made some mistakes in https://github.com/SamMorrowDrums/mcp-php-starter and the 500s could be my fault, apologies if that was a false alarm.

  4. chr-hertel commented on Feb 22, 2026

    @chr-hertel
    MemberAuthor

    500s are more related to other issues, see SamMorrowDrums/mcp-php-starter#14

    After #227 I guess we're good here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Serverbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions