Skip to content

Add SDK MCP OAuth host token handlers#1669

Draft
roji wants to merge 2 commits into
mainfrom
roji/roji-mcp-auth-sdk
Draft

Add SDK MCP OAuth host token handlers#1669
roji wants to merge 2 commits into
mainfrom
roji/roji-mcp-auth-sdk

Conversation

@roji

@roji roji commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add SDK-facing MCP OAuth host-token callbacks across Node, Python, Go, .NET, Java, and Rust.
  • Add generated RPC/event surfaces for session.mcp.oauth.handlePendingRequest, mcp.oauth_required, and mcp.oauth_completed.
  • Register mcp.oauth_required interest only when the high-level MCP auth callback is configured.
  • Add Node E2E coverage with a fake OAuth-protected HTTP MCP server fixture.

Notes

  • Draft while the corresponding runtime work lands: github/copilot-agent-runtime#10195.
  • The new Node MCP OAuth E2E uses the normal SDK construction-time path and requires the updated runtime behavior/package.

Validation

  • Node targeted MCP auth unit tests passed.
  • Node typecheck passed.
  • Prettier check passed.
  • Node MCP OAuth E2E passes against the sibling runtime branch; with the current packaged runtime it does not connect the OAuth test server yet.
  • Earlier validation in this session covered .NET build, Rust targeted tests, Python compile, and Node build/unit tests; Go/Java full validation were blocked locally by missing toolchains.

roji and others added 2 commits June 14, 2026 14:03
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Auto-committed by java-codegen-check workflow.
@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant