Package io.modelcontextprotocol.server
package io.modelcontextprotocol.server
-
ClassDescriptionDefault implementation for
McpTransportContextwhich uses a Thread-safe map.The Model Context Protocol (MCP) server implementation that provides asynchronous communication using Project Reactor's Mono and Flux types.Represents an asynchronous exchange with a Model Context Protocol (MCP) client.Request handler for the initialization request.A handler for client-initiated notifications.A handler for client-initiated requests.Factory class for creating Model Context Protocol (MCP) servers.McpServer.AsyncSpecification<S extends McpServer.AsyncSpecification<S>>Asynchronous server specification.McpServer.SyncSpecification<S extends McpServer.SyncSpecification<S>>Synchronous server specification.MCP server features specification that a particular server can choose to support.Specification of a completion handler function with asynchronous execution support.Specification of a prompt template with its asynchronous handler function.Specification of a resource with its asynchronous handler function.Specification of a tool with its asynchronous handler function.Builder for creating AsyncToolSpecification instances.Specification of a completion handler function with synchronous execution support.Specification of a prompt template with its synchronous handler function.Specification of a resource with its synchronous handler function.Specification of a tool with its synchronous handler function.Builder for creating SyncToolSpecification instances.A stateless MCP server implementation for use with Streamable HTTP transport types.Handler for MCP notifications in a stateless server.Handler for MCP requests in a stateless server.MCP stateless server features specification that a particular server can choose to support.Specification of a completion handler function with asynchronous execution support.Specification of a prompt template with its asynchronous handler function.Specification of a resource with its asynchronous handler function.Specification of a tool with its asynchronous handler function.Builder for creating AsyncToolSpecification instances.Specification of a completion handler function with synchronous execution support.Specification of a prompt template with its synchronous handler function.Specification of a resource with its synchronous handler function.Specification of a tool with its synchronous handler function.Builder for creating SyncToolSpecification instances.Handler for MCP requests and notifications in a Stateless Streamable HTTP Server context.A stateless MCP server implementation for use with Streamable HTTP transport types.A synchronous implementation of the Model Context Protocol (MCP) server that wrapsMcpAsyncServerto provide blocking operations.Represents a synchronous exchange with a Model Context Protocol (MCP) client.Context associated with the transport layer.The contract for extracting metadata from a generic transport request of typeMcpTransportContextExtractor.