Package io.modelcontextprotocol.spec
package io.modelcontextprotocol.spec
-
ClassDescriptionDeprecated.This class will be removed in 0.9.0.Deprecated.This method will be removed in 0.9.0.Functional interface for handling incoming JSON-RPC notifications.Functional interface for handling incoming JSON-RPC requests.Default implementation of the MCP (Model Context Protocol) session that manages bidirectional JSON-RPC communication between clients and servers.Functional interface for handling incoming JSON-RPC notifications.Functional interface for handling incoming JSON-RPC requests.Marker interface for the client-side MCP transport.Based on the JSON-RPC 2.0 specification and the Model Context Protocol Schema.Base for objects that include optional annotations for the client.Optional annotations for the client.Binary contents of a resource.Used by the client to call a tool provided by the server.The server's response to a tools/call request from the client.Clients can implement additional features to enrich connected MCP servers with additional capabilities.Roots define the boundaries of where servers can operate within the filesystem, allowing them to understand which directories and files they have access to.Provides a standardized way for servers to request LLM sampling ("completions" or "generations") from language models via clients.Standard error codes used in MCP JSON-RPC responses.Used by the client to get a prompt provided by the server.The server's response to a prompts/get request from the client.The server's response to a prompts/list request from the client.The client's response to a roots/list request from the server.The server's response to a tools/list request from the client.The Model Context Protocol (MCP) provides a standardized way for servers to send structured log messages to clients.A prompt or prompt template that the server offers.Describes an argument that a prompt can accept.Describes a message returned as part of a prompt.A known resource that the server is capable of reading.The contents of a specific resource or sub-resource.Resource templates allow servers to expose parameterized resources using URI templates.Represents a root directory or file that the server can operate on.Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.Text contents of a resource.Represents a tool that the server provides.Represents a Model Control Protocol (MCP) session on the server side.Factory for creating server sessions which delegate to a provided 1:1 transport with a connected client.Notification handler for the initialization notification from the client.Request handler for the initialization request.A handler for client-initiated notifications.A handler for client-initiated requests.Marker interface for the server-side MCP transport.The core building block providing the server-side MCP transport.Represents a Model Control Protocol (MCP) session that handles communication between clients and the server.Defines the asynchronous transport layer for the Model Context Protocol (MCP).Deprecated.This class will be removed in 0.9.0.