[PR #6397] [MERGED] fix(mcp): return origin url as authorization server #6638

Closed
opened 2026-03-13 13:06:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6397
Author: @jslno
Created: 11/28/2025
Status: Merged
Merged: 11/29/2025
Merged by: @Bekacru

Base: canaryHead: 11-28-2025/mcp-server-issuer-url


📝 Commits (4)

📊 Changes

2 files changed (+6 additions, -4 deletions)

View changed files

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

📄 Description

closes #6394


Summary by cubic

Set the MCP resource and authorization server to the base URL origin (e.g., https://example.com) to match the issuer and prevent auth errors. Closes #6394.

Written for commit a611cb82aa. 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/6397 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/28/2025 **Status:** ✅ Merged **Merged:** 11/29/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `11-28-2025/mcp-server-issuer-url` --- ### 📝 Commits (4) - [`a6b4237`](https://github.com/better-auth/better-auth/commit/a6b423786c038df6a68a67c7139c438368d73fc3) fix(mcp): set origin url as authorization server - [`143dc81`](https://github.com/better-auth/better-auth/commit/143dc81411b4d91a1fca231a12e44ec1f934da8a) chore: cleanup - [`6ffe852`](https://github.com/better-auth/better-auth/commit/6ffe85276e97803e0873bdb7a981a26afabbafa3) chore: fix linting - [`a611cb8`](https://github.com/better-auth/better-auth/commit/a611cb82aae9c0c51570c46927f038179650d743) chore: fix test ### 📊 Changes **2 files changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+3 -2) 📝 `packages/better-auth/src/plugins/mcp/mcp.test.ts` (+3 -2) </details> ### 📄 Description closes #6394 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Set the MCP resource and authorization server to the base URL origin (e.g., https://example.com) to match the issuer and prevent auth errors. Closes #6394. <sup>Written for commit a611cb82aae9c0c51570c46927f038179650d743. 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 13:06:20 -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#6638