@@ -119,6 +119,20 @@ public class HttpServletSseServerTransportProvider extends HttpServlet implement
119119 */
120120 private KeepAliveScheduler keepAliveScheduler ;
121121
122+ /**
123+ * Creates a new HttpServletSseServerTransportProvider instance with the default SSE
124+ * endpoint.
125+ * @param objectMapper The JSON object mapper to use for message
126+ * serialization/deserialization
127+ * @param messageEndpoint The endpoint path where clients will send their messages
128+ * @deprecated Use the builder {@link #builder()} instead for better configuration
129+ * options.
130+ */
131+ @ Deprecated
132+ public HttpServletSseServerTransportProvider (ObjectMapper objectMapper , String messageEndpoint ) {
133+ this (objectMapper , messageEndpoint , DEFAULT_SSE_ENDPOINT );
134+ }
135+
122136 /**
123137 * Creates a new HttpServletSseServerTransportProvider instance with a custom SSE
124138 * endpoint.
@@ -218,17 +232,6 @@ public List<String> protocolVersions() {
218232 return List .of (ProtocolVersions .MCP_2024_11_05 );
219233 }
220234
221- /**
222- * Creates a new HttpServletSseServerTransportProvider instance with the default SSE
223- * endpoint.
224- * @param objectMapper The JSON object mapper to use for message
225- * serialization/deserialization
226- * @param messageEndpoint The endpoint path where clients will send their messages
227- */
228- public HttpServletSseServerTransportProvider (ObjectMapper objectMapper , String messageEndpoint ) {
229- this (objectMapper , messageEndpoint , DEFAULT_SSE_ENDPOINT );
230- }
231-
232235 /**
233236 * Sets the session factory for creating new sessions.
234237 * @param sessionFactory The session factory to use
0 commit comments