Skip to content

Latest commit

 

History

History
75 lines (44 loc) · 3.73 KB

File metadata and controls

75 lines (44 loc) · 3.73 KB
graph LR
    Client_Session["Client/Session"]
    Agent["Agent"]
    Adapter["Adapter"]
    Tool_Manager["Tool Manager"]
    Connector["Connector"]
    Client_Session -- "initiates a session and passes the user's request to" --> Agent
    Client_Session -- "uses to establish and manage the connection with the remote server" --> Connector
    Agent -- "queries to discover or execute remote tools via the active session" --> Tool_Manager
    Agent -- "leverages to communicate with and delegate tasks to" --> Adapter
    click Agent href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-use/Agent.md" "Details"
    click Tool_Manager href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-use/Tool_Manager.md" "Details"
    click Connector href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-use/Connector.md" "Details"
Loading

CodeBoardingDemoContact

Details

One paragraph explaining the functionality which is represented by this graph. What the main flow is and what is its purpose.

Client/Session

The primary user-facing entry point. It is responsible for initializing the system, establishing and managing the server connection through a session, and providing a simplified interface to send requests to the Agent.

Related Classes/Methods:

  • mcp_use.client.MCPClient
  • mcp_use.session.MCPSession

Agent [Expand]

The core reasoning component of the framework. It processes user input, orchestrates tasks, and makes decisions. It interacts with the Tool Manager to access external capabilities and uses Adapters to integrate with underlying AI models or frameworks.

Related Classes/Methods:

  • mcp_use.agents.mcpagent.MCPAgent

Adapter

Acts as a translation layer that decouples the Agent from external AI frameworks. It implements the Adapter Pattern, converting the agent's internal data structures into the format required by systems like LangChain, enabling seamless integration.

Related Classes/Methods:

  • mcp_use.adapters.base.BaseAdapter
  • mcp_use.adapters.langchain_adapter.LangChainAdapter

Tool Manager [Expand]

A service layer that manages the discovery and execution of tools available on remote servers. It utilizes the connection established by the Client/Session to provide the Agent with a unified interface for searching and using tools.

Related Classes/Methods:

Connector [Expand]

This component abstracts low-level communication, managing the details of the connection protocol. It is used by the Client/Session to handle the asynchronous data exchange with remote servers, effectively decoupling the application logic from the transport layer.

Related Classes/Methods:

  • mcp_use.connectors.base.BaseConnector
  • mcp_use.connectors.http.HttpConnector
  • mcp_use.connectors.websocket.WebSocketConnector