MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / ThrowingValidator

Class ThrowingValidator

test/server/index.test.ts:857–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856test('should wrap unexpected validator errors during elicitInput', async () => {
857 class ThrowingValidator implements jsonSchemaValidator {
858 getValidator<T>(_schema: JsonSchemaType): JsonSchemaValidator<T> {
859 throw new Error('boom - validator exploded');
860 }
861 }
862
863 const server = new Server(
864 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…