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

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(String)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(HttpClient.Builder, String, ObjectMapper)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(HttpClient.Builder, String, String, ObjectMapper)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(HttpClient.Builder, HttpRequest.Builder, String, String, ObjectMapper)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport.Builder(String)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor is deprecated and will be removed or made protected or private in a future release.
  • Deprecated Interfaces
    Interface
    Description
    io.modelcontextprotocol.spec.McpServerSession.InitRequestHandler
    Use McpInitRequestHandler
    io.modelcontextprotocol.spec.McpServerSession.NotificationHandler
    Use McpNotificationHandler
    io.modelcontextprotocol.spec.McpServerSession.RequestHandler
    Use McpRequestHandler
  • Deprecated Fields
    Field
    Description
    io.modelcontextprotocol.spec.McpSchema.LATEST_PROTOCOL_VERSION
  • Deprecated Methods
    Method
    Description
    io.modelcontextprotocol.server.McpAsyncServer.loggingNotification(McpSchema.LoggingMessageNotification)
    Use McpAsyncServerExchange.loggingNotification(LoggingMessageNotification) instead.
    io.modelcontextprotocol.server.McpServer.AsyncSpecification.tool(McpSchema.Tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, Mono<McpSchema.CallToolResult>>)
    Use McpServer.AsyncSpecification.toolCall(McpSchema.Tool, BiFunction) instead for tool calls that require a request object.
    io.modelcontextprotocol.server.McpServer.SyncSpecification.tool(McpSchema.Tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult>)
    Use McpServer.SyncSpecification.toolCall(McpSchema.Tool, BiFunction) instead for tool calls that require a request object.
    io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification.call()
    io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification.call()
    io.modelcontextprotocol.server.McpSyncServer.loggingNotification(McpSchema.LoggingMessageNotification)
    Use McpSyncServerExchange.loggingNotification(LoggingMessageNotification) instead.
    io.modelcontextprotocol.spec.McpSchema.EmbeddedResource.audience()
    Only exists for backwards-compatibility purposes. Use McpSchema.EmbeddedResource.annotations() instead.
    io.modelcontextprotocol.spec.McpSchema.EmbeddedResource.priority()
    Only exists for backwards-compatibility purposes. Use McpSchema.EmbeddedResource.annotations() instead.
    io.modelcontextprotocol.spec.McpSchema.ImageContent.audience()
    Only exists for backwards-compatibility purposes. Use McpSchema.ImageContent.annotations() instead.
    io.modelcontextprotocol.spec.McpSchema.ImageContent.priority()
    Only exists for backwards-compatibility purposes. Use McpSchema.ImageContent.annotations() instead.
    io.modelcontextprotocol.spec.McpSchema.TextContent.audience()
    Only exists for backwards-compatibility purposes. Use McpSchema.TextContent.annotations() instead.
    io.modelcontextprotocol.spec.McpSchema.TextContent.priority()
    Only exists for backwards-compatibility purposes. Use McpSchema.TextContent.annotations() instead.
  • Deprecated Constructors
    Constructor
    Description
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(String)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(HttpClient.Builder, String, ObjectMapper)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(HttpClient.Builder, String, String, ObjectMapper)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport(HttpClient.Builder, HttpRequest.Builder, String, String, ObjectMapper)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor will be removed in future versions.
    io.modelcontextprotocol.client.transport.HttpClientSseClientTransport.Builder(String)
    Use HttpClientSseClientTransport.builder(String) instead. This constructor is deprecated and will be removed or made protected or private in a future release.
    io.modelcontextprotocol.server.McpAsyncServerExchange(McpSession, McpSchema.ClientCapabilities, McpSchema.Implementation)
    Use McpAsyncServerExchange(String, McpLoggableSession, McpSchema.ClientCapabilities, McpSchema.Implementation, McpTransportContext)
    io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification(McpSchema.Tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, Mono<McpSchema.CallToolResult>>)
    Use {@link AsyncToolSpecification(McpSchema.Tool, null, BiFunction)} instead.
    io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification(McpSchema.Tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult>)
    io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider(ObjectMapper, String, String)
    Use the builder HttpServletSseServerTransportProvider.builder() instead for better configuration options.
    io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider(ObjectMapper, String, String, String)
    Use the builder HttpServletSseServerTransportProvider.builder() instead for better configuration options.
    io.modelcontextprotocol.server.transport.HttpServletSseServerTransportProvider(ObjectMapper, String, String, String, Duration)
    Use the builder HttpServletSseServerTransportProvider.builder() instead for better configuration options.
    io.modelcontextprotocol.spec.McpClientSession(Duration, McpClientTransport, Map<String, McpClientSession.RequestHandler<?>>, Map<String, McpClientSession.NotificationHandler>)
    Use McpClientSession(Duration, McpClientTransport, Map, Map, Function)
    io.modelcontextprotocol.spec.McpError(Object)
    io.modelcontextprotocol.spec.McpSchema.EmbeddedResource(List<McpSchema.Role>, Double, McpSchema.ResourceContents)
    Only exists for backwards-compatibility purposes. Use EmbeddedResource(Annotations, ResourceContents) instead.
    io.modelcontextprotocol.spec.McpSchema.ImageContent(List<McpSchema.Role>, Double, String, String)
    Only exists for backwards-compatibility purposes. Use ImageContent(Annotations, String, String) instead.
    io.modelcontextprotocol.spec.McpSchema.Resource(String, String, String, String, McpSchema.Annotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Resource.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.Resource(String, String, String, String, Long, McpSchema.Annotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Resource.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.Resource(String, String, String, String, String, Long, McpSchema.Annotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Resource.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.ResourceLink(String, String, String, String, Long, McpSchema.Annotations)
    Only exists for backwards-compatibility purposes. Use ResourceLink(String, String, String, String, String, Long, Annotations) instead.
    io.modelcontextprotocol.spec.McpSchema.ResourceLink(String, String, String, String, String, Long, McpSchema.Annotations)
    Only exists for backwards-compatibility purposes. Use ResourceLink(String, String, String, String, String, Long, Annotations) instead.
    io.modelcontextprotocol.spec.McpSchema.TextContent(List<McpSchema.Role>, Double, String)
    Only exists for backwards-compatibility purposes. Use TextContent(Annotations, String) instead.
    io.modelcontextprotocol.spec.McpSchema.Tool(String, String, McpSchema.JsonSchema, McpSchema.ToolAnnotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Tool.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.Tool(String, String, String)
    Only exists for backwards-compatibility purposes. Use McpSchema.Tool.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.Tool(String, String, String, McpSchema.ToolAnnotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Tool.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.Tool(String, String, String, String, McpSchema.ToolAnnotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Tool.builder() instead.
    io.modelcontextprotocol.spec.McpSchema.Tool(String, String, String, String, String, McpSchema.ToolAnnotations)
    Only exists for backwards-compatibility purposes. Use McpSchema.Tool.builder() instead.
    io.modelcontextprotocol.spec.McpServerSession(String, Duration, McpServerTransport, McpInitRequestHandler, McpServerSession.InitNotificationHandler, Map<String, McpRequestHandler<?>>, Map<String, McpNotificationHandler>)
    Use McpServerSession(String, Duration, McpServerTransport, McpInitRequestHandler, Map, Map)

Copyright © 2025 Anthropic. All rights reserved.