fix: v0.4.2 — inspect_image used wrong DSM parameter contract
Live DSM API capture revealed the actual SYNO.Docker.Image/get contract: a single JSON-encoded parameter named `identity` that accepts both `name:tag` and `sha256:<hash>` forms. The 0.4.0 code passed `name` + `tag` + `id` and was rejected by DSM with error 114. Response shape also corrected — the endpoint returns flat top-level fields (image, tag, id, digest, size, virtual_size, author, docker_version, cmd, entrypoint, env, ports, volumes), NOT the Docker-engine inspect shape with details.Config.* + RootFS.Layers that the previous implementation assumed. Layer rendering removed; digest / author / docker_version / volumes are now displayed. Pre-resolution against list_images is no longer needed — the user input goes straight into `identity` JSON-encoded. Closes #4. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "mcp-synology-container"
|
||||
version = "0.4.1"
|
||||
version = "0.4.2"
|
||||
description = "MCP server for Synology Container Manager"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user