Skip to content

fix(mcp): support MCP SDK 0.9 on 4.4 (security advisory on 0.8) - #8837

Merged
soyuka merged 2 commits into
api-platform:4.4from
philpichet:fix/mcp-sdk-0.9-4.4
Nov 13, 2026
Merged

soyuka merged 2 commits into
api-platform:4.4from
philpichet:fix/mcp-sdk-0.9-4.4

Conversation

@philpichet

Copy link
Copy Markdown
Q A
Branch? 4.4
Tickets ∅
License MIT
Doc PR ∅

Backport of #8758 to 4.4.

mcp/sdk 0.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 allows mcp/sdk ^0.8 / symfony/mcp-bundle ^0.13, so composer update fails 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, and SecureRegistry::publishesListChanges() forwarding (new abstract method in SDK 0.9). The only conflict was in src/Mcp/composer.json, where the api-platform/* constraints stay at ^4.4. Keeping ^0.8 matches 5.0 and main, so the 4.4 → 5.0 merge stays clean.

mcp/sdk 0.10 isn't an option yet: every symfony/mcp-bundle release (0.15.0, 1.0.0-BETA1) requires mcp/sdk ^0.9.

Checked locally with mcp/sdk 0.9.0 and symfony/mcp-bundle 0.15.0: src/Mcp/Tests (82 tests, same PHPUnit notices as before), the functional Mcp*Test (30 tests), lint:container, PHPStan on src/Mcp.

🤖 Generated with Claude Code

tacman and others added 2 commits November 11, 2026 11:44
* 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>
@soyuka
soyuka merged commit 0dcb5ea into api-platform:4.4 Nov 13, 2026
114 of 117 checks passed
@alexisLefebvre

Copy link
Copy Markdown
Contributor

Thanks for the PR and release, it’s available now: https://packagist.org/packages/api-platform/mcp#v4.4.8

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.

4 participants