Skip to content

Commit ccd9ec3

Browse files
committed
fix: js docs
1 parent ff7697e commit ccd9ec3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/client/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,20 @@ export type ClientOptions = ProtocolOptions & {
5353
* The validator is used to validate structured content returned by tools
5454
* against their declared output schemas.
5555
*
56-
* @default AjvJsonSchemaValidator (auto-configured with sensible defaults)
56+
* @default AjvJsonSchemaValidator
5757
*
5858
* @example
5959
* ```typescript
60-
* // Use default AJV validator (recommended, no configuration needed)
61-
* import { Client } from '@modelcontextprotocol/sdk';
60+
* // ajv
6261
* const client = new Client(
6362
* { name: 'my-client', version: '1.0.0' },
6463
* {
6564
* capabilities: {},
66-
* jsonSchemaValidator: new AjvJsonSchemaValidator(ajv)
65+
* jsonSchemaValidator: new AjvJsonSchemaValidator()
6766
* }
6867
* );
6968
*
70-
* // Cloudflare Workers (edge-compatible)
71-
* import { Client, CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk';
69+
* // @cfworker/json-schema
7270
* const client = new Client(
7371
* { name: 'my-client', version: '1.0.0' },
7472
* {

0 commit comments

Comments
 (0)