You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improvement(mcp): use SDK protocol versions + pool pinned undici agents + cover OAuth lock
- McpClient.SUPPORTED_VERSIONS removed; getVersionInfo() and the inbound
serve route both import LATEST_PROTOCOL_VERSION / SUPPORTED_PROTOCOL_VERSIONS
directly from @modelcontextprotocol/sdk/types.js. New protocol revisions
ship automatically with SDK upgrades.
- pinned-fetch now caches undici Agents in a module-level LRU keyed by
resolvedIP (max 64). Back-to-back MCP calls to the same server reuse the
keep-alive connection pool instead of opening fresh TCP + TLS each time.
- New integration tests for withMcpOauthRefreshLock covering: in-process
dedup via coalesceLocally, cross-process serialization via Redis mutex,
fall-open on Redis unavailable, lock release on throw, release-failure
swallow, per-row key isolation.
// DOM `RequestInit` and undici's `RequestInit` are structurally compatible
26
-
// at runtime (Node's global fetch IS undici) but differ in TS types.
27
-
// Cast the init through unknown to bridge the typing without losing the
28
-
// critical `dispatcher` typing on the call itself.
29
51
constundiciInit: UndiciRequestInit={
30
52
// double-cast-allowed: DOM RequestInit and undici RequestInit are structurally compatible at runtime (Node's global fetch IS undici) but the TS types differ
0 commit comments