Skip to content

Adapt OAuth provider for legacy MCP SDK - #26

Merged
osimuka merged 2 commits into
mainfrom
fix/legacy-mcp-oauth-provider-types
Oct 11, 2026
Merged

osimuka merged 2 commits into
mainfrom
fix/legacy-mcp-oauth-provider-types

Conversation

@osimuka

@osimuka osimuka commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Describe the problem and the changes in this pull request.

Validation

  • npm run typecheck
  • npm run build
  • npm test

Checklist

  • Tests added or updated where behavior changed
  • Documentation updated where needed
  • No secrets or generated credentials are included
  • Changes are focused and backward-compatible, or breaking changes are documented

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@osimuka
osimuka requested a balanced review from Copilot October 11, 2026 20:48
@osimuka osimuka self-assigned this Oct 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Object spreading can break class-based or stateful OAuth providers.

1 open finding
What changed in this PR

Adapts current OAuth providers for the legacy MCP SSE transport.

Changes:

  • Adds a legacy OAuth provider adapter.
  • Validates that a redirect URL is available.
File Description
api/​core/​agent/​tools/​mcpTransport.ts Adapts OAuth providers when creating legacy SSE transports.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread api/core/agent/tools/mcpTransport.ts Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused compatibility change is correct and covered by an integration test.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@osimuka
osimuka merged commit c03c67b into main Oct 11, 2026
5 checks passed
@osimuka
osimuka deleted the fix/legacy-mcp-oauth-provider-types branch October 11, 2026 21:43
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