| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server | |
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
McpSchema.ClientCapabilities |
McpSyncClient.getClientCapabilities()
Get the client capabilities that define the supported features and functionality.
|
McpSchema.ClientCapabilities |
McpAsyncClient.getClientCapabilities()
Get the client capabilities that define the supported features and functionality.
|
| Modifier and Type | Method and Description |
|---|---|
McpClient.SyncSpec |
McpClient.SyncSpec.capabilities(McpSchema.ClientCapabilities capabilities)
Sets the client capabilities that will be advertised to the server during
connection initialization.
|
McpClient.AsyncSpec |
McpClient.AsyncSpec.capabilities(McpSchema.ClientCapabilities capabilities)
Sets the client capabilities that will be advertised to the server during
connection initialization.
|
| Modifier and Type | Method and Description |
|---|---|
McpSchema.ClientCapabilities |
McpAsyncServerExchange.getClientCapabilities()
Get the client capabilities that define the supported features and functionality.
|
McpSchema.ClientCapabilities |
McpSyncServerExchange.getClientCapabilities()
Get the client capabilities that define the supported features and functionality.
|
| Constructor and Description |
|---|
McpAsyncServerExchange(McpSession session,
McpSchema.ClientCapabilities clientCapabilities,
McpSchema.Implementation clientInfo)
|
McpAsyncServerExchange(String sessionId,
McpLoggableSession session,
McpSchema.ClientCapabilities clientCapabilities,
McpSchema.Implementation clientInfo,
McpTransportContext transportContext)
Create a new asynchronous exchange with the client.
|
| Modifier and Type | Method and Description |
|---|---|
McpSchema.ClientCapabilities |
McpSchema.ClientCapabilities.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
void |
McpServerSession.init(McpSchema.ClientCapabilities clientCapabilities,
McpSchema.Implementation clientInfo)
Called upon successful initialization sequence between the client and the server
with the client capabilities and information.
|
| Constructor and Description |
|---|
InitializeRequest(String protocolVersion,
McpSchema.ClientCapabilities capabilities,
McpSchema.Implementation clientInfo) |
McpStreamableServerSession(String id,
McpSchema.ClientCapabilities clientCapabilities,
McpSchema.Implementation clientInfo,
Duration requestTimeout,
Map<String,McpRequestHandler<?>> requestHandlers,
Map<String,McpNotificationHandler> notificationHandlers)
Create an instance of the streamable session.
|
Copyright © 2025. All rights reserved.