Z User
phase7: MCP stdio smoke test (handshake + tools/list + get_roots 6:74) — 4/4 tests PASS
54a6341 Download node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/validation/index.js
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js
-
curl -L -o index.js https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/validation/index.js
1.05 kB
| ; | |
| /** | |
| * JSON Schema validation | |
| * | |
| * This module provides configurable JSON Schema validation for the MCP SDK. | |
| * Choose a validator based on your runtime environment: | |
| * | |
| * - AjvJsonSchemaValidator: Best for Node.js (default, fastest) | |
| * Import from: @modelcontextprotocol/sdk/validation/ajv | |
| * Requires peer dependencies: ajv, ajv-formats | |
| * | |
| * - CfWorkerJsonSchemaValidator: Best for edge runtimes | |
| * Import from: @modelcontextprotocol/sdk/validation/cfworker | |
| * Requires peer dependency: @cfworker/json-schema | |
| * | |
| * @example | |
| * ```typescript | |
| * // For Node.js with AJV | |
| * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; | |
| * const validator = new AjvJsonSchemaValidator(); | |
| * | |
| * // For Cloudflare Workers | |
| * import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker'; | |
| * const validator = new CfWorkerJsonSchemaValidator(); | |
| * ``` | |
| * | |
| * @module validation | |
| */ | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| //# sourceMappingURL=index.js.map |