Skip to content

Conversation

@pushpak1300
Copy link
Member

@pushpak1300 pushpak1300 commented Dec 15, 2025

Fixes #92

Problem

The mcp:use Passport scope isn't registered when routes are cached, causing OAuth failures in production.

Solution

Moved scope registration from route registration to McpServiceProvider::boot() so it runs even with cached routes.

Non-breaking, existing scopes preserved.

@jsandfordhughescoop
Copy link
Contributor

jsandfordhughescoop commented Dec 18, 2025

@pushpak1300 - We have the scope added manually now so hard to test, however this looks good and will solve the issue.

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.

Bug: maybeAddMcpScope not executed in production when route caching is enabled

2 participants