Skip to content

chore: add ChatGPT OAuth connector redirect URIs to OAuth allowlist#165

Merged
Prashant-Surya merged 1 commit into
mainfrom
fix-chatgpt-oauth
Jun 29, 2026
Merged

chore: add ChatGPT OAuth connector redirect URIs to OAuth allowlist#165
Prashant-Surya merged 1 commit into
mainfrom
fix-chatgpt-oauth

Conversation

@akhil-vamshi-konam

@akhil-vamshi-konam akhil-vamshi-konam commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

Adds the ChatGPT OAuth connector redirect URIs to the MCP server's OAuth redirect allowlist.

This change includes support for:

  • https://chatgpt.com/connector/oauth/* (per-connector callback)
  • https://chatgpt.com/connector_platform_oauth_redirect (legacy redirect)

This ensures OAuth flows initiated through ChatGPT Connectors are accepted by the server.

Type of Change

  • Improvement
  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Code refactoring
  • Performance improvements
  • Documentation update

Summary by CodeRabbit

  • New Features
    • Expanded OAuth redirect support to include ChatGPT connector callback patterns, improving compatibility for connector sign-in flows.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c3ce7c94-b20b-449e-a7d5-f39544f0e436

📥 Commits

Reviewing files that changed from the base of the PR and between 954449a and 97e4670.

📒 Files selected for processing (1)
  • plane_mcp/server.py

📝 Walkthrough

Walkthrough

Two ChatGPT connector OAuth redirect URI patterns (https://chatgpt.com/connector/oauth/* and https://chatgpt.com/connector_platform_oauth_redirect) are added to the allowed_client_redirect_uris list in get_oauth_mcp within plane_mcp/server.py.

ChatGPT OAuth Redirect URI Allowlist

Layer / File(s) Summary
Allow ChatGPT connector redirect URIs
plane_mcp/server.py
Two ChatGPT connector callback patterns appended to allowed_client_redirect_uris in get_oauth_mcp.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • Prashant-Surya

🐇 Two new paths for ChatGPT to hop,
OAuth callbacks added to the top.
The connector knocks, the door swings wide,
With redirect URIs tucked inside.
sniff sniff — all the right URLs! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding ChatGPT connector OAuth redirect URIs to the allowlist.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-chatgpt-oauth

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Prashant-Surya
Prashant-Surya merged commit e013e2b into main Jun 29, 2026
1 check passed
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