php-sdk/tests/Unit/Schema
Repository files (latest commit first)
Filename Latest commit message Latest commit date
wWzZb 82aac972c1
[Schema][Server] feat: support sampling with tools (#409)
* feat: support sampling with tools

* address sampling tools review feedback

* tighten sampling tools spec compliance

* drop SamplingStopReason enum in favor of open string

The spec leaves stopReason open for provider-specific values, so upcasting
the four known ones to enum cases makes every future enum addition a silent
BC break for string comparisons.

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2026-08-15 03:28:11 +02:00
..
Content [Schema][Server] feat: support sampling with tools (#409) 2026-08-15 03:28:11 +02:00
Elicitation CS update after release of v3.95 (#282) 2026-04-26 12:39:27 +02:00
Enum [Client][Schema][Server] Implement protocol version negotiation (#403) 2026-08-15 01:41:19 +02:00
Extension [Schema][Server] Add MCP Apps extension (io.modelcontextprotocol/ui) support (#281) 2026-06-01 09:35:54 +01:00
JsonRpc style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
Request [Schema][Server] feat: support sampling with tools (#409) 2026-08-15 03:28:11 +02:00
Result [Schema][Server] feat: support sampling with tools (#409) 2026-08-15 03:28:11 +02:00
ClientCapabilitiesSamplingTest.php [Schema][Server] feat: support sampling with tools (#409) 2026-08-15 03:28:11 +02:00
ClientCapabilitiesTest.php [Client][Server] Add Roots support (#395) 2026-08-14 23:04:25 +02:00
IconTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
ImplementationTest.php [Schema] Fix Implementation::fromArray rejecting falsy-but-valid name/version (#393) 2026-07-14 23:41:51 +02:00
ResourceDefinitionTest.php [Server] Allow runtime-resolved element handlers (#294) 2026-05-29 07:16:12 +02:00
ResourceTemplateTest.php Add title field to Resource and ResourceTemplate (#301) 2026-05-17 14:10:31 +02:00
ServerCapabilitiesTest.php Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
ToolTest.php [Schema] Always emit {} for empty tool schema properties (#407) 2026-08-14 21:50:08 +02:00