Repository navigation
fix(mcp): support MCP SDK 0.9 on 4.4 (security advisory on 0.8) - #8837
Merged
Merged
Conversation
* fix(mcp): support MCP SDK 0.9 registry capabilities * test(mcp): exercise capability forwarding with both SDK versions * test(mcp): apply review, widen mcp-bundle to sdk 0.9 * chore(mcp): ignore sdk 0.9 narrowed method_exists --------- Co-authored-by: soyuka <soyuka@users.noreply.github.com> (cherry picked from commit ba3d61f) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Thanks for the PR and release, it’s available now: https://packagist.org/packages/api-platform/mcp#v4.4.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #8758 to 4.4.
mcp/sdk0.8.x is affected by PKSA-s52d-n7sx-trsg (>=0.8.0,<0.9.0). Composer now refuses to install it, and 4.4 only allowsmcp/sdk ^0.8/symfony/mcp-bundle ^0.13, socomposer updatefails and most CI jobs on 4.4 stop before running any test (e.g. the latest push on 4.4, and #8836).This cherry-picks ba3d61f as is:
mcp/sdk ^0.8 || ^0.9,symfony/mcp-bundle ^0.13 || ^0.15, andSecureRegistry::publishesListChanges()forwarding (new abstract method in SDK 0.9). The only conflict was insrc/Mcp/composer.json, where theapi-platform/*constraints stay at^4.4. Keeping^0.8matches 5.0 andmain, so the 4.4 → 5.0 merge stays clean.mcp/sdk0.10 isn't an option yet: everysymfony/mcp-bundlerelease (0.15.0, 1.0.0-BETA1) requiresmcp/sdk ^0.9.Checked locally with
mcp/sdk0.9.0 andsymfony/mcp-bundle0.15.0:src/Mcp/Tests(82 tests, same PHPUnit notices as before), the functionalMcp*Test(30 tests),lint:container, PHPStan onsrc/Mcp.🤖 Generated with Claude Code