diff --git a/src/mcp_synology_container/modules/compose.py b/src/mcp_synology_container/modules/compose.py index 075ed4a..20f6896 100644 --- a/src/mcp_synology_container/modules/compose.py +++ b/src/mcp_synology_container/modules/compose.py @@ -329,13 +329,14 @@ async def _find_compose_path( for filename in _COMPOSE_FILENAMES: path = f"{base}/{filename}" try: - await client.request( - "SYNO.FileStation.Info", - "get", + data = await client.request( + "SYNO.FileStation.List", + "getinfo", params={"path": path, "additional": "[]"}, ) - logger.debug("Found compose file: %s", path) - return path + if data.get("files"): + logger.debug("Found compose file: %s", path) + return path except Exception: continue