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.
- Implemented a simple GIF image generator with 8-color palette
- Created a basic red and blue checkerboard pattern
- Added proper GIF header, descriptor, and image data blocks
- Updated all image MIME types to image/gif
- GIF format is more widely compatible than SVG
- This makes the multimodal example more self-contained without dependencies
馃 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- 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>