Skip to content

Conversation

@mnoble
Copy link

@mnoble mnoble commented Dec 16, 2025

Gives greater control over where the OAuth metadata endpoints are mounted – particularly when using FastAPI + FastMCP, since that combo often results in non-standards compliance depending on how you're using them.

  • Adds the ability to mount the OAuth metadata endpoints wherever you want.
  • Adds README section about mounting a FastMCP app inside a FastAPI service.

This is mostly for special cases where folks are building (usually internal) tools that don't abide by the OAuth spec and expect this data to be exposed at some custom URI.

Refactors the `auth_metadata_mount` function into it's component parts,
so that consumer that need more flexibility can use lower level
constructs.

Namely, if you need to manually build the various OAuth metadata
endpoints because your clients are non-standards compliant.
@mnoble mnoble force-pushed the matte/greater-metadata-control branch from 9c367cd to c24b832 Compare December 16, 2025 00:27
@mnoble mnoble requested a review from kamil-keycard December 16, 2025 21:01
service.

```
/.well-known/oauth-authorization-server
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer to oauth-protected-resource. This is what developers of MCP servers should be concerned with as "resource" servers.

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.

3 participants