Skip to content

fix(client): prevent duplicate Auth headers in SSE transport#1933

Open
Jim1874 wants to merge 1 commit intomodelcontextprotocol:mainfrom
Jim1874:fix-sse-duplicate-headers
Open

fix(client): prevent duplicate Auth headers in SSE transport#1933
Jim1874 wants to merge 1 commit intomodelcontextprotocol:mainfrom
Jim1874:fix-sse-duplicate-headers

Conversation

@Jim1874
Copy link
Copy Markdown

@Jim1874 Jim1874 commented Apr 20, 2026

Fixes SSE client spreading entire init object + explicit headers causing Headers merge issue with duplicate Auth.

Closes #1872

@Jim1874 Jim1874 requested a review from a team as a code owner April 20, 2026 03:25
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 20, 2026

🦋 Changeset detected

Latest commit: 0db63dc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@modelcontextprotocol/client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 20, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@1933

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@1933

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@1933

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@1933

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@1933

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@1933

commit: 0db63dc

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.

SSE client: duplicate Authorization header when using eventSourceInit.fetch + requestInit.headers

1 participant