Optionalcapabilities?: ServerCapabilitiesOptionalinstructions?: stringOptional instructions describing how to use the server and its features.
OptionaljsonSchemaValidator?: jsonSchemaValidatorJSON Schema validator for elicitation response validation.
The validator is used to validate user input returned from elicitation requests against the requested schema.
// ajv (default)
const server = new Server(
{ name: 'my-server', version: '1.0.0' },
{
capabilities: {}
jsonSchemaValidator: new AjvJsonSchemaValidator()
}
);
// @cfworker/json-schema
const server = new Server(
{ name: 'my-server', version: '1.0.0' },
{
capabilities: {},
jsonSchemaValidator: new CfWorkerJsonSchemaValidator()
}
);
Capabilities to advertise as being supported by this server.