Uses of Class
dev.langchain4j.mcp.protocol.McpClientMessage
Packages that use McpClientMessage
Package
Description
-
Uses of McpClientMessage in dev.langchain4j.mcp.client
Methods in dev.langchain4j.mcp.client that return McpClientMessageModifier and TypeMethodDescriptionMcpCallContext.message()Returns the value of themessagerecord component.Constructors in dev.langchain4j.mcp.client with parameters of type McpClientMessageModifierConstructorDescriptionMcpCallContext(@Nullable InvocationContext invocationContext, McpClientMessage message) McpCallContext(@Nullable InvocationContext invocationContext, McpClientMessage message, @Nullable Map<String, String> mcpParamHeaders) Creates an instance of aMcpCallContextrecord class. -
Uses of McpClientMessage in dev.langchain4j.mcp.client.transport
Methods in dev.langchain4j.mcp.client.transport with parameters of type McpClientMessageModifier and TypeMethodDescriptiondefault voidMcpTransport.executeOperationWithoutResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.default CompletableFuture<com.fasterxml.jackson.databind.JsonNode> McpTransport.executeOperationWithResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.implementMcpTransport.sendRequest(McpClientMessage)instead, which does not expose Jackson types.default voidMcpTransport.sendMessage(McpClientMessage request) Sends a message that does not expect a reply - in MCP terms a notification, or a response to a server-initiated request.default CompletableFuture<String> McpTransport.sendRequest(McpClientMessage request) Sends a JSON-RPC request and returns the server's response as unparsed JSON text. -
Uses of McpClientMessage in dev.langchain4j.mcp.client.transport.docker
Methods in dev.langchain4j.mcp.client.transport.docker with parameters of type McpClientMessageModifier and TypeMethodDescriptionvoidDockerMcpTransport.executeOperationWithoutResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useDockerMcpTransport.sendMessage(McpClientMessage)instead, which does not expose Jackson types.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> DockerMcpTransport.executeOperationWithResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useDockerMcpTransport.sendRequest(McpClientMessage)instead, which does not expose Jackson types.voidDockerMcpTransport.sendMessage(McpClientMessage operation) DockerMcpTransport.sendRequest(McpClientMessage operation) -
Uses of McpClientMessage in dev.langchain4j.mcp.client.transport.http
Methods in dev.langchain4j.mcp.client.transport.http with parameters of type McpClientMessageModifier and TypeMethodDescriptionvoidStreamableHttpMcpTransport.executeOperationWithoutResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useStreamableHttpMcpTransport.sendMessage(McpClientMessage)instead, which does not expose Jackson types.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> StreamableHttpMcpTransport.executeOperationWithResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useStreamableHttpMcpTransport.sendRequest(McpClientMessage)instead, which does not expose Jackson types.voidStreamableHttpMcpTransport.sendMessage(McpClientMessage operation) StreamableHttpMcpTransport.sendRequest(McpClientMessage operation) -
Uses of McpClientMessage in dev.langchain4j.mcp.client.transport.stdio
Methods in dev.langchain4j.mcp.client.transport.stdio with parameters of type McpClientMessageModifier and TypeMethodDescriptionvoidStdioMcpTransport.executeOperationWithoutResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useStdioMcpTransport.sendMessage(McpClientMessage)instead, which does not expose Jackson types.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> StdioMcpTransport.executeOperationWithResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useStdioMcpTransport.sendRequest(McpClientMessage)instead, which does not expose Jackson types.voidStdioMcpTransport.sendMessage(McpClientMessage operation) StdioMcpTransport.sendRequest(McpClientMessage operation) -
Uses of McpClientMessage in dev.langchain4j.mcp.client.transport.websocket
Methods in dev.langchain4j.mcp.client.transport.websocket with parameters of type McpClientMessageModifier and TypeMethodDescriptionvoidWebSocketMcpTransport.executeOperationWithoutResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useWebSocketMcpTransport.sendMessage(McpClientMessage)instead, which does not expose Jackson types.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> WebSocketMcpTransport.executeOperationWithResponse(McpClientMessage request) Deprecated, for removal: This API element is subject to removal in a future version.useWebSocketMcpTransport.sendRequest(McpClientMessage)instead, which does not expose Jackson types.voidWebSocketMcpTransport.sendMessage(McpClientMessage request) WebSocketMcpTransport.sendRequest(McpClientMessage request) -
Uses of McpClientMessage in dev.langchain4j.mcp.protocol
Subclasses of McpClientMessage in dev.langchain4j.mcp.protocolModifier and TypeClassDescriptionclassCorresponds to theCallToolRequesttype from the MCP schema.classCorresponds to theCancelledNotificationtype from the MCP schema.classCorresponds to theJSONRPCNotificationtype from the MCP schema.classCorresponds to theJSONRPCRequesttype from the MCP schema.classCorresponds to theJSONRPCResponsetype from the MCP schema.classCorresponds to theGetPromptRequesttype from the MCP schema.classCorresponds to theInitializedNotificationtype from the MCP schema.classCorresponds to theInitializeRequesttype from the MCP schema.classCorresponds to theListPromptsRequesttype from the MCP schema.classCorresponds to theListResourcesRequesttype from the MCP schema.classCorresponds to theListResourceTemplatesRequesttype from the MCP schema.classCorresponds to theListToolsRequesttype from the MCP schema.classCorresponds to thePingRequesttype from the MCP schema.classCorresponds to theEmptyResulttype from the MCP schema (response to aPingRequest).classCorresponds to theReadResourceRequesttype from the MCP schema.classCorresponds to theRootsListChangedNotificationtype from the MCP schema.classCorresponds to theListRootsResulttype from the MCP schema.classCorresponds to theServerDiscoverRequesttype from the MCP schema.classOnly used with the legacy MCP protocol (versions up to 2025-11-25).classCorresponds to theSubscriptionsListenRequesttype from the MCP schema.classOnly used with the legacy MCP protocol (versions up to 2025-11-25).
McpTransport.sendMessage(McpClientMessage)instead, which is named for what MCP calls it.