-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionThis class will be removed in 0.9.0. Use
HttpServletSseServerTransportProvider.The transport handles two types of endpoints:
- SSE endpoint (/sse) - Establishes a long-lived connection for server-to-client events
- Message endpoint (configurable) - Handles client-to-server message requests
Features:
- Asynchronous message handling using Servlet 6.0 async support
- Session management for multiple client connections
- Graceful shutdown support
- Error handling and response formatting
This method will be removed in 0.9.0. UseStdioServerTransportProviderinstead.This method will be removed in 0.9.0. UseMcpClientSessioninstead
-
Deprecated Record ClassesRecord ClassDescriptionThis class is deprecated and will be removed in 0.9.0. Use
McpServerFeatures.AsyncPromptSpecification.This class is deprecated and will be removed in 0.9.0. UseMcpServerFeatures.AsyncResourceSpecification.This class is deprecated and will be removed in 0.9.0. UseMcpServerFeatures.AsyncToolSpecification.This class is deprecated and will be removed in 0.9.0. UseMcpServerFeatures.SyncPromptSpecification.This class is deprecated and will be removed in 0.9.0. UseMcpServerFeatures.SyncResourceSpecification.This class is deprecated and will be removed in 0.9.0. UseMcpServerFeatures.SyncToolSpecification.
-
Deprecated MethodsMethodDescriptionThis method will be removed in 0.9.0. Use
McpClient.async(McpClientTransport)This method will be removed in 0.9.0. UseMcpClient.sync(McpClientTransport)This method will be removed in 0.9.0. UseMcpAsyncServer.addPrompt(McpServerFeatures.AsyncPromptSpecification).This method will be removed in 0.9.0. UseMcpAsyncServer.addResource(McpServerFeatures.AsyncResourceSpecification).This method will be removed in 0.9.0. UseMcpAsyncServer.addTool(McpServerFeatures.AsyncToolSpecification).This will be removed in 0.9.0. UseMcpAsyncServerExchange.createMessage(McpSchema.CreateMessageRequest).This will be removed in 0.9.0. UseMcpAsyncServerExchange.getClientCapabilities().This will be removed in 0.9.0. UseMcpAsyncServerExchange.getClientInfo().This will be removed in 0.9.0. UseMcpAsyncServerExchange.listRoots().This will be removed in 0.9.0. UseMcpAsyncServerExchange.listRoots(String).This method will be removed in 0.9.0. UseMcpServer.async(McpServerTransportProvider)instead.This method will be removed in 0.9.0. UseMcpServer.sync(McpServerTransportProvider)instead.This method will be removed in 0.9.0. UseMcpSyncServer.addPrompt(McpServerFeatures.SyncPromptSpecification).io.modelcontextprotocol.server.McpSyncServer.addResource(McpServerFeatures.SyncResourceRegistration) This method will be removed in 0.9.0. UseMcpSyncServer.addResource(McpServerFeatures.SyncResourceSpecification).This method will be removed in 0.9.0. UseMcpSyncServer.addTool(McpServerFeatures.SyncToolSpecification).This method will be removed in 0.9.0. UseMcpSyncServerExchange.createMessage(McpSchema.CreateMessageRequest).This method will be removed in 0.9.0. UseMcpSyncServerExchange.getClientCapabilities().This method will be removed in 0.9.0. UseMcpSyncServerExchange.getClientInfo().This method will be removed in 0.9.0. UseMcpSyncServerExchange.listRoots().This method will be removed in 0.9.0. UseMcpSyncServerExchange.listRoots(String).This is only relevant for client-side transports and will be removed from this interface in 0.9.0.
-
Deprecated ConstructorsConstructorDescriptionThis method will be removed in 0.9.0. Use
McpClient.sync(McpClientTransport)to obtain an instance.
McpClientTransport.