Uses of Interface
dev.langchain4j.mcp.client.McpClient
Packages that use McpClient
Package
Description
-
Uses of McpClient in dev.langchain4j.mcp
Methods in dev.langchain4j.mcp with parameters of type McpClientModifier and TypeMethodDescriptionvoidMcpToolProvider.addMcpClient(McpClient client) Adds a new MCP client to the list of clients.McpToolProvider.Builder.mcpClients(McpClient... mcpClients) The list of MCP clients to use for retrieving tools.voidMcpToolProvider.removeMcpClient(McpClient client) Removes an MCP client from the list of clients.Method parameters in dev.langchain4j.mcp with type arguments of type McpClientModifier and TypeMethodDescriptionvoidMcpToolProvider.addFilter(BiPredicate<McpClient, ToolSpecification> filter) Adds a tools filter that will act in conjunction (AND) with the eventually existing ones.McpToolProvider.Builder.filter(BiPredicate<McpClient, ToolSpecification> mcpToolsFilter) The predicate to filter MCP provided tools.McpToolProvider.Builder.mcpClients(List<McpClient> mcpClients) The list of MCP clients to use for retrieving tools.protected ToolProviderResultMcpToolProvider.provideTools(ToolProviderRequest request, BiPredicate<McpClient, ToolSpecification> mcpToolsFilter) voidMcpToolProvider.setFilter(BiPredicate<McpClient, ToolSpecification> filter) Sets the tools filter overriding the eventually existing ones.voidMcpToolProvider.setToolNameMapper(BiFunction<McpClient, ToolSpecification, String> toolNameMapper) Sets the tool name mapper overriding the current one.voidMcpToolProvider.setToolSpecificationMapper(BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) Sets the tool specification mapper overriding the current one.McpToolProvider.Builder.toolNameMapper(BiFunction<McpClient, ToolSpecification, String> toolNameMapper) Defines a mapping function to customize the tool names as they are registered in the tool provider.McpToolProvider.Builder.toolSpecificationMapper(BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) Defines a mapping function to customize the tool specifications as they are registered in the tool provider.Constructors in dev.langchain4j.mcp with parameters of type McpClientModifierConstructorDescriptionMcpToolExecutor(McpClient mcpClient) McpToolExecutor(McpClient mcpClient, String fixedToolName) Constructor parameters in dev.langchain4j.mcp with type arguments of type McpClientModifierConstructorDescriptionprotectedMcpToolProvider(List<McpClient> mcpClients, boolean failIfOneServerFails, BiPredicate<McpClient, ToolSpecification> mcpToolsFilter, Function<ToolExecutor, ToolExecutor> toolWrapper, McpResourcesAsToolsPresenter resourcesAsToolsPresenter, BiFunction<McpClient, ToolSpecification, String> toolNameMapper, BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) protectedMcpToolProvider(List<McpClient> mcpClients, boolean failIfOneServerFails, BiPredicate<McpClient, ToolSpecification> mcpToolsFilter, Function<ToolExecutor, ToolExecutor> toolWrapper, McpResourcesAsToolsPresenter resourcesAsToolsPresenter, BiFunction<McpClient, ToolSpecification, String> toolNameMapper, BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) protectedMcpToolProvider(List<McpClient> mcpClients, boolean failIfOneServerFails, BiPredicate<McpClient, ToolSpecification> mcpToolsFilter, Function<ToolExecutor, ToolExecutor> toolWrapper, McpResourcesAsToolsPresenter resourcesAsToolsPresenter, BiFunction<McpClient, ToolSpecification, String> toolNameMapper, BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) -
Uses of McpClient in dev.langchain4j.mcp.client
Classes in dev.langchain4j.mcp.client that implement McpClient -
Uses of McpClient in dev.langchain4j.mcp.resourcesastools
Method parameters in dev.langchain4j.mcp.resourcesastools with type arguments of type McpClientModifier and TypeMethodDescriptionDefaultMcpResourcesAsToolsPresenter.createGetResourceExecutor(List<McpClient> mcpClients) McpResourcesAsToolsPresenter.createGetResourceExecutor(List<McpClient> mcpClients) Create an executor for the tool that gets a particular resource.DefaultMcpResourcesAsToolsPresenter.createListResourcesExecutor(List<McpClient> mcpClients) McpResourcesAsToolsPresenter.createListResourcesExecutor(List<McpClient> mcpClients) Create an executor for the tool that lists available resources.