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
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.
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.
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.
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.
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.