php-sdk/tests/Unit/Schema
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dayna Blackwell a820497b62
Add title field to Resource and ResourceTemplate (#301)
The MCP specification (2025-11-25) defines an optional title field for
Resource and ResourceTemplate as a human-readable display label, distinct
from name (a short identifier). Tool and Prompt already implement this
field; Resource and ResourceTemplate were missing it.

Changes:
- Add title parameter to Resource and ResourceTemplate constructors
- Add title to fromArray(), jsonSerialize(), and PHPStan type arrays
- Add title to McpResource and McpResourceTemplate attributes
- Pass title through Discoverer when constructing schema objects
- Add tests for deserialization, serialization, and null omission

Fixes #296
2026-05-17 14:10:31 +02:00
..
Elicitation CS update after release of v3.95 (#282) 2026-04-26 12:39:27 +02:00
Enum CS update after release of v3.95 (#282) 2026-04-26 12:39:27 +02:00
JsonRpc style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
Request CS update after release of v3.95 (#282) 2026-04-26 12:39:27 +02:00
Result CS update after release of v3.95 (#282) 2026-04-26 12:39:27 +02:00
IconTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
ResourceTemplateTest.php Add title field to Resource and ResourceTemplate (#301) 2026-05-17 14:10:31 +02:00
ResourceTest.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][Server] Add top-level title to Tool (#288) 2026-04-26 15:37:40 +02:00