Skip to content

Commit fbea49b

Browse files
authored
Merge pull request #54 from appwrite/fix/runtime-uv-resync
Fix production timeouts: stop uv re-syncing deps at container startup
2 parents 544cc41 + 8fa97f3 commit fbea49b

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ ENV HOST=0.0.0.0 \
2020

2121
EXPOSE 8000
2222

23-
CMD ["uv", "run", "mcp-server-appwrite", "--transport", "http"]
23+
CMD ["uv", "run", "--no-sync", "mcp-server-appwrite", "--transport", "http"]

src/mcp_server_appwrite/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
"profile",
5656
"email",
5757
"all",
58-
"project:all",
59-
"organization:all",
6058
]
6159

6260
DISCOVERY_TTL_SECONDS = 300.0

tests/unit/test_auth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ def test_advertised_scopes_prefer_curated_subset(self):
9292
scopes = asyncio.run(auth.protected_resource_metadata())["scopes_supported"]
9393
finally:
9494
auth._discovery_cache.pop(pid, None)
95-
self.assertEqual(
96-
scopes,
97-
["openid", "profile", "email", "all", "project:all", "organization:all"],
98-
)
95+
self.assertEqual(scopes, ["openid", "profile", "email", "all"])
9996

10097
def test_advertised_scopes_drop_preferred_scopes_missing_from_discovery(self):
10198
pid = auth.configured_project_id()

0 commit comments

Comments
 (0)