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

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

shimsBrowser

Variables

CORS_IS_POSSIBLE

const CORS_IS_POSSIBLE: true = true

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

Whether fetch() may throw TypeError due to CORS. Only true in browser contexts (including Web Workers / Service Workers). In Node.js and Cloudflare Workers, a TypeError from fetch is always a real network/configuration error.

References

DefaultJsonSchemaValidator

Renames and re-exports CfWorkerJsonSchemaValidator