php-sdk/tests/Unit/Server/Stateless
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christopher Hertel b97389325f
[Server] Serve an extension's methods under the modern lifecycle (#454)
* [Server] Serve an extension's methods under the modern lifecycle

The modern dispatcher takes the method-to-extension map the builder collects,
so a method belonging to an extension this server does not serve is answered
-32601 naming the extension instead of a bare "no handler found". It is still
an unknown method - the server genuinely does not implement it - but the
caller can now act on the answer.

* [Server] Reject two extensions claiming the same RPC method

The message factory resolves a contested method to whichever class
registered first, while extensionMethods kept the last one — so error
messages could name the wrong extension. Also fixes a test that
claimed to prove a method gets named by its extension while asserting
the opposite; the case it meant to cover (an enabled extension with no
handler for one of its methods) had no coverage at all.
2026-08-19 01:02:22 +02:00
..
InputContextTest.php [Server] Complete the multi round-trip request surface (SEP-2322) (#449) 2026-08-18 23:41:00 +02:00
RequestStateCodecTest.php [Server][Tests] Complete the multi round-trip request flow (SEP-2322) (#446) 2026-08-18 22:45:35 +02:00
StandardHeaderValidatorTest.php [Server] Enforce x-mcp-header where a request uses it (SEP-2243) (#453) 2026-08-19 00:42:40 +02:00
StatelessProtocolTest.php [Server] Serve an extension's methods under the modern lifecycle (#454) 2026-08-19 01:02:22 +02:00