| 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.
|
McpSchema.ClientCapabilities |
McpAsyncServer.getClientCapabilities()
Deprecated.
This will be removed in 0.9.0. Use
McpAsyncServerExchange.getClientCapabilities(). |
McpSchema.ClientCapabilities |
McpSyncServer.getClientCapabilities()
Deprecated.
This method will be removed in 0.9.0. Use
McpSyncServerExchange.getClientCapabilities(). |
| Constructor and Description |
|---|
McpAsyncServerExchange(McpServerSession session,
McpSchema.ClientCapabilities clientCapabilities,
McpSchema.Implementation clientInfo)
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.
|
Copyright © 2025. All rights reserved.