| 接口 | 说明 |
|---|---|
| HttpHeaders |
Names of HTTP headers in use by MCP HTTP transports.
|
| JsonSchemaValidator |
Interface for validating structured content against a JSON schema.
|
| McpClientSession.NotificationHandler |
Functional interface for handling incoming JSON-RPC notifications.
|
| McpClientSession.RequestHandler<T> |
Functional interface for handling incoming JSON-RPC requests.
|
| McpClientTransport |
Interface for the client side of the
McpTransport. |
| McpLoggableSession |
An
McpSession which is capable of processing logging notifications and keeping
track of a min logging level. |
| McpSchema.Annotated |
Base for objects that include optional annotations for the client.
|
| McpSchema.CompleteReference |
permits PromptReference, ResourceReference
|
| McpSchema.Content |
permits TextContent, ImageContent, AudioContent, EmbeddedResource, ResourceLink
|
| McpSchema.Identifier |
Base interface with name (identifier) and title (display name) properties.
|
| McpSchema.JSONRPCMessage |
permits JSONRPCRequest, JSONRPCNotification, JSONRPCResponse
|
| McpSchema.Meta |
Base interface for MCP objects that include optional metadata in the `_meta` field.
|
| McpSchema.Notification |
permits ProgressNotification, LoggingMessageNotification, ResourcesUpdatedNotification
|
| McpSchema.Request |
permits InitializeRequest, CallToolRequest, CreateMessageRequest, ElicitRequest, CompleteRequest,
GetPromptRequest, ReadResourceRequest, SubscribeRequest, UnsubscribeRequest, PaginatedRequest
|
| McpSchema.ResourceContent |
A common interface for resource content, which includes metadata about the resource
such as its URI, name, description, MIME type, size, and annotations.
|
| McpSchema.ResourceContents |
The contents of a specific resource or sub-resource.
|
| McpSchema.Result |
permits InitializeResult, ListResourcesResult,
ListResourceTemplatesResult, ReadResourceResult, ListPromptsResult, GetPromptResult, ListToolsResult,
CallToolResult, CreateMessageResult, ElicitResult, CompleteResult, ListRootsResult
|
| McpServerSession.Factory |
Factory for creating server sessions which delegate to a provided 1:1 transport
with a connected client.
|
| McpServerSession.InitNotificationHandler |
Notification handler for the initialization notification from the client.
|
| McpServerSession.InitRequestHandler | 已过时 |
| McpServerSession.NotificationHandler | 已过时 |
| McpServerSession.RequestHandler<T> | 已过时 |
| McpServerTransport |
Marker interface for the server-side MCP transport.
|
| McpServerTransportProvider |
Classic implementation of
McpServerTransportProviderBase for a single outgoing
stream in bidirectional communication (STDIO and the legacy HTTP SSE). |
| McpServerTransportProviderBase |
The core building block providing the server-side MCP transport.
|
| McpSession |
Represents a Model Context Protocol (MCP) session that handles communication between
clients and the server.
|
| McpStatelessServerTransport | |
| McpStreamableServerSession.Factory |
Factory for new Streamable HTTP MCP sessions.
|
| McpStreamableServerSession.InitRequestHandler |
Request handler for the initialization request.
|
| McpStreamableServerTransport |
Streamable HTTP server transport representing an individual SSE stream.
|
| McpStreamableServerTransportProvider |
The core building block providing the server-side MCP transport for Streamable HTTP
servers.
|
| McpTransport |
Defines the asynchronous transport layer for the Model Context Protocol (MCP).
|
| McpTransportSession<CONNECTION> |
An abstraction of the session as perceived from the MCP transport layer.
|
| McpTransportStream<CONNECTION> |
A representation of a stream at the transport layer of the MCP protocol.
|
| ProtocolVersions |
| 类 | 说明 |
|---|---|
| ClosedMcpTransportSession<CONNECTION> |
Represents a closed MCP session, which may not be reused.
|
| DefaultMcpStreamableServerSessionFactory |
A default implementation of
McpStreamableServerSession.Factory. |
| DefaultMcpTransportSession |
Default implementation of
McpTransportSession which manages the open
connections using tye Disposable type and allows to perform clean up using the
Disposable.dispose() method. |
| DefaultMcpTransportStream<CONNECTION> |
An implementation of
McpTransportStream using Project Reactor types. |
| JsonSchemaValidator.ValidationResponse |
Represents the result of a validation operation.
|
| McpClientSession |
Default implementation of the MCP (Model Context Protocol) session that manages
bidirectional JSON-RPC communication between clients and servers.
|
| McpClientSession.MethodNotFoundError | |
| McpError.Builder | |
| McpSchema |
Based on the JSON-RPC 2.0
specification and the Model
Context Protocol Schema.
|
| McpSchema.Annotations |
Optional annotations for the client.
|
| McpSchema.AudioContent |
Audio provided to or from an LLM.
|
| McpSchema.BlobResourceContents |
Binary contents of a resource.
|
| McpSchema.CallToolRequest |
Used by the client to call a tool provided by the server.
|
| McpSchema.CallToolRequest.Builder | |
| McpSchema.CallToolResult |
The server's response to a tools/call request from the client.
|
| McpSchema.CallToolResult.Builder |
Builder for
McpSchema.CallToolResult. |
| McpSchema.ClientCapabilities |
Capabilities a client may support.
|
| McpSchema.ClientCapabilities.Builder | |
| McpSchema.ClientCapabilities.Elicitation |
Provides a standardized way for servers to request additional information from
users through the client during interactions.
|
| McpSchema.ClientCapabilities.Elicitation.Form |
Marker record indicating support for form-based elicitation mode.
|
| McpSchema.ClientCapabilities.Elicitation.Url |
Marker record indicating support for URL-based elicitation mode.
|
| McpSchema.ClientCapabilities.RootCapabilities |
Present if the client supports listing roots.
|
| McpSchema.ClientCapabilities.Sampling |
Provides a standardized way for servers to request LLM sampling ("completions"
or "generations") from language models via clients.
|
| McpSchema.CompleteRequest |
A request from the client to the server, to ask for completion options.
|
| McpSchema.CompleteRequest.CompleteArgument |
The argument's information for completion requests.
|
| McpSchema.CompleteRequest.CompleteContext |
Additional, optional context for completions.
|
| McpSchema.CompleteResult |
The server's response to a completion/complete request.
|
| McpSchema.CompleteResult.CompleteCompletion |
The server's response to a completion/complete request
|
| McpSchema.CreateMessageRequest |
A request from the server to sample an LLM via the client.
|
| McpSchema.CreateMessageRequest.Builder | |
| McpSchema.CreateMessageResult |
The client's response to a sampling/create_message request from the server.
|
| McpSchema.CreateMessageResult.Builder | |
| McpSchema.ElicitRequest |
A request from the server to elicit additional information from the user via the
client.
|
| McpSchema.ElicitRequest.Builder | |
| McpSchema.ElicitResult |
The client's response to an elicitation request.
|
| McpSchema.ElicitResult.Builder | |
| McpSchema.EmbeddedResource |
The contents of a resource, embedded into a prompt or tool call result.
|
| McpSchema.ErrorCodes |
Standard error codes used in MCP JSON-RPC responses.
|
| McpSchema.GetPromptRequest |
Used by the client to get a prompt provided by the server.
|
| McpSchema.GetPromptResult |
The server's response to a prompts/get request from the client.
|
| McpSchema.ImageContent |
An image provided to or from an LLM.
|
| McpSchema.Implementation |
Describes the name and version of an MCP implementation, with an optional title for
UI representation.
|
| McpSchema.InitializeRequest |
This request is sent from the client to the server when it first connects, asking
it to begin initialization.
|
| McpSchema.InitializeResult |
After receiving an initialize request from the client, the server sends this
response.
|
| McpSchema.JSONRPCNotification |
A notification which does not expect a response.
|
| McpSchema.JSONRPCRequest |
A request that expects a response.
|
| McpSchema.JSONRPCResponse |
A response to a request (successful, or error).
|
| McpSchema.JSONRPCResponse.JSONRPCError |
A response to a request that indicates an error occurred.
|
| McpSchema.JsonSchema |
A JSON Schema object that describes the expected structure of arguments or output.
|
| McpSchema.ListPromptsResult |
The server's response to a prompts/list request from the client.
|
| McpSchema.ListResourcesResult |
The server's response to a resources/list request from the client.
|
| McpSchema.ListResourceTemplatesResult |
The server's response to a resources/templates/list request from the client.
|
| McpSchema.ListRootsResult |
The client's response to a roots/list request from the server.
|
| McpSchema.ListToolsResult |
The server's response to a tools/list request from the client.
|
| McpSchema.LoggingMessageNotification |
The Model Context Protocol (MCP) provides a standardized way for servers to send
structured log messages to clients.
|
| McpSchema.LoggingMessageNotification.Builder | |
| McpSchema.ModelHint |
Hints to use for model selection.
|
| McpSchema.ModelPreferences |
The server's preferences for model selection, requested of the client during
sampling.
|
| McpSchema.ModelPreferences.Builder | |
| McpSchema.PaginatedRequest |
A request that supports pagination using cursors.
|
| McpSchema.PaginatedResult |
An opaque token representing the pagination position after the last returned
result.
|
| McpSchema.ProgressNotification |
The Model Context Protocol (MCP) supports optional progress tracking for
long-running operations through notification messages.
|
| McpSchema.Prompt |
A prompt or prompt template that the server offers.
|
| McpSchema.PromptArgument |
Describes an argument that a prompt can accept.
|
| McpSchema.PromptMessage |
Describes a message returned as part of a prompt.
|
| McpSchema.PromptReference |
Identifies a prompt for completion requests.
|
| McpSchema.ReadResourceRequest |
Sent from the client to the server, to read a specific resource URI.
|
| McpSchema.ReadResourceResult |
The server's response to a resources/read request from the client.
|
| McpSchema.Resource |
A known resource that the server is capable of reading.
|
| McpSchema.Resource.Builder | |
| McpSchema.ResourceLink |
A known resource that the server is capable of reading.
|
| McpSchema.ResourceLink.Builder | |
| McpSchema.ResourceReference |
A reference to a resource or resource template definition for completion requests.
|
| McpSchema.ResourcesUpdatedNotification |
The Model Context Protocol (MCP) provides a standardized way for servers to send
resources update message to clients.
|
| McpSchema.ResourceTemplate |
Resource templates allow servers to expose parameterized resources using URI
|
| McpSchema.ResourceTemplate.Builder | |
| McpSchema.Root |
Represents a root directory or file that the server can operate on.
|
| McpSchema.SamplingMessage |
Describes a message issued to or received from an LLM API.
|
| McpSchema.ServerCapabilities |
Capabilities that a server may support.
|
| McpSchema.ServerCapabilities.Builder | |
| McpSchema.ServerCapabilities.CompletionCapabilities |
Present if the server supports argument autocompletion suggestions.
|
| McpSchema.ServerCapabilities.LoggingCapabilities |
Present if the server supports sending log messages to the client.
|
| McpSchema.ServerCapabilities.PromptCapabilities |
Present if the server offers any prompt templates.
|
| McpSchema.ServerCapabilities.ResourceCapabilities |
Present if the server offers any resources to read.
|
| McpSchema.ServerCapabilities.ToolCapabilities |
Present if the server offers any tools to call.
|
| McpSchema.SetLevelRequest |
A request from the client to the server, to enable or adjust logging.
|
| McpSchema.SubscribeRequest |
Sent from the client to request resources/updated notifications from the server
whenever a particular resource changes.
|
| McpSchema.TextContent |
Text provided to or from an LLM.
|
| McpSchema.TextResourceContents |
Text contents of a resource.
|
| McpSchema.Tool |
Represents a tool that the server provides.
|
| McpSchema.Tool.Builder | |
| McpSchema.ToolAnnotations |
Additional properties describing a Tool to clients.
|
| McpSchema.UnsubscribeRequest |
Sent from the client to request cancellation of resources/updated notifications
from the server.
|
| McpServerSession |
Represents a Model Context Protocol (MCP) session on the server side.
|
| McpServerSession.MethodNotFoundError | |
| McpStreamableServerSession |
Representation of a Streamable HTTP server session that keeps track of mapping
server-initiated requests to the client and mapping arriving responses.
|
| McpStreamableServerSession.McpStreamableServerSessionInit |
Composite holding the
McpStreamableServerSession and the initialization
result |
| McpStreamableServerSession.MethodNotFoundError | |
| MissingMcpTransportSession |
A
McpLoggableSession which represents a missing stream that would allow the
server to communicate with the client. |
| 枚举 | 说明 |
|---|---|
| McpSchema.CreateMessageRequest.ContextInclusionStrategy | |
| McpSchema.CreateMessageResult.StopReason | |
| McpSchema.ElicitResult.Action | |
| McpSchema.LoggingLevel | |
| McpSchema.Role |
| 异常错误 | 说明 |
|---|---|
| McpError | |
| McpTransportException |
Exception thrown when there is an issue with the transport layer of the Model Context
Protocol (MCP).
|
| McpTransportSessionClosedException |
Exception thrown when trying to use an
McpTransportSession that has been
closed. |
| McpTransportSessionNotFoundException |
Exception that signifies that the server does not recognize the connecting client via
the presented transport session identifier.
|