| 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 | Field and Description |
|---|---|
static McpSchema.Implementation |
McpServer.DEFAULT_SERVER_INFO |
| 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 |
McpStatelessAsyncServer.getServerInfo()
Get the server implementation information.
|
McpSchema.Implementation |
McpAsyncServer.getServerInfo()
Get the server implementation information.
|
McpSchema.Implementation |
McpStatelessSyncServer.getServerInfo()
Get the server implementation information.
|
McpSchema.Implementation |
McpSyncServer.getServerInfo()
Get the server implementation information.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
| 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) |
InitializeResult(String protocolVersion,
McpSchema.ServerCapabilities capabilities,
McpSchema.Implementation serverInfo,
String instructions) |
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.