Lesson 12 of 12 · 6 min read
Composing Many MCP Servers in One Host
A host that connects to several MCP servers needs a layer between its agent loop and its clients, usually called a hub or aggregator. It owns one client per server and presents one tool list, and it solves four problems that appear only in composition. Name collisions: two servers each offer search, so the hub namespaces tools as server and tool and maps the model's choice back. Surface size: the union of every server's tools is more than the model can choose among well, so the hub shows a projection per task or a search step over the catalogue. Latency: calls to different servers in one turn run concurrently with a timeout per server, so one slow server cannot hold the turn. Failure isolation: a crashed or hanging server is contained to its own calls, restarted within a budget, and reported, while the other servers keep working. Each of these is host code, and each is measured: collisions caught at connect time, selection accuracy on a labelled set, turn latency against the slowest server, and the restart budget's exhaustion rate.
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal