接口 | 说明 |
---|---|
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.BaseMetadata |
Base interface for metadata with name (identifier) and title (display name)
properties.
|
McpSchema.CompleteReference | |
McpSchema.Content | |
McpSchema.JSONRPCMessage | |
McpSchema.Notification | |
McpSchema.Request | |
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 | |
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 |
类 | 说明 |
---|---|
DefaultJsonSchemaValidator |
Default implementation of the
JsonSchemaValidator interface. |
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 | |
McpClientSession |
Default implementation of the MCP (Model Context Protocol) session that manages
bidirectional JSON-RPC communication between clients and servers.
|
McpClientSession.MethodNotFoundError | |
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 |
Clients can implement additional features to enrich connected MCP servers with
additional capabilities.
|
McpSchema.ClientCapabilities.Builder | |
McpSchema.ClientCapabilities.Elicitation | |
McpSchema.ClientCapabilities.RootCapabilities |
Roots define the boundaries of where servers can operate within the filesystem,
allowing them to understand which directories and files they have access to.
|
McpSchema.ClientCapabilities.Sampling |
Provides a standardized way for servers to request LLM
sampling ("completions" or "generations") from language
models via clients.
|
McpSchema.CompleteRequest | |
McpSchema.CompleteRequest.CompleteArgument | |
McpSchema.CompleteRequest.CompleteContext | |
McpSchema.CompleteResult | |
McpSchema.CompleteResult.CompleteCompletion | |
McpSchema.CreateMessageRequest | |
McpSchema.CreateMessageRequest.Builder | |
McpSchema.CreateMessageResult | |
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 | |
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 | |
McpSchema.Implementation | |
McpSchema.InitializeRequest | |
McpSchema.InitializeResult | |
McpSchema.JSONRPCNotification | |
McpSchema.JSONRPCRequest | |
McpSchema.JSONRPCResponse | |
McpSchema.JSONRPCResponse.JSONRPCError | |
McpSchema.JsonSchema | |
McpSchema.ListPromptsResult |
The server's response to a prompts/list request from the client.
|
McpSchema.ListResourcesResult | |
McpSchema.ListResourceTemplatesResult | |
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 | |
McpSchema.ModelPreferences | |
McpSchema.ModelPreferences.Builder | |
McpSchema.PaginatedRequest | |
McpSchema.PaginatedResult | |
McpSchema.ProgressNotification | |
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 | |
McpSchema.ReadResourceResult | |
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
templates.
|
McpSchema.Root |
Represents a root directory or file that the server can operate on.
|
McpSchema.SamplingMessage | |
McpSchema.ServerCapabilities | |
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 | |
McpSchema.ServerCapabilities.ToolCapabilities | |
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 | |
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 | |
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 | |
McpTransportSessionNotFoundException |
Exception that signifies that the server does not recognize the connecting client via
the presented transport session identifier.
|