MCP Client as Agent Strategy Plugin with Computer Using Agent (UI-TARS-SDK) support.
Important
Dify is not MCP Server but MCP Host.

Each MCP client (ReAct Agent) node can connect MCP servers.
Tool,Resource,Promptlists are converted into Dify Tools.- Your selected LLM can see their
name,description,argument type - The LLM calls Tools based on the ReAct loop (Reason → Act → Observe).
Note
Most of the code in this repository contains the following files.
https://github.com/langgenius/dify-official-plugins/tree/main/agent-strategies/cot_agent
- Copied
ReAct.pyand renamed file asmcpReAct.py - Added
config_jsonGUI input field by editingmcpReAct.yamlandclass mcpReActParams()
- New 12 functions for MCP
__init__()for initializingAsyncExitStackandevent loop- Some codes in
_handle_invoke_action()for MCP - MCP setup and cleanup in
_invoke()