Skip to content

fix(core): honor MCP OAuth metadata challenge - #44808

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
mcp-oauth-metadata
Open

fix(core): honor MCP OAuth metadata challenge#44808
opencode-agent[bot] wants to merge 1 commit into
v2from
mcp-oauth-metadata

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • preflight the remote MCP endpoint before interactive OAuth discovery
  • honor the exact resource_metadata URL and challenge scope from WWW-Authenticate
  • preserve path and query components through authorization-code exchange

Tests

  • bun test test/mcp-oauth.test.ts
  • GOMAXPROCS=1 bun typecheck
  • bun x prettier --check packages/core/src/mcp/oauth.ts packages/core/test/mcp-oauth.test.ts

Requested by: @rekram1-node (Aiden via Slack)

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.

1 participant