Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/adapters/base.py
BaseAdapter
from mcp_use.agents.adapters.base import BaseAdapter
method create_prompts
Create prompts from the MCPClient instance.This handles session creation and connector extraction automatically.
The created prompts are stored in self.prompts.ParametersReturnsMCP client instance
SignatureA list of prompts in the target framework’s format.
def create_prompts(client: mcp_use.client.client.MCPClient):
method create_resources
Create resources from the MCPClient instance.This handles session creation and connector extraction automatically.
The created resources are stored in self.resources.ParametersReturnsMCP client instance
SignatureA list of resources in the target framework’s format.
def create_resources(client: mcp_use.client.client.MCPClient):
method create_tools
Create tools from the MCPClient instance.This handles session creation and connector extraction automatically.
The created tools are stored in self.tools.ParametersReturnsMCP client instance
SignatureA list of tools in the target framework’s format.
def create_tools(client: mcp_use.client.client.MCPClient):
method load_prompts_for_connector
Dynamically load prompts for a specific connector.ParametersReturnsThe connector to load prompts for.
SignatureThe list of prompts that were loaded in the target framework’s format.
def load_prompts_for_connector(connector: mcp_use.client.connectors.base.BaseConnector):
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.
def load_tools_for_connector(connector: mcp_use.client.connectors.base.BaseConnector):