php-sdk/tests/Unit/Capability/Discovery
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Valeriu Gutu 8e18bfbdf1
[Server] Always emit items for array tool parameter schemas (#378)
Array tool parameters without an inferable element type generated `{"type":"array"}` with no `items`, which strict MCP clients (VS Code / Copilot) reject. Always emit `items` (`{}` when the element type is unknown) and recover the element type for nullable typed arrays such as `string[]|null`.

Fixes #151
2026-07-14 23:56:50 +02:00
..
Fixtures [Server] Allow overriding the default file name pattern for Discovery (#292) 2026-05-08 09:48:29 +02:00
CachedDiscovererTest.php fix: because the cached discoveryState does not use ->setDiscoveryState(), it is found that the discoveryState cannot be used (#120) 2025-10-26 23:25:09 +01:00
DiscovererToolTitleTest.php [Schema][Server] Add top-level title to Tool (#288) 2026-04-26 15:37:40 +02:00
DiscoveryStateTest.php [Server] Allow runtime-resolved element handlers (#294) 2026-05-29 07:16:12 +02:00
DiscoveryTest.php [Server] Untangle origin tracking from Registry (#302) 2026-05-17 14:03:31 +02:00
DocBlockParserTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00
DocBlockTestFixture.php feat: Add output schema support to MCP tools (#153) 2026-01-11 21:14:48 +01:00
HandlerResolverTest.php [Server] Allow pre-built instance handlers in element registration (#375) 2026-07-06 01:13:41 +02:00
SchemaGeneratorFixture.php [Server] Always emit items for array tool parameter schemas (#378) 2026-07-14 23:56:50 +02:00
SchemaGeneratorTest.php [Server] Always emit items for array tool parameter schemas (#378) 2026-07-14 23:56:50 +02:00
SchemaValidatorTest.php style: apply php-cs-fixer and PHPStan fixes (#289) 2026-04-20 20:49:15 +02:00