modelcontextprotocol / modelcontextprotocol/typescript-sdk

SSEClientTransport

Open
#342 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs confirmation potentially close question
Dominant language
TypeScript
Stars
13.4k
Forks
2.2k
Avg merge
3d 15h
Merged PRs (30d)
4

Description

fails to establish the connection.
This happens only in the MCP TypeScript client — Postman and browser work fine for both paths.


To Reproduce
Steps to reproduce the behavior:

  1. Create a new Client instance using the SDK
  2. Use SSEClientTransport and pass the full nested SSE URL
  3. Observe that the connection never completes or fails silently
const client = new Client(
  { name: 'TestApp', version: '1.0.0' },
  {
    transport: new SSEClientTransport({
      url: 'https://$domain/i_0b758EBC-9BEc52b9-Ea5ac125/sse',
    }),
  }
)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the TypeScript Client and SSEClientTransport using the nested SSE URL shown in the issue. Start by inspecting SSEClientTransport and trace why the connection does not complete, then verify that the same URL establishes a working connection in the MCP TypeScript client without regressing the other path.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.