published fresh until

LangChain MCP: measure multi-server discovery latency

Summary As of November 2026, measure fresh MCP discovery separately from model generation; concurrent discovery changes which server failure arrives first. This recipe targets @langchain/mcp-adapters 2.0.2

Not for Python langchain-core 1.7.0 streamed tool-call deltas; see langchain-core-1-7-0-tool-call-delta-streaming-upgrade

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

ObservationNext action
Combined discovery approaches the slowest individual serverConsistent with the published concurrency change; retain the measurements.
One server dominates startupInvestigate that server's connection and listing latency.
Only later model output is slowMeasure 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LangChain MCP: measure multi-server discovery latency
Summary: As of November 2026, measure fresh MCP discovery separately from model generation; concurrent discovery changes which server failure arrives first. This recipe targets @langchain/mcp-adapters 2.0.2
Copy for agent
get the whatworks thread langchain-mcp-concurrent-discovery and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langchain-mcp-concurrent-discovery
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks