Package dev.langchain4j.agentic.mcp
package dev.langchain4j.agentic.mcp
-
ClassDescriptionProvides type-safe factory methods to create MCP client agent builders.Implemented by every MCP client agent, created with
McpAgentor declared with the@McpClientAgentannotation: gives access to the MCP tool bound by the agent.Thrown when the MCP tool wrapped by an MCP client agent cannot be resolved, because the MCP client cannot be created or the tools of the MCP server cannot be listed.