SSE transport: connection succeeds then marked 'Failed' after first event, works fine with raw curl
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 53/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend-api-design
Línea de trabajo
Start by tracing the Inspector legacy SSE client path used for the /sse connection, then inspect how it handles the endpoint event and stream lifetime. Reproduce with a Python MCP SDK SSE server or the reported request sequence; done means the Inspector keeps the stream open and proceeds to initialize and list tools. The issue does not name source files or tests, so finding the relevant entry point will require reading around the transport implementation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Connecting to a remote MCP server using the legacy SSE (Server Sent Events) [deprecated] transport: the initial GET /sse request succeeds (200, correct event: endpoint frame delivered with a valid session_id), but the Inspector UI then marks the server connection status as "Failed" and never proceeds to list tools/resources. The History panel shows the single GET transport request as 200 SSE, with the response body described as "Long-lived stream — 1 event delivered, closed; body not captured".
Driving the exact same server by hand with raw curl (bypassing Inspector entirely) completes the full handshake correctly: GET /sse stays open indefinitely, and POSTing initialize → notifications/initialized → tools/list → tools/call to the returned /messages/?session_id=... endpoint all return correct JSON-RPC responses on the SSE stream, with no server-side errors. This confirms the target server, TLS, and auth header are all fine — the failure is isolated to Inspector's own legacy SSE client path.
Steps to reproduce
- Start Inspector against a remote MCP server using the Python MCP SDK's SSE transport (
uvicorn-based,/sse+/messages/?session_id=...pattern):npx @modelcontextprotocol/inspector \ --transport sse \ --server-url "https://<your-server>/sse" \ --header "Authorization: Bearer <redacted>" - Open the printed Inspector UI URL, confirm Transport = SSE, Server URL ends in
/sse, Authorization header populated. - Click Connect.
- UI shows "Connecting..." then settles on "Failed".
- In the Requests panel, the single
GET transportrequest shows200 SSEwith 1 event delivered, then the connection is reported closed.
Expected behavior
Inspector should keep the SSE stream open (the same way a direct curl -N connection to the identical endpoint stays open indefinitely) and proceed to auto-initialize / allow listing tools, since the server is fully spec-compliant and responds correctly when driven manually.
Environment
- Inspector version: latest via
npx @modelcontextprotocol/inspector(package version2.12.0as of testing) - OS: macOS (darwin)
- Target server: Python MCP SDK, SSE transport, fronted by a cloud load balancer (TLS terminated there)
Additional context
Manually replayed protocol trace (via curl) against the same server, for reference, showing a fully successful initialize → tools/list → tools/call exchange with no errors — confirming the server side is healthy and the bug is isolated to Inspector's legacy SSE client:
event: endpoint
data: /messages/?session_id=<redacted>
event: message
data: {"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05","capabilities":{...},"serverInfo":{"name":"<server-name>","version":"<x.y.z>"}}}
event: message
data: {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"tool_a", ...}, {"name":"tool_b", ...}, {"name":"tool_c", ...}]}}
event: message
data: {"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"<tool output>"}],"isError":false}}
Happy to provide a full HAR/network export or more detail if useful — the server itself cannot be shared since it's a private internal instance.
- Lenguaje dominante
- TypeScript
- Estrellas
- 11.1k
- Forks
- 1.6k
- Merge medio
- 5 h 32 min
- PR fusionados (30 d)
- 153
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/inspector
-
chore(deps): upgrade the MCP TypeScript SDK to 2.4.0Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertochore dependencies v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
modelcontextprotocol/inspector#2784 ·
Los mantenedores suelen responder en 1 día
-
Sort tools listing by selector or titlePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
modelcontextprotocol/inspector#2782 ·
Los mantenedores suelen responder en 1 día
-
CLI tests seed the developer's real ~/.mcp-inspector/mcp.json (cli.test.ts, completion.test.ts)Abiertobug v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/inspector#2765 ·
Los mantenedores suelen responder en 1 día
-
chore v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/inspector#2752 ·
Los mantenedores suelen responder en 1 día
-
enhancement v2
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
modelcontextprotocol/inspector#2772 ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/inspector
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
farion1231/cc-switch#8829 ·
Los mantenedores suelen responder en 1 día
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverAbiertodoc-audit enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100