Repository navigation
What's Changed
- Experimental
read_imagetool (#8): returns a remote PNG, JPEG, GIF or WebP as MCP image content. Off by default; enable with--enable-image-readingorMCP_SSH_ENABLE_IMAGE_READING=true. - Validation uses magic bytes and container structure only, never the file extension: PNG signature, IHDR checksum, IDAT and IEND; JPEG frame header and EOI; GIF block walk with image data; WebP RIFF and chunk lengths with VP8/VP8L/VP8X headers. Anything else is rejected with
Unsupported image format. - File size is capped by
MCP_SSH_MAX_IMAGE_BYTES(4 MB) and decoded dimensions byMCP_SSH_MAX_IMAGE_PIXELS(16 MP, 8192 per side). - Tool errors now keep the category set by the service layer instead of being re-categorized as
unknown. - The tool is removed again when image reading is disabled at runtime.
Full Changelog: v0.6.0...v0.7.0