接口 | 说明 |
---|---|
ClientMcpTransport | 已过时
This class will be removed in 0.9.0.
|
DefaultMcpSession.NotificationHandler |
Functional interface for handling incoming JSON-RPC notifications.
|
DefaultMcpSession.RequestHandler<T> |
Functional interface for handling incoming JSON-RPC requests.
|
McpClientSession.NotificationHandler |
Functional interface for handling incoming JSON-RPC notifications.
|
McpClientSession.RequestHandler<T> |
Functional interface for handling incoming JSON-RPC requests.
|
McpClientTransport |
Marker interface for the client-side MCP transport.
|
McpSchema.Annotated |
Base for objects that include optional annotations for the client.
|
McpSchema.CompleteRequest.PromptOrResourceReference | |
McpSchema.Content | |
McpSchema.JSONRPCMessage | |
McpSchema.Request | |
McpSchema.ResourceContents |
The contents of a specific resource or sub-resource.
|
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 |
Request handler for the initialization request.
|
McpServerSession.NotificationHandler |
A handler for client-initiated notifications.
|
McpServerSession.RequestHandler<T> |
A handler for client-initiated requests.
|
McpServerTransport |
Marker interface for the server-side MCP transport.
|
McpServerTransportProvider |
The core building block providing the server-side MCP transport.
|
McpSession |
Represents a Model Control Protocol (MCP) session that handles communication between
clients and the server.
|
McpTransport |
Defines the asynchronous transport layer for the Model Context Protocol (MCP).
|
ServerMcpTransport | 已过时
This class will be removed in 0.9.0.
|
枚举 | 说明 |
---|---|
McpSchema.CreateMessageRequest.ContextInclusionStrategy | |
McpSchema.CreateMessageResult.StopReason | |
McpSchema.LoggingLevel | |
McpSchema.Role |
异常错误 | 说明 |
---|---|
McpError |