MCP client for consuming external tool servers.
This module delegates to Raxol.MCP.Client. Use Raxol.MCP.Client
directly for new code.
Summary
Functions
Call a tool. Delegates to Raxol.MCP.Client.call_tool/3.
List tools. Delegates to Raxol.MCP.Client.list_tools/1.
Parse a namespaced tool name. Delegates to Raxol.MCP.Client.parse_tool_name/1.
Start an MCP client. Delegates to Raxol.MCP.Client.start_link/1.
Get client status. Delegates to Raxol.MCP.Client.status/1.
Stop the client. Delegates to Raxol.MCP.Client.stop/1.
Build a namespaced tool name. Delegates to Raxol.MCP.Client.tool_name/2.
Types
@type call_result() :: Raxol.MCP.Client.call_result()
@type tool() :: Raxol.MCP.Client.tool()
Functions
@spec call_tool(GenServer.server(), String.t(), map()) :: {:ok, call_result()} | {:error, term()}
Call a tool. Delegates to Raxol.MCP.Client.call_tool/3.
@spec list_tools(GenServer.server()) :: {:ok, [tool()]} | {:error, term()}
List tools. Delegates to Raxol.MCP.Client.list_tools/1.
Parse a namespaced tool name. Delegates to Raxol.MCP.Client.parse_tool_name/1.
@spec start_link(keyword()) :: GenServer.on_start()
Start an MCP client. Delegates to Raxol.MCP.Client.start_link/1.
@spec status(GenServer.server()) :: map()
Get client status. Delegates to Raxol.MCP.Client.status/1.
@spec stop(GenServer.server()) :: :ok
Stop the client. Delegates to Raxol.MCP.Client.stop/1.
Build a namespaced tool name. Delegates to Raxol.MCP.Client.tool_name/2.