Support dual-era servers (legacy + 2026-07-28 on the same endpoint)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- backend-api-design
Línea de trabajo
Start by reading the linked protocol versioning section and inspect the server entry points for McpServer, McpAsyncServer, and McpSyncServer. Work out how Streamable HTTP and stdio select a protocol era, including how initialize errors report supported versions. Done means one composed server can serve both eras while the existing server classes remain single-era.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
The 2026-07-28 revision defines a dual-era implementation as one that supports both modern (stateless, per-request _meta) and legacy (initialize handshake, 2025-11-25 and earlier) protocol versions. See Versioning: Backward Compatibility.
Requirements
Let users run one server that serves both eras, picking the era from how the client opens, as the spec describes:
- A request carrying modern per-request
_metais served statelessly under 2026-07-28. - An
initializerequest selects legacy semantics, scoped to the session (HTTP) or the process (stdio).
Existing server (McpServer, McpAsyncServer and McpSyncServer) must remain single-era, the multi-era composition happens at a higher level.
Notes
At minimum this covers Streamable HTTP (one endpoint, both eras at the same time) and stdio (the era is fixed by the first message). The spec also asks dual-era servers to list their supported protocol versions in any error returned to initialize.
Ideally users register tools, resources and prompts once and the SDK serves them under either era, so they don't maintain two server definitions. This might not be 100% possible, some edge cases are acceptable.
- Lenguaje dominante
- Java
- Estrellas
- 3.8k
- Forks
- 1.1k
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 38
Preparar el entorno
- Sin Dockerfile ni 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/java-sdk
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringPosiblemente ocupada @starryeye la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
modelcontextprotocol/java-sdk#1352 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was calledAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
modelcontextprotocol/java-sdk#1346 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
modelcontextprotocol/java-sdk#1345 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Tool result _meta is lost when the server automatically adds text content for structured outputAbiertoarea/server legacy P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/java-sdk#1330 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Client request handlers that complete empty send no JSON-RPC responsePosiblemente ocupada @1fanwang la tomó hace 83 días. Abiertoarea/client bug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
modelcontextprotocol/java-sdk#1124 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/java-sdk
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
crash
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
account bug course exam iris lecture
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día