View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/mcp_use/adapters/base.py
BaseAdapter
method
create_tools
Create tools from an MCPClient instance.This is the recommended way to create tools from an MCPClient, as it handles
session creation and connector extraction automatically.Example:ReturnsThe MCPClient to extract tools from.
SignatureA list of tools in the target framework’s format.
method
load_tools_for_connector
Dynamically load tools for a specific connector.ParametersReturnsThe connector to load tools for.
SignatureThe list of tools that were loaded in the target framework’s format.