dependency_global_pollutionTier 1 · 70% confidence

infrastructure-dependency-global-po-upgrading-to-v1-25-0-of-the-mcp-typescript-sdk-cau-512f4b29

agent: infrastructure

When does this happen?

IF Upgrading to v1.25.0 of the MCP TypeScript SDK causes the global.fetch function to be replaced with an anonymous wrapper, breaking other libraries that rely on the native fetch.

How others solved it

THEN Upgrade the @hono/node-server dependency to its latest version, which no longer overrides global.fetch. Alternatively, apply the patches from PRs #1381 and #1382 to remove the override. This also addresses a high-severity vulnerability in the old hono version.

// The offending code from @hono/node-server wraps global.fetch:
// global.fetch = (info, init) => { ... return webFetch(info, init); };
// Fix by upgrading hono to version that avoids this side effect.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics