How MCPAdapt works
mainMCPAdapt is designed around two main components to bridge the gap between the Model Context Protocol (MCP) and various agentic frameworks:
- Core Component: Manages the lifecycle of MCP servers in both synchronous and asynchronous contexts. This core logic is shared across all adapters.
- Framework-specific Adapters: Subclasses that transform MCP server tools into the specific Tool classes, functions, or signatures required by frameworks like Langchain, CrewAI, or Smolagents.
This architecture ensures consistent server management while allowing seamless integration with the unique requirements of different agentic frameworks.