Skip to content

0.7.0

Latest

Choose a tag to compare

@AmriaLin AmriaLin released this 07 Nov 12:41
7b4a6dd

What's Changed

  • Experimental read_image tool (#8): returns a remote PNG, JPEG, GIF or WebP as MCP image content. Off by default; enable with --enable-image-reading or MCP_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 by MCP_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