Skip to content

Conversation

@ochafik
Copy link
Contributor

@ochafik ochafik commented Feb 12, 2026

Summary

This change removes OAuth bearer token authentication from the example MCP app servers mounted at /:slug/mcp, making them publicly accessible while keeping the root /mcp endpoint protected.

Key Changes

  • Removed bearer token authentication middleware from example app server routes
  • Removed unused imports related to OAuth authentication (requireBearerAuth, getOAuthProtectedResourceMetadataUrl, ITokenValidator)
  • Removed tokenValidator dependency injection from ExampleAppsModule constructor
  • Updated module documentation to clarify that example servers are publicly accessible
  • Kept CORS and security headers middleware in place for defense-in-depth

Implementation Details

The example app servers now operate without authentication requirements, allowing public access to the /:slug/mcp endpoints. This is a deliberate design choice to make example servers more accessible for testing and demonstration purposes, while the main MCP server endpoint remains OAuth-protected. The removal of the tokenValidator parameter simplifies the module's dependencies and reduces coupling to authentication infrastructure.

https://claude.ai/code/session_019bG1wzY84JA7LbpkybddP9

Remove bearer auth middleware from all /:slug/mcp routes (pdf, map, etc.)
so they are publicly accessible without an OAuth token. The root /mcp
endpoint retains its existing bearer auth requirement.

https://claude.ai/code/session_019bG1wzY84JA7LbpkybddP9
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.

2 participants