mcpServers config with multiple entries and Client.connect() returns a MultiServerClient — every server’s tools, resources, and prompts behind one interface, namespaced by server name:
This page is under construction. The outline below sketches what it will cover.
- Namespacing rules — tools and prompts become
${serverName}_${name}; resource display names are prefixed but URIs are never altered. - Routing — namespaced calls dispatch to exactly one server; resource reads route by a URI-to-server map built from listings, with a fallback scan.
- Per-server auth and shared handlers — each entry accepts its own
auth;log/sampling/elicitationhandlers are registered on every sub-client. - Connect semantics — parallel connect and close; if any server fails to connect, successful connections are torn down and the error is re-thrown (no partial state).