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.
- Fixed WAV header generation to properly encode binary data
- Implemented proper little-endian integer serialization
- Replaced PPM image format with SVG vector graphics
- Added various random SVG shapes (circles, rectangles, lines, polygons)
- Updated protocol version to 2025-03-26 to match spec
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds a new multimodal_sdk.ml example that demonstrates:
- Generating and returning image content (PPM format)
- Generating and returning audio content (WAV format)
- Combining multiple content types in a single tool response
- Using the new error handling and tool result infrastructure
- Implementing resource templates with multimodal responses
The example includes:
- A Base64 encoder for binary data
- A PPM (simple RGB format) image generator with checkerboard pattern
- A WAV audio generator for sine wave tones
- Multiple tools using different content types
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add proper AudioContent module to Mcp
- Add Audio content type to content type
- Update content serialization/deserialization functions
- Support JSON-RPC error code standardization
- Improve tool result handling with structured content
- Add helper functions for creating rich tool results with multiple content types
- Ensure content types match MCP specification
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>