Skip to content

chore(chatgpt-mcp): add Deprecation/Sunset headers — retire to mcp.chitty.cc#195

Open
chitcommit wants to merge 1 commit into
mainfrom
chore/deprecate-chatgpt-mcp-route
Open

chore(chatgpt-mcp): add Deprecation/Sunset headers — retire to mcp.chitty.cc#195
chitcommit wants to merge 1 commit into
mainfrom
chore/deprecate-chatgpt-mcp-route

Conversation

@chitcommit
Copy link
Copy Markdown
Contributor

Companion to chittyos/chittymcp#66.

Adds standard deprecation signals on every response from connect.chitty.cc/chatgpt/mcp:

Deprecation: true
Sunset: Sat, 15 Aug 2026 00:00:00 GMT
Link: <https://mcp.chitty.cc/mcp>; rel="successor-version",
      <https://mcp.chitty.cc/sse>; rel="alternate"

ChatGPT MCP doesn't require a unique hostname or carve-out — the OpenAI spec only needs a valid OAuth issuer + MCP transport, both already on the canonical mcp.chitty.cc aggregator.

After sunset (2026-08-15), the McpConnectAgent + /chatgpt/mcp route + api/routes/chatgpt-mcp.js handler should be removed from chittyconnect entirely.

…itty.cc

The /chatgpt/mcp route inside chittyconnect duplicates capability that
belongs at the canonical mcp.chitty.cc aggregator. ChatGPT MCP doesn't
require a unique hostname or carve-out — the OpenAI spec only needs a
valid OAuth issuer + MCP transport, both already on mcp.chitty.cc with
unified audit.

Emit standard deprecation signals (RFC 8594) on every response:
  Deprecation: true
  Sunset: Sat, 15 Aug 2026 00:00:00 GMT
  Link: <https://mcp.chitty.cc/mcp>; rel="successor-version",
        <https://mcp.chitty.cc/sse>; rel="alternate"

After sunset, the McpConnectAgent + the /chatgpt/mcp route + the
api/routes/chatgpt-mcp.js handler should be removed from chittyconnect.

Companion PR: chittyos/chittymcp#66 (mcp-chatgpt.chitty.cc gateway).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 17, 2026 06:53
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

Warning

Rate limit exceeded

@chitcommit has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 49 minutes and 56 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 93d5a68e-e179-47a1-84ce-f55fad1e368a

📥 Commits

Reviewing files that changed from the base of the PR and between 973b4d9 and 174f923.

📒 Files selected for processing (1)
  • src/api/routes/chatgpt-mcp.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/deprecate-chatgpt-mcp-route

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 and usage tips.

@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

cloudflare-workers-and-pages Bot commented May 17, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
chittyconnect 174f923 May 17 2026, 06:53 AM

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds HTTP deprecation signaling to the legacy ChatGPT MCP route so clients can migrate to the canonical mcp.chitty.cc aggregator before the configured sunset date.

Changes:

  • Adds Deprecation, Sunset, and Link headers to all /chatgpt/mcp responses.
  • Documents the intended migration target and sunset window inline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 174f923f1d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +31 to +33
await next();
c.header("Deprecation", "true");
c.header("Sunset", "Sat, 15 Aug 2026 00:00:00 GMT");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Clone upstream response before mutating deprecation headers

In chatgptMcp.use, headers are added after await next(), but the downstream handler returns mcpHandler.fetch(...) (a fetch-style Response). In Hono, fetch-returned responses have immutable headers, so calling c.header(...) at this point can raise Can't modify immutable headers and turn valid MCP requests into 500s. This affects normal authenticated traffic hitting /chatgpt/mcp; clone the response (or set headers on a new Response) before mutating headers.

Useful? React with 👍 / 👎.

// Sunset window: 2026-08-15.
chatgptMcp.use("*", async (c, next) => {
await next();
c.header("Deprecation", "true");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use RFC-compliant Deprecation header date

Deprecation is set to the literal string "true", but the current Deprecation header specification requires a Structured Field Date value; non-compliant values can be ignored by strict clients and tooling, which means automated migration/deprecation handling may not trigger for this endpoint. Use a valid date item (e.g., an @-prefixed Unix timestamp) instead of a boolean string.

Useful? React with 👍 / 👎.

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