[PR #3838] [MERGED] fix(mcp): Redirect returns json instead of 302 #5039

Closed
opened 2026-03-13 12:08:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3838
Author: @ping-maxwell
Created: 8/6/2025
Status: Merged
Merged: 8/8/2025
Merged by: @Bekacru

Base: canaryHead: fix/mcp-redirect


📝 Commits (2)

  • f3aadc0 fix(mcp): Redirect returns json instead of 302
  • 33553bd chore: lint

📊 Changes

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

View changed files

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

📄 Description

https://github.com/better-auth/better-auth/issues/2914


Summary by cubic

Fixed the MCP plugin to return a proper 302 redirect instead of a JSON response when handling OAuth authorization errors.


🔄 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/3838 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 8/6/2025 **Status:** ✅ Merged **Merged:** 8/8/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/mcp-redirect` --- ### 📝 Commits (2) - [`f3aadc0`](https://github.com/better-auth/better-auth/commit/f3aadc03998ae31305d07c3f37b1a8b5e206ef71) fix(mcp): Redirect returns json instead of 302 - [`33553bd`](https://github.com/better-auth/better-auth/commit/33553bd67c066b92f32caa8d6e5e1dc4188fc137) chore: lint ### 📊 Changes **1 file changed** (+1 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+1 -12) </details> ### 📄 Description https://github.com/better-auth/better-auth/issues/2914 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the MCP plugin to return a proper 302 redirect instead of a JSON response when handling OAuth authorization errors. <!-- 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:08:54 -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#5039