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.
This commit refactors the Mcp_sdk module to use a direct approach instead of
OCaml functors for creating servers. The changes include:
- Remove the MakeServer functor and Server module
- Create direct functions for working with servers
- Expose register_* and add_* functions for tools, resources, and prompts
- Update the capitalize_sdk.ml example to use the new API
- Simplify the server creation and configuration process
The non-functor API provides a more straightforward approach for creating
MCP servers in OCaml.
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds an MCP SDK module that provides a higher-level interface for
creating MCP servers. The SDK simplifies the creation of tools, resources, and
prompts with a more accessible API, avoiding the use of functors.
Key improvements:
- Created a modular Mcp_sdk library for easy server creation
- Fixed build issues and interface constraints
- Added a capitalize_sdk.ml example server using the new SDK
- Improved logging for server operations
- Restructured dune files to handle multiple libraries
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>