Skip to content

fix(laravel): honor mcp.enabled and add mcp.middleware - #8789

Merged
soyuka merged 1 commit into
api-platform:4.4from
soyuka:fix/laravel-mcp-enabled
Nov 3, 2026
Merged

soyuka merged 1 commit into
api-platform:4.4from
soyuka:fix/laravel-mcp-enabled

Conversation

@soyuka

@soyuka soyuka commented Nov 3, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 4.4
Tickets
License MIT
Doc PR api-platform/docs#2364

/mcp is registered outside the API route group, so api-platform.routes.middleware never applied to it, and api-platform.mcp.enabled was never read. This gates both the services and the route on mcp.enabled, and adds api-platform.mcp.middleware (default []) applied to the /mcp route.

The /mcp route is registered outside the API route group, so
api-platform.routes.middleware never applied to it, and mcp.enabled
was not read at all.
@soyuka
soyuka merged commit b319ab1 into api-platform:4.4 Nov 3, 2026
115 of 117 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