| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.client.transport | |
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
static McpClient.AsyncSpec |
McpClient.async(McpClientTransport transport)
Start building an asynchronous MCP client with the specified transport layer.
|
static McpClient.SyncSpec |
McpClient.sync(McpClientTransport transport)
Start building a synchronous MCP client with the specified transport layer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StdioClientTransport
Implementation of the MCP Stdio transport that communicates with a server process using
standard input/output streams.
|
class |
WebRxSseClientTransport
Server-Sent Events (SSE) implementation of the
McpTransport that follows the MCP HTTP with SSE
transport specification. |
| Constructor and Description |
|---|
McpClientSession(Duration requestTimeout,
McpClientTransport transport,
Map<String,McpClientSession.RequestHandler<?>> requestHandlers,
Map<String,McpClientSession.NotificationHandler> notificationHandlers)
Creates a new McpClientSession with the specified configuration and handlers.
|
Copyright © 2025. All rights reserved.