Uses of Record Class
dev.langchain4j.mcp.client.McpCallContext
Packages that use McpCallContext
Package
Description
-
Uses of McpCallContext in dev.langchain4j.mcp.client
Subinterfaces with type arguments of type McpCallContext in dev.langchain4j.mcp.clientModifier and TypeInterfaceDescriptioninterfaceA functional interface that supplies HTTP headers for MCP client requests based on the givenMcpCallContext.Methods in dev.langchain4j.mcp.client with parameters of type McpCallContextModifier and TypeMethodDescriptiondefault voidMcpClientListener.afterExecuteTool(McpCallContext context, ToolExecutionResult result, Map<String, Object> rawResult) Called after executing a tool if the execution was successful, or if it resulted in an application-level error (but not a protocol-level or communication error).default voidMcpClientListener.afterPromptGet(McpCallContext context, McpGetPromptResult result, Map<String, Object> rawResult) Called after getting a prompt.default voidMcpClientListener.afterResourceGet(McpCallContext context, McpReadResourceResult result, Map<String, Object> rawResult) Called after getting a resource.default voidMcpClientListener.beforeExecuteTool(McpCallContext context) Called before executing a tool.default voidMcpClientListener.beforePromptGet(McpCallContext context) Called before getting a prompt.default voidMcpClientListener.beforeResourceGet(McpCallContext context) Called before getting a resource.default voidMcpClientListener.onExecuteToolError(McpCallContext context, Throwable error) Called when a tool execution fails due to a protocol-level or communication error.default voidMcpClientListener.onPromptGetError(McpCallContext context, Throwable error) Called when getting a prompt fails.default voidMcpClientListener.onResourceGetError(McpCallContext context, Throwable error) Called when getting a resource fails. -
Uses of McpCallContext in dev.langchain4j.mcp.client.transport
Methods in dev.langchain4j.mcp.client.transport with parameters of type McpCallContextModifier and TypeMethodDescriptionvoidMcpTransport.executeOperationWithoutResponse(McpCallContext context) Sends a message that does not expect a response from the server - either a client-initiated notification or a response to a server-initiated request.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> McpTransport.executeOperationWithResponse(McpCallContext context) Executes an operation that expects a response from the server. -
Uses of McpCallContext in dev.langchain4j.mcp.client.transport.docker
Methods in dev.langchain4j.mcp.client.transport.docker with parameters of type McpCallContextModifier and TypeMethodDescriptionvoidDockerMcpTransport.executeOperationWithoutResponse(McpCallContext context) CompletableFuture<com.fasterxml.jackson.databind.JsonNode> DockerMcpTransport.executeOperationWithResponse(McpCallContext context) -
Uses of McpCallContext in dev.langchain4j.mcp.client.transport.http
Methods in dev.langchain4j.mcp.client.transport.http with parameters of type McpCallContextModifier and TypeMethodDescriptionvoidHttpMcpTransport.executeOperationWithoutResponse(McpCallContext context) Deprecated, for removal: This API element is subject to removal in a future version.voidStreamableHttpMcpTransport.executeOperationWithoutResponse(McpCallContext context) CompletableFuture<com.fasterxml.jackson.databind.JsonNode> HttpMcpTransport.executeOperationWithResponse(McpCallContext context) Deprecated, for removal: This API element is subject to removal in a future version.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> StreamableHttpMcpTransport.executeOperationWithResponse(McpCallContext context) -
Uses of McpCallContext in dev.langchain4j.mcp.client.transport.stdio
Methods in dev.langchain4j.mcp.client.transport.stdio with parameters of type McpCallContextModifier and TypeMethodDescriptionvoidStdioMcpTransport.executeOperationWithoutResponse(McpCallContext context) CompletableFuture<com.fasterxml.jackson.databind.JsonNode> StdioMcpTransport.executeOperationWithResponse(McpCallContext context) -
Uses of McpCallContext in dev.langchain4j.mcp.client.transport.websocket
Methods in dev.langchain4j.mcp.client.transport.websocket with parameters of type McpCallContextModifier and TypeMethodDescriptionvoidWebSocketMcpTransport.executeOperationWithoutResponse(McpCallContext context) CompletableFuture<com.fasterxml.jackson.databind.JsonNode> WebSocketMcpTransport.executeOperationWithResponse(McpCallContext context)