Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Fixes cached resource content leaking between users, 503s from concurrent requests on one session, and stale stdio timestamps. Requires mcp/sdk ^0.9.
Upgrade notes
This release requires mcp/sdk 0.9. Update both packages together:
composer update drupal/mcp_server mcp/sdk --with-all-dependencies
Then rebuild caches with drush cr (or run drush updb). Several service definitions changed, and until the container is rebuilt, POST /mcp answers 500 with an ArgumentCountError.
mcp/sdk 0.9 validates a tool's structuredContent against its outputSchema. A result that doesn't match now comes back as a CallToolResult with isError: true instead of the value. Return new \stdClass() for an empty object, because [] is sent as an array. See the mcp/sdk changelog for the rest of 0.9.
Contributors (10)
ahmad-khalil-imagex, boychev, dcgoodwin, kotekirkitadze, mglaman, mortona2k, penyaskito, roborn, ronaldtebrake, scott falconer
Changelog
Issues: 5 issues resolved.
Changes since 2.0.0-beta6 (compare):
Bug
- fix: #3585955 Wait again for the session lock after a lost race
- fix: #3585953 Give each stdio request its own request time
- fix: #3585956 Vary cached resource content by each caller's contexts