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.stdio/Mcp_kit_stdio/index.html

Module Mcp_kit_stdioSource

Stdio transport adapter for mcp-kit.

This library boundary is intentionally separate from the transport-agnostic core so applications can depend on the core without adopting a concrete IO strategy.

Sourceval serve_line : ?verified_binding:Mcp_kit.Elicitation_url.verified_binding -> Mcp_kit.Server.t -> string -> string option

Dispatch one line of JSON-RPC input without connection lifecycle state.

Sourceval serve_session_line : Mcp_kit.Server.session -> string -> string option

Dispatch one line of JSON-RPC input through a per-connection session.

Sourceval serve_line_frames : ?verified_binding:Mcp_kit.Elicitation_url.verified_binding -> Mcp_kit.Server.t -> string -> string list

Dispatch one line and return progress notifications followed by the final response.

Sourceval serve_session_line_frames : Mcp_kit.Server.session -> string -> string list
Sourceval run_channels : Mcp_kit.Server.t -> in_channel -> out_channel -> unit

Serve line-delimited JSON-RPC over the provided channels until EOF.