We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e5d6db commit edcfbb2Copy full SHA for edcfbb2
src/client/index.ts
@@ -38,7 +38,7 @@ import {
38
ErrorCode,
39
McpError
40
} from '../types.js';
41
-import { Validator } from '@cfworker/json-schema';
+import { Validator, Schema } from '@cfworker/json-schema';
42
43
export type ClientOptions = ProtocolOptions & {
44
/**
@@ -377,7 +377,7 @@ export class Client<
377
// If the tool has an outputSchema, create and cache the validator
378
if (tool.outputSchema) {
379
try {
380
- const validator = new Validator(tool.outputSchema as any, '2020-12');
+ const validator = new Validator(tool.outputSchema as Schema, '2020-12');
381
this._cachedToolOutputValidators.set(tool.name, validator);
382
} catch {
383
// Ignore schema compilation errors
0 commit comments