This is the documentation for the v2 beta — looking for the v1 documentation?
Skip to content

MCP TypeScript SDK (V2) / @modelcontextprotocol/client / shimsWorkerd

shimsWorkerd

Variables

CORS_IS_POSSIBLE

const CORS_IS_POSSIBLE: false = false

Defined in: packages/client/src/shimsWorkerd.ts:13

Whether fetch() may throw TypeError due to CORS. CORS is a browser-only concept — in Cloudflare Workers, a TypeError from fetch is always a real network/configuration error, never a CORS error.

References

DefaultJsonSchemaValidator

Renames and re-exports CfWorkerJsonSchemaValidator