An MCP host is the user-facing application that manages MCP clients and decides when to invoke tools provided by MCP servers. In a DSPy agent, the host discovers server tools and makes them available to a ReAct loop. section 9.6.1 section 9.6.3
Figure 9.5 During initialization, the agent connects to the set of MCP servers that may be used by the host, creating a pool of MCP clients to communicate with them. Whenever the agent chooses to execute an MCP-based tool, the appropriate MCP client communicates with its server, passing the necessary arguments and collecting the tool’s output.
Shows the host’s flow: initialize connections to MCP servers, then route a selected tool call through the appropriate client. section 9.6.1
A DSPy-based host connects to a server and:
- Discovers tools and their names, descriptions, and parameter schemas at runtime. section 9.6.3
- Converts discovered tools into DSPy tools for a ReAct agent; selected tools execute in the server process. section 9.6.3
Wix support agent
A DSPy ReAct host can use MCP tools to search Wix knowledge-base articles and read an article returned by the search. section 9.6.3
