| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server | |
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
McpSchema.Implementation |
McpSyncClient.getClientInfo()
Get the client implementation information.
|
McpSchema.Implementation |
McpAsyncClient.getClientInfo()
Get the client implementation information.
|
McpSchema.Implementation |
McpSyncClient.getServerInfo()
Get the server implementation information.
|
McpSchema.Implementation |
McpAsyncClient.getServerInfo()
Get the server implementation information.
|
| Modifier and Type | Method and Description |
|---|---|
McpClient.SyncSpec |
McpClient.SyncSpec.clientInfo(McpSchema.Implementation clientInfo)
Sets the client implementation information that will be shared with the server
during connection initialization.
|
McpClient.AsyncSpec |
McpClient.AsyncSpec.clientInfo(McpSchema.Implementation clientInfo)
Sets the client implementation information that will be shared with the server
during connection initialization.
|
| Modifier and Type | Method and Description |
|---|---|
McpSchema.Implementation |
McpAsyncServerExchange.getClientInfo()
Get the client implementation information.
|
McpSchema.Implementation |
McpSyncServerExchange.getClientInfo()
Get the client implementation information.
|
McpSchema.Implementation |
McpAsyncServer.getServerInfo()
Get the server implementation information.
|
McpSchema.Implementation |
McpSyncServer.getServerInfo()
Get the server implementation information.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification |
McpServer.AsyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer.SyncSpecification |
McpServer.SyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
| 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 |
|---|---|
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.