code
Clone this repository
https://tangled.org/anil.recoil.org/ocaml-mcp
git@git.recoil.org:anil.recoil.org/ocaml-mcp
For self-hosted knots, clone URLs may differ based on your setup.
Replace string-based methods with a type-safe algebraic data type to
better enforce correctness in the protocol implementation.
- Added Method.t variant type with all MCP methods as constructors
- Added to_string and of_string conversion functions
- Updated JSONRPCMessage to use Method.t instead of strings
- Modified create_notification and create_request to use Method.t parameter
- Updated all method references throughout the codebase
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix the OCaml eval SDK to use Mcp.make_text_content instead of direct
TextContent constructor for consistent API usage.
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Refactor all SDK examples to use the standardized Mcp.make_*_content
functions instead of direct constructors for better consistency.
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>