Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelcontextprotocol/typescript-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: modelcontextprotocol/typescript-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pr-485-refactored
Choose a head ref
  • 2 commits
  • 5 files changed
  • 3 contributors

Commits on Jul 18, 2025

  1. feature(auth): DelegatedAuthClientProvider

    An optional provider that can be passed to the SSE and StreamableHttp client transports in order to completely delegate the authentication to an external system.
    m-paternostro committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    c536db1 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2025

  1. refactor: replace DelegatedAuthClientProvider with AuthenticationHandler

    - Create new AuthenticationHandler interface with addHeaders() and handle401Response() methods
    - Implement OAuthAuthenticationHandler wrapper for backward compatibility
    - Update SSEClientTransport to use authenticationHandler option
    - Update StreamableHTTPClientTransport to use authenticationHandler option
    - Remove old DelegatedAuthClientProvider interface
    
    This provides a cleaner, more flexible authentication architecture where:
    - Authentication handlers get full Response objects for 401 handling
    - Clear separation between adding headers and handling auth failures
    - Both OAuth and custom auth follow the same interface pattern
    - Backward compatibility maintained through OAuthAuthenticationHandler wrapper
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    pcarleton and claude committed Jul 24, 2025
    Configuration menu
    Copy the full SHA
    e9f1751 View commit details
    Browse the repository at this point in the history
Loading