Skip to content

Conversation

@pcarleton
Copy link
Member

Motivation and Context

fixes #1103

In #1070 we switched to only doing path or root based URLs, but this broke legacy servers because we were using the wrong "auth server url" for that scenario.

How Has This Been Tested?

Added unit tests.
Also checked against JIRA and Linear via:

MCP_SERVER_URL=https://mcp.linear.app/sse  npx tsx ./src/examples/client/simpleOAuthClient.ts
MCP_SERVER_URL=https://mcp.atlassian.com/v1/sse  npx tsx ./src/examples/client/simpleOAuthClient.ts

Breaking Changes

No, unbreaks main

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

I also tested this against new conformance tests in this PR:
modelcontextprotocol/conformance#28

@pcarleton pcarleton requested a review from a team as a code owner November 13, 2025 18:56
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 13, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/sdk@1108

commit: 4b2ef9d

Copy link
Contributor

@felixweinberger felixweinberger left a comment

Choose a reason for hiding this comment

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

Thanks! Pushed a small commit running eslint

@pcarleton pcarleton merged commit 8019972 into main Nov 13, 2025
10 checks passed
@pcarleton pcarleton deleted the pcarleton/fix-0326-auth-fallback branch November 13, 2025 19:31
felixweinberger added a commit that referenced this pull request Nov 13, 2025
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
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.

1.21.1 breaks Jira MCP OAuth

3 participants