fix: v0.2.6 — trigger_build_stream truly fire-and-forget

Claude Desktop times out tool calls after ~4 minutes. The previous
implementation read the first SSE chunk before returning, which could
block for the entire image-pull duration.

Now: send the GET request, wait for HTTP response headers (status
check only), close the connection immediately — never read SSE events.
DSM starts the build on receipt of the request and continues
server-side. ReadTimeout on headers is caught and ignored (request
already sent). Removes the _json import added in 0.2.5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-21 08:44:25 +02:00
parent ebe3baba78
commit 7b1d7be5d7
3 changed files with 31 additions and 24 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "mcp-synology-container"
version = "0.2.5"
version = "0.2.6"
description = "MCP server for Synology Container Manager"
requires-python = ">=3.12"
dependencies = [