Uses of Package
io.modelcontextprotocol.spec
Packages that use io.modelcontextprotocol.spec
Package
Description
-
Classes in io.modelcontextprotocol.spec used by io.modelcontextprotocol.clientClassDescriptionInterface for the client side of the
McpTransport.Used by the client to call a tool provided by the server.The server's response to a tools/call request from the client.Capabilities a client may support.A request from the client to the server, to ask for completion options.The server's response to a completion/complete request.A request from the server to sample an LLM via the client.The client's response to a sampling/create_message request from the server.A notification from the server to the client indicating that an out-of-band URL elicitation interaction has completed.A request from the server to elicit additional information from the user via the client, usingformmode.The client's response to an elicitation request.A request from the server to elicit additional information from the user out of band, usingurlmode.Used by the client to get a prompt provided by the server.The server's response to a prompts/get request from the client.Describes the name and version of an MCP implementation, with an optional title for UI representation.After receiving an initialize request from the client, the server sends this response.The server's response to a prompts/list request from the client.The server's response to a resources/list request from the client.The server's response to a resources/templates/list request from the client.The server's response to a tools/list request from the client.Severity levels for MCP log messages, ordered from least to most severe.The Model Context Protocol (MCP) provides a standardized way for servers to send structured log messages to clients.A request that supports pagination using cursors.The Model Context Protocol (MCP) supports optional progress tracking for long-running operations through notification messages.A prompt or prompt template that the server offers.Sent from the client to the server, to read a specific resource URI.The server's response to a resources/read request from the client.A known resource that the server is capable of reading.The contents of a specific resource or sub-resource.Represents a root directory or file that the server can operate on.Capabilities that a server may support.Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.Represents a tool that the server provides.Sent from the client to request cancellation of resources/updated notifications from the server. -
Classes in io.modelcontextprotocol.spec used by io.modelcontextprotocol.client.transportClassDescriptionInterface for the client side of the
McpTransport.Defines the asynchronous transport layer for the Model Context Protocol (MCP).Exception thrown when there is an issue with the transport layer of the Model Context Protocol (MCP). -
Classes in io.modelcontextprotocol.spec used by io.modelcontextprotocol.serverClassDescriptionAn
McpSessionwhich is capable of processing logging notifications and keeping track of a min logging level.Used by the client to call a tool provided by the server.The server's response to a tools/call request from the client.Capabilities a client may support.A reference to a prompt or resource that can be used as input for completion requests.A request from the client to the server, to ask for completion options.The server's response to a completion/complete request.A request from the server to sample an LLM via the client.The client's response to a sampling/create_message request from the server.A notification from the server to the client indicating that an out-of-band URL elicitation interaction has completed.A request from the server to elicit additional information from the user, either through the client or out-of-band.The client's response to an elicitation request.Used by the client to get a prompt provided by the server.The server's response to a prompts/get request from the client.Describes the name and version of an MCP implementation, with an optional title for UI representation.This request is sent from the client to the server when it first connects, asking it to begin initialization.After receiving an initialize request from the client, the server sends this response.A notification which does not expect a response.A request that expects a response.A response to a request (successful, or error).The client's response to a roots/list request from the server.The Model Context Protocol (MCP) provides a standardized way for servers to send structured log messages to clients.The Model Context Protocol (MCP) supports optional progress tracking for long-running operations through notification messages.A prompt or prompt template that the server offers.Sent from the client to the server, to read a specific resource URI.The server's response to a resources/read request from the client.A known resource that the server is capable of reading.The Model Context Protocol (MCP) provides a standardized way for servers to send resources update message to clients.Resource templates allow servers to expose parameterized resources using URIRepresents a root directory or file that the server can operate on.Capabilities that a server may support.Represents a tool that the server provides.Classic implementation ofMcpServerTransportProviderBasefor a single outgoing stream in bidirectional communication (STDIO and the legacy HTTP SSE).The core building block providing the server-side MCP transport for Streamable HTTP servers. -
Classes in io.modelcontextprotocol.spec used by io.modelcontextprotocol.server.transportClassDescriptionFactory for creating server sessions which delegate to a provided 1:1 transport with a connected client.Classic implementation of
McpServerTransportProviderBasefor a single outgoing stream in bidirectional communication (STDIO and the legacy HTTP SSE).The core building block providing the server-side MCP transport.Factory for new Streamable HTTP MCP sessions.The core building block providing the server-side MCP transport for Streamable HTTP servers. -
Classes in io.modelcontextprotocol.spec used by io.modelcontextprotocol.specClassDescriptionRepresents a closed MCP session, which may not be reused.Deprecated.Represents the result of a validation operation.Functional interface for handling incoming JSON-RPC requests.Interface for the client side of the
McpTransport.AnMcpSessionwhich is capable of processing logging notifications and keeping track of a min logging level.Base for objects that include optional annotations for the client.Optional annotations for the client.Audio provided to or from an LLM.Binary contents of a resource.Schema for a boolean field in a form-based elicitation request.Used by the client to call a tool provided by the server.The server's response to a tools/call request from the client.Builder forMcpSchema.CallToolResult.Capabilities a client may support.Provides a standardized way for servers to request additional information from users through the client during interactions.Marker record indicating support for form-based elicitation mode.Marker record indicating support for URL-based elicitation mode.Present if the client supports listing roots.Provides a standardized way for servers to request LLM sampling ("completions" or "generations") from language models via clients.A reference to a prompt or resource that can be used as input for completion requests.A request from the client to the server, to ask for completion options.The argument's information for completion requests.Additional, optional context for completions.The server's response to a completion/complete requestA polymorphic content value that can appear in messages and tool results.A request from the server to sample an LLM via the client.The client's response to a sampling/create_message request from the server.A request from the server to elicit additional information from the user via the client, usingformmode.A request from the server to elicit additional information from the user, either through the client or out-of-band.The client's response to an elicitation request.A request from the server to elicit additional information from the user out of band, usingurlmode.The contents of a resource, embedded into a prompt or tool call result.An option in a titled enum schema, with a machine-readable value and a human-readable display label.Used by the client to get a prompt provided by the server.The server's response to a prompts/get request from the client.Represents an icon that can be displayed in a user interface.Base interface with name (identifier) and title (display name) properties.An image provided to or from an LLM.Describes the name and version of an MCP implementation, with an optional title for UI representation.This request is sent from the client to the server when it first connects, asking it to begin initialization.After receiving an initialize request from the client, the server sends this response.A notification which does not expect a response.A request that expects a response.A response to a request (successful, or error).A response to a request that indicates an error occurred.Deprecated.Deprecated.Deprecated.UseMcpSchema.TitledSingleSelectEnumSchemainsteadDeprecated.The server's response to a prompts/list request from the client.The server's response to a resources/list request from the client.The server's response to a resources/templates/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.Severity levels for MCP log messages, ordered from least to most severe.The Model Context Protocol (MCP) provides a standardized way for servers to send structured log messages to clients.Base interface for MCP objects that include optional metadata in the `_meta` field.Hints to use for model selection.The server's preferences for model selection, requested of the client during sampling.Schema for a numeric field in a form-based elicitation request, supporting both"number"(floating-point) and"integer"types.The Model Context Protocol (MCP) supports optional progress tracking for long-running operations through notification messages.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.Identifies a prompt for completion requests.Sent from the client to the server, to read a specific resource URI.The server's response to a resources/read request from the client.A known resource that the server is capable of reading.A common interface for resource content, which includes metadata about the resource such as its URI, name, description, MIME type, size, and annotations.The contents of a specific resource or sub-resource.A known resource that the server is capable of reading.Resource templates allow servers to expose parameterized resources using URIRepresents a root directory or file that the server can operate on.Describes a message issued to or received from an LLM API.Capabilities that a server may support.Present if the server supports argument autocompletion suggestions.Present if the server supports sending log messages to the client.Present if the server offers any prompt templates.Present if the server offers any resources to read.Present if the server offers any tools to call.Schema for a text input field in a form-based elicitation request.Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.Text provided to or from an LLM.Text contents of a resource.Schema for multiple-selection enumeration with display titles for each option.The items schema forMcpSchema.TitledMultiSelectEnumSchema, describing the allowed enum options with display labels.Schema for single-selection enumeration with display titles for each option.Represents a tool that the server provides.Additional properties describing a Tool to clients.Sent from the client to request cancellation of resources/updated notifications from the server.Schema for multiple-selection enumeration without display titles for options.The items schema forMcpSchema.UntitledMultiSelectEnumSchema, describing the allowed enum values.Schema for single-selection enumeration without display titles for options.Represents a Model Context Protocol (MCP) session on the server side.Factory for creating server sessions which delegate to a provided 1:1 transport with a connected client.Marker interface for the server-side MCP transport.The core building block providing the server-side MCP transport.Represents a Model Context Protocol (MCP) session that handles communication between clients and the server.Representation of a Streamable HTTP server session that keeps track of mapping server-initiated requests to the client and mapping arriving responses.Factory for new Streamable HTTP MCP sessions.Request handler for the initialization request.Composite holding theMcpStreamableServerSessionand the initialization resultAn individual SSE stream within a Streamable HTTP context.Streamable HTTP server transport representing an individual SSE stream.Defines the asynchronous transport layer for the Model Context Protocol (MCP).An abstraction of the session as perceived from the MCP transport layer.A representation of a stream at the transport layer of the MCP protocol. -
Classes in io.modelcontextprotocol.spec used by io.modelcontextprotocol.utilClassDescriptionThe server's response to a tools/call request from the client.Represents a tool that the server provides.Represents a Model Context Protocol (MCP) session that handles communication between clients and the server.
Mapinstead.