From 16c4f3c8c26aba6f2d2db91739a547bc5c0222b8 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Wed, 5 Aug 2026 12:51:23 +0100 Subject: [PATCH] fix: raise inline upload limit to 10MB Match Cloud/agent chat attachment max so hosted MCP can accept attachment bytes rewritten as inline base64 by the agent. Co-authored-by: Cursor --- src/mcp_server_appwrite/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mcp_server_appwrite/constants.py b/src/mcp_server_appwrite/constants.py index 700f633..6adcec8 100644 --- a/src/mcp_server_appwrite/constants.py +++ b/src/mcp_server_appwrite/constants.py @@ -49,7 +49,9 @@ def _resolve_server_version() -> str: EXCLUDED_SERVICES: frozenset[str] = frozenset() MAX_FETCH_BYTES = 25 * 1024 * 1024 # 25 MB cap on server-fetched files -MAX_INLINE_BYTES = 256 * 1024 # 256 KB cap on decoded inline content +# Match Cloud/agent chat attachment max (10 MB). Hosted uploads resolve +# turn attachments to inline base64; keep this at least that large. +MAX_INLINE_BYTES = 10 * 1024 * 1024 # 10 MB cap on decoded inline content FETCH_TIMEOUT_SECONDS = 30.0 FETCH_MAX_REDIRECTS = 5