[PR #5783] fix(mcp): pass oidc config to oauth-authorization-server route #6220

Open
opened 2026-03-13 12:51:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5783
Author: @n-siddarth
Created: 11/5/2025
Status: 🔄 Open

Base: canaryHead: fix/mcp-oidc-options-passthrough


📝 Commits (1)

  • 961b9b4 fix(mcp): pass oidc config to oauth-authorization-server route

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/plugins/mcp/index.ts (+2 -2)

📄 Description

Fixes bug where oidcConfig options were not correctly passed to getMCPProviderMetadata utility, resulting in /.well-known/oauth-authorization-server not reflecting custom metadata options.


Addresses


Summary by cubic

Fixed OIDC config passthrough in the MCP plugin so /.well-known/oauth-authorization-server returns custom provider metadata as expected.

  • Bug Fixes
    • Pass opts (with oidcConfig) to getMCPProviderMetadata.
    • Assert OIDC options with satisfies OIDCOptions for type safety and correct scopes.

Written for commit 961b9b4741. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5783 **Author:** [@n-siddarth](https://github.com/n-siddarth) **Created:** 11/5/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `fix/mcp-oidc-options-passthrough` --- ### 📝 Commits (1) - [`961b9b4`](https://github.com/better-auth/better-auth/commit/961b9b4741ea2634f631e097917663d173e87ae0) fix(mcp): pass oidc config to oauth-authorization-server route ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+2 -2) </details> ### 📄 Description Fixes bug where `oidcConfig` options were not correctly passed to `getMCPProviderMetadata` utility, resulting in `/.well-known/oauth-authorization-server` not reflecting custom metadata options. --- Addresses - #5782 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed OIDC config passthrough in the MCP plugin so /.well-known/oauth-authorization-server returns custom provider metadata as expected. - **Bug Fixes** - Pass opts (with oidcConfig) to getMCPProviderMetadata. - Assert OIDC options with satisfies OIDCOptions for type safety and correct scopes. <sup>Written for commit 961b9b4741ea2634f631e097917663d173e87ae0. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:51:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#6220