package mcp-kit

All checked builds pass
  1. Overview
  2. Docs
OCaml library for building MCP servers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-mcp-v0.2.0.tar.gz
sha256=43c8319a13be91e323ae952a71ab673533fb3295886029eed9d81e5828de5ef7

doc/mcp-kit.jsonschema-core/Jsonschema_core/Error/index.html

Module Jsonschema_core.ErrorSource

Validation error types.

Errors carry both the instance path (where in the data) and the schema path (which keyword). Combinator keywords (allOf, anyOf, etc.) attach sub-errors in context.

Sourcetype t = {
  1. instance_path : Json_pointer.t;
  2. schema_path : Json_pointer.t;
  3. keyword : string;
  4. message : string;
  5. context : t list;
}

A validation error.

Sourceval make : instance_path:Json_pointer.t -> schema_path:Json_pointer.t -> keyword:string -> string -> t

Create an error at the given paths.

Sourceval make_with_context : instance_path:Json_pointer.t -> schema_path:Json_pointer.t -> keyword:string -> context:t list -> string -> t

Create an error with sub-errors (for combinators like allOf, anyOf).

Sourceval to_string : t -> string

Format error as human-readable string (for debugging).