Skip navigation links
  • Module
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Interfaces
  • Classes
  • Record Classes
  • Methods
  • Constructors
  • Deprecated Interfaces
    Interface
    Description
    io.modelcontextprotocol.spec.ClientMcpTransport
    This class will be removed in 0.9.0. Use McpClientTransport.
    io.modelcontextprotocol.spec.ServerMcpTransport
    This class will be removed in 0.9.0. Use McpServerTransport.
  • Deprecated Classes
    Class
    Description
    io.modelcontextprotocol.server.McpServer.AsyncSpec
     
    io.modelcontextprotocol.server.McpServer.SyncSpec
     
    io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
    This 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
    io.modelcontextprotocol.server.transport.StdioServerTransport
    This method will be removed in 0.9.0. Use StdioServerTransportProvider instead.
    io.modelcontextprotocol.spec.DefaultMcpSession
    This method will be removed in 0.9.0. Use McpClientSession instead
  • Deprecated Record Classes
    Record Class
    Description
    io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
    This class is deprecated and will be removed in 0.9.0. Use McpServerFeatures.AsyncPromptSpecification.
    io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
    This class is deprecated and will be removed in 0.9.0. Use McpServerFeatures.AsyncResourceSpecification.
    io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
    This class is deprecated and will be removed in 0.9.0. Use McpServerFeatures.AsyncToolSpecification.
    io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
    This class is deprecated and will be removed in 0.9.0. Use McpServerFeatures.SyncPromptSpecification.
    io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
    This class is deprecated and will be removed in 0.9.0. Use McpServerFeatures.SyncResourceSpecification.
    io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
    This class is deprecated and will be removed in 0.9.0. Use McpServerFeatures.SyncToolSpecification.
  • Deprecated Methods
    Method
    Description
    io.modelcontextprotocol.client.McpClient.async(ClientMcpTransport)
    This method will be removed in 0.9.0. Use McpClient.async(McpClientTransport)
    io.modelcontextprotocol.client.McpClient.sync(ClientMcpTransport)
    This method will be removed in 0.9.0. Use McpClient.sync(McpClientTransport)
    io.modelcontextprotocol.server.McpAsyncServer.addPrompt(McpServerFeatures.AsyncPromptRegistration)
    This method will be removed in 0.9.0. Use McpAsyncServer.addPrompt(McpServerFeatures.AsyncPromptSpecification).
    io.modelcontextprotocol.server.McpAsyncServer.addResource(McpServerFeatures.AsyncResourceRegistration)
    This method will be removed in 0.9.0. Use McpAsyncServer.addResource(McpServerFeatures.AsyncResourceSpecification).
    io.modelcontextprotocol.server.McpAsyncServer.addTool(McpServerFeatures.AsyncToolRegistration)
    This method will be removed in 0.9.0. Use McpAsyncServer.addTool(McpServerFeatures.AsyncToolSpecification).
    io.modelcontextprotocol.server.McpAsyncServer.createMessage(McpSchema.CreateMessageRequest)
    This will be removed in 0.9.0. Use McpAsyncServerExchange.createMessage(McpSchema.CreateMessageRequest).
    io.modelcontextprotocol.server.McpAsyncServer.getClientCapabilities()
    This will be removed in 0.9.0. Use McpAsyncServerExchange.getClientCapabilities().
    io.modelcontextprotocol.server.McpAsyncServer.getClientInfo()
    This will be removed in 0.9.0. Use McpAsyncServerExchange.getClientInfo().
    io.modelcontextprotocol.server.McpAsyncServer.listRoots()
    This will be removed in 0.9.0. Use McpAsyncServerExchange.listRoots().
    io.modelcontextprotocol.server.McpAsyncServer.listRoots(String)
    This will be removed in 0.9.0. Use McpAsyncServerExchange.listRoots(String).
    io.modelcontextprotocol.server.McpServer.async(ServerMcpTransport)
    This method will be removed in 0.9.0. Use McpServer.async(McpServerTransportProvider) instead.
    io.modelcontextprotocol.server.McpServer.sync(ServerMcpTransport)
    This method will be removed in 0.9.0. Use McpServer.sync(McpServerTransportProvider) instead.
    io.modelcontextprotocol.server.McpSyncServer.addPrompt(McpServerFeatures.SyncPromptRegistration)
    This method will be removed in 0.9.0. Use McpSyncServer.addPrompt(McpServerFeatures.SyncPromptSpecification).
    io.modelcontextprotocol.server.McpSyncServer.addResource(McpServerFeatures.SyncResourceRegistration)
    This method will be removed in 0.9.0. Use McpSyncServer.addResource(McpServerFeatures.SyncResourceSpecification).
    io.modelcontextprotocol.server.McpSyncServer.addTool(McpServerFeatures.SyncToolRegistration)
    This method will be removed in 0.9.0. Use McpSyncServer.addTool(McpServerFeatures.SyncToolSpecification).
    io.modelcontextprotocol.server.McpSyncServer.createMessage(McpSchema.CreateMessageRequest)
    This method will be removed in 0.9.0. Use McpSyncServerExchange.createMessage(McpSchema.CreateMessageRequest).
    io.modelcontextprotocol.server.McpSyncServer.getClientCapabilities()
    This method will be removed in 0.9.0. Use McpSyncServerExchange.getClientCapabilities().
    io.modelcontextprotocol.server.McpSyncServer.getClientInfo()
    This method will be removed in 0.9.0. Use McpSyncServerExchange.getClientInfo().
    io.modelcontextprotocol.server.McpSyncServer.listRoots()
    This method will be removed in 0.9.0. Use McpSyncServerExchange.listRoots().
    io.modelcontextprotocol.server.McpSyncServer.listRoots(String)
    This method will be removed in 0.9.0. Use McpSyncServerExchange.listRoots(String).
    io.modelcontextprotocol.spec.McpTransport.connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>)
    This is only relevant for client-side transports and will be removed from this interface in 0.9.0.
  • Deprecated Constructors
    Constructor
    Description
    io.modelcontextprotocol.client.McpSyncClient(McpAsyncClient)
    This method will be removed in 0.9.0. Use McpClient.sync(McpClientTransport) to obtain an instance.

Copyright © 2025 Anthropic. All rights reserved.