Skip to content

fix(mcp): support mcp/sdk 0.6#8311

Merged
soyuka merged 1 commit into
api-platform:4.3from
soyuka:fix/mcp-sdk-0.6
Jun 16, 2026
Merged

fix(mcp): support mcp/sdk 0.6#8311
soyuka merged 1 commit into
api-platform:4.3from
soyuka:fix/mcp-sdk-0.6

Conversation

@soyuka

@soyuka soyuka commented Jun 16, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 4.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT

mcp/sdk 0.6 is out and symfony/mcp-bundle now requires ^0.6, so composer resolves 0.6 and the PHPStan (PHP 8.5) job fails on the old API. 0.6:

  • renames Mcp\Schema\Resource to Mcp\Schema\ResourceDefinition
  • drops the bool $isManual argument from RegistryInterface::registerTool() and registerResource()

This bumps the mcp/sdk constraint to ^0.6 (root + src/Mcp), uses ResourceDefinition directly (removing the previous class_exists shim that supported both 0.5 and 0.6), and drops the $isManual argument from the registry loader calls. The loader test is adapted accordingly.

mcp/sdk 0.6 renames Mcp\Schema\Resource to ResourceDefinition and
drops the $isManual argument from RegistryInterface::registerTool()
and registerResource(). symfony/mcp-bundle now requires ^0.6, so
composer resolves 0.6 and PHPStan fails on the old API.

Bump the constraint to ^0.6 and adapt the registry loader.
@soyuka
soyuka force-pushed the fix/mcp-sdk-0.6 branch from aa9f222 to ab5274b Compare June 16, 2026 14:26
@soyuka
soyuka changed the base branch from main to 4.3 June 16, 2026 14:27
@soyuka soyuka closed this Jun 16, 2026
@soyuka soyuka reopened this Jun 16, 2026
@soyuka
soyuka merged commit 8586a80 into api-platform:4.3 Jun 16, 2026
110 of 111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant