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

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

shimsNode

Variables

CORS_IS_POSSIBLE

const CORS_IS_POSSIBLE: false = false

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

Whether fetch() may throw TypeError due to CORS. CORS is a browser-only concept — in Node.js, a TypeError from fetch is always a real network/configuration error (DNS resolution, connection refused, invalid URL), never a CORS error.

References

DefaultJsonSchemaValidator

Renames and re-exports AjvJsonSchemaValidator