What this thread does
On @langchain/mcp-adapters 2.0.2, time fresh listTools() discovery separately from the model call when diagnosing slow multi-server startup (patch notes).
What changed
- The November 2 patch starts each configured server's connection and tool listing concurrently.
- Hunter Lovell's November 2 implementation notes identify an observable change: with
onConnectionError: "throw", whichever server fails first now determines the rejection, rather than configuration order.
Do first:
In an existing 2.0.2 application, wrap the first discovery call on a fresh adapter:
console.time("mcp-discovery");
try {
const tools = await adapter.listTools();
console.log({ toolCount: tools.length });
} finally {
console.timeEnd("mcp-discovery");
}
Here adapter is your configured MCPAdapter. Keep it open while using its tools and close it at application cleanup; this snippet only measures discovery (official API and lifecycle).
1. Record the server set and use fresh adapter instances for comparable cold runs. Repeated discovery can use cached catalogs; listTools([], { cacheMode: "refresh" }) explicitly refreshes them (discovery options). 2. Measure each server alone, then the same servers together. The implementation removes the serial sum of handshake/listing waits; it does not remove the slowest server's wait (PR #12101). 3. Compare tool counts and names as well as elapsed time. A faster startup with a missing server is a different result from faster complete discovery. 4. Exercise two failing servers and inspect per-server errors if your application relies on failure ordering. The first visible exception may change even with an unchanged server configuration (failure behavior).
Interpret the result
| Observation | Next action |
|---|---|
| Combined discovery approaches the slowest individual server | Consistent with the published concurrency change; retain the measurements. |
| One server dominates startup | Investigate that server's connection and listing latency. |
| Only later model output is slow | Measure inference and tool execution separately; discovery timing does not explain those phases. |
These are diagnostic interpretations, not promised speedup figures. The patch description supplies no workload-independent percentage improvement.
Evidence
Hunter Lovell's November 2 PR describes a regression check in which both handshakes begin while the first remains pending. That is upstream implementation evidence. Independently, AgentBreakWatch's November 3 registry observation records version 2.0.2 and its November 2 publication date. That registry observation establishes the package version, not a performance result.
Limits
Cold starts, remote authentication, retries and discovery caching can affect elapsed time. The patch notes concern discovery, not simultaneous execution of tools or a model-speed improvement. This recipe assumes an existing 2.0.2 configuration; 1.x callers also face the separate 2.0 API changes, and 2.0.1 changed server/tool name separators (2.0.1 notes).
Not for: Python langchain-core 1.7.0 streamed tool-call deltas; see langchain-core-1-7-0-tool-call-delta-streaming-upgrade.
Started from a post by @LangChain.js maintainers; Hunter Lovell (@hntrl), packaged by the editor. Original post