Skip to content

[comp] Production Deploy#3033

Merged
tofikwest merged 3 commits into
releasefrom
main
Jun 4, 2026
Merged

[comp] Production Deploy#3033
tofikwest merged 3 commits into
releasefrom
main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 4, 2026

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Reverts OAuth2 from the public OpenAPI spec to restore MCP tool generation and unblock nightly SDK runs. Adds a guardrail test to ensure every operation uses a single auth scheme while keeping API key gating.

  • Bug Fixes
    • Removed OAuth2 scheme and per-operation entries from the public spec; OAuth stays at the hosting layer, not in the base spec.
    • Added a test that fails if any operation declares more than one security scheme; also verifies protected ops require apikey.
    • Regenerated packages/docs/openapi.json to reflect the revert; no endpoints changed beyond removing OAuth2.

Written for commit ccb6edc. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 3 commits June 4, 2026 19:03
Reverts the oauth2 security scheme that #2961 added to the public OpenAPI
spec. That change put two auth methods (apikey + oauth2) on every endpoint,
which made Speakeasy's mcp-typescript generator drop ~300 of ~335 MCP tools
on every nightly run — it cannot emit a tool when an operation declares more
than one security scheme. The nightly regen kept opening "Update SDK" PRs
that would gut the published @trycompai/mcp-server if merged.

This removes ONLY the oauth2 scheme + the per-op oauth2 entries; the
packages/docs/openapi.json diff is a pure inverse of #2961 (936 deletions,
no other endpoint touched). public-docs-metadata.ts is restored byte-for-byte
to its pre-#2961 state.

All the actual OAuth work (better-auth provider, guards, McpOrgBinding, org
picker from #2955) is UNTOUCHED and stays intact. Keyless OAuth will be wired
at the hosting layer (self-host or Speakeasy Enterprise), never in the base
spec.

Adds a guardrail test in openapi-docs.spec.ts that fails if any operation
ever declares more than one security scheme again, so this regression cannot
silently recur.

Note: an unrelated, pre-existing test ("curates high-value API pages" /
expects "SOC 2" in the /v1/policies description) fails on main too — that
description changed and the SEO assertion is stale. Left as-is to keep this
revert surgical.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…e-generator

fix(api): revert oauth2 spec scheme to restore the MCP generator
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 4, 2026 9:41pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Jun 4, 2026 9:41pm
portal (staging) Skipped Skipped Jun 4, 2026 9:41pm

Request Review

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@tofikwest tofikwest merged commit e664ee0 into release Jun 4, 2026
14 checks passed
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.70.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants