client

fun client(mcpClient: Client, mcpToolParser: McpToolDescriptorParser = DefaultMcpToolDescriptorParser)(source)

Registers tools from an existing MCP client into the tool registry.

This method retrieves tools from the given MCP client, parses their definitions using the provided or default MCP tool descriptor parser, and adds them to the tool registry.

Parameters

mcpClient

The MCP client connected to an MCP server, providing access to tools.

mcpToolParser

The parser used to convert raw tool information into standardized tool descriptors. Defaults to the standard parser implementation.