container-manager-mcp 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of container-manager-mcp might be problematic. Click here for more details.
- container_manager_mcp/container_manager.py +8 -19
- {container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/METADATA +2 -2
- container_manager_mcp-1.0.6.dist-info/RECORD +10 -0
- container_manager_mcp-1.0.4.dist-info/RECORD +0 -10
- {container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/WHEEL +0 -0
- {container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/entry_points.txt +0 -0
- {container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/licenses/LICENSE +0 -0
- {container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/top_level.txt +0 -0
|
@@ -1065,10 +1065,12 @@ class PodmanManager(ContainerManagerBase):
|
|
|
1065
1065
|
is_wsl = self._is_wsl()
|
|
1066
1066
|
socket_candidates = []
|
|
1067
1067
|
if system == "Windows" and not is_wsl:
|
|
1068
|
-
if self._is_podman_machine_running():
|
|
1069
|
-
|
|
1068
|
+
if not self._is_podman_machine_running():
|
|
1069
|
+
raise RuntimeError("Podman Machine is not running on Windows system")
|
|
1070
1070
|
socket_candidates.extend(
|
|
1071
1071
|
[
|
|
1072
|
+
"unix:///run/podman/podman.sock",
|
|
1073
|
+
"npipe:////./pipe/docker_engine",
|
|
1072
1074
|
"unix:///mnt/wsl/podman-sockets/podman-machine-default/podman-user.sock",
|
|
1073
1075
|
"unix:///mnt/wsl/podman-sockets/podman-machine-default/podman-root.sock",
|
|
1074
1076
|
]
|
|
@@ -1079,14 +1081,11 @@ class PodmanManager(ContainerManagerBase):
|
|
|
1079
1081
|
[
|
|
1080
1082
|
f"unix:///run/user/{uid}/podman/podman.sock",
|
|
1081
1083
|
"unix:///run/podman/podman.sock",
|
|
1084
|
+
"unix:///mnt/wsl/podman-sockets/podman-machine-default/podman-user.sock",
|
|
1085
|
+
"unix:///mnt/wsl/podman-sockets/podman-machine-default/podman-root.sock",
|
|
1082
1086
|
]
|
|
1083
1087
|
)
|
|
1084
1088
|
for url in socket_candidates:
|
|
1085
|
-
if url.startswith("unix://") and (system == "Linux" or is_wsl):
|
|
1086
|
-
socket_path = url.replace("unix://", "")
|
|
1087
|
-
if not os.path.exists(socket_path):
|
|
1088
|
-
self.logger.debug(f"Socket {socket_path} does not exist")
|
|
1089
|
-
continue
|
|
1090
1089
|
client = self._try_connect(url)
|
|
1091
1090
|
if client:
|
|
1092
1091
|
return url
|
|
@@ -1712,19 +1711,9 @@ def create_manager(
|
|
|
1712
1711
|
manager_type = os.environ.get("CONTAINER_MANAGER_TYPE", None)
|
|
1713
1712
|
if manager_type is None:
|
|
1714
1713
|
if is_app_installed("podman"):
|
|
1715
|
-
|
|
1716
|
-
test_client = PodmanClient()
|
|
1717
|
-
test_client.close()
|
|
1718
|
-
manager_type = "podman"
|
|
1719
|
-
except Exception:
|
|
1720
|
-
pass
|
|
1714
|
+
manager_type = "podman"
|
|
1721
1715
|
if is_app_installed("docker"):
|
|
1722
|
-
|
|
1723
|
-
test_client = docker.from_env()
|
|
1724
|
-
test_client.close()
|
|
1725
|
-
manager_type = "docker"
|
|
1726
|
-
except Exception:
|
|
1727
|
-
pass
|
|
1716
|
+
manager_type = "docker"
|
|
1728
1717
|
if manager_type is None:
|
|
1729
1718
|
raise ValueError(
|
|
1730
1719
|
"No supported container manager detected. Set CONTAINER_MANAGER_TYPE or install Docker/Podman."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: container-manager-mcp
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: Container Manager manage Docker, Docker Swarm, and Podman containers as an MCP Server
|
|
5
5
|
Author-email: Audel Rouhi <knucklessg1@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -48,7 +48,7 @@ Dynamic: license-file
|
|
|
48
48
|

|
|
49
49
|

|
|
50
50
|
|
|
51
|
-
*Version: 1.0.
|
|
51
|
+
*Version: 1.0.6*
|
|
52
52
|
|
|
53
53
|
Container Manager MCP Server provides a robust interface to manage Docker and Podman containers, networks, volumes, and Docker Swarm services through a FastMCP server, enabling programmatic and remote container management.
|
|
54
54
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
container_manager_mcp/__init__.py,sha256=N3bhKd_oh5YmBBl9N1omfZgaXhJyP0vOzH4VKxs68_g,506
|
|
2
|
+
container_manager_mcp/__main__.py,sha256=zic5tX336HG8LfdzQQ0sDVx-tMSOsgOZCtaxHWgJ4Go,134
|
|
3
|
+
container_manager_mcp/container_manager.py,sha256=O-Dk6q-QSQJbzHVHC3KeljJuGoDdkjlTcaCwC_4hdgo,88877
|
|
4
|
+
container_manager_mcp/container_manager_mcp.py,sha256=E3FOTFILyYYoJF3Erkpl5zapkiDi2pKlJlkZByc-8QE,47361
|
|
5
|
+
container_manager_mcp-1.0.6.dist-info/licenses/LICENSE,sha256=Z1xmcrPHBnGCETO_LLQJUeaSNBSnuptcDVTt4kaPUOE,1060
|
|
6
|
+
container_manager_mcp-1.0.6.dist-info/METADATA,sha256=WygJ6UaeqBGVthdIZvSYbl40n2M40F2aL-toAm2zq8o,8238
|
|
7
|
+
container_manager_mcp-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
container_manager_mcp-1.0.6.dist-info/entry_points.txt,sha256=I23pXcCgAShlfYbENzs3kbw3l1lU9Gy7lODPfRqeeiA,156
|
|
9
|
+
container_manager_mcp-1.0.6.dist-info/top_level.txt,sha256=B7QQLOd9mBdu0lsPKqyu4T8-zUtbqKzQJbMbtAzoozU,22
|
|
10
|
+
container_manager_mcp-1.0.6.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
container_manager_mcp/__init__.py,sha256=N3bhKd_oh5YmBBl9N1omfZgaXhJyP0vOzH4VKxs68_g,506
|
|
2
|
-
container_manager_mcp/__main__.py,sha256=zic5tX336HG8LfdzQQ0sDVx-tMSOsgOZCtaxHWgJ4Go,134
|
|
3
|
-
container_manager_mcp/container_manager.py,sha256=sHxM17dj7luzp1Ak2aQJ3JLqHd3POO3S2_W32HQwWog,89167
|
|
4
|
-
container_manager_mcp/container_manager_mcp.py,sha256=E3FOTFILyYYoJF3Erkpl5zapkiDi2pKlJlkZByc-8QE,47361
|
|
5
|
-
container_manager_mcp-1.0.4.dist-info/licenses/LICENSE,sha256=Z1xmcrPHBnGCETO_LLQJUeaSNBSnuptcDVTt4kaPUOE,1060
|
|
6
|
-
container_manager_mcp-1.0.4.dist-info/METADATA,sha256=XhTi2pEQeO1cfnrVgVViq_LiwGqLqUyhsogD-jXUFys,8238
|
|
7
|
-
container_manager_mcp-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
container_manager_mcp-1.0.4.dist-info/entry_points.txt,sha256=I23pXcCgAShlfYbENzs3kbw3l1lU9Gy7lODPfRqeeiA,156
|
|
9
|
-
container_manager_mcp-1.0.4.dist-info/top_level.txt,sha256=B7QQLOd9mBdu0lsPKqyu4T8-zUtbqKzQJbMbtAzoozU,22
|
|
10
|
-
container_manager_mcp-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
{container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{container_manager_mcp-1.0.4.dist-info → container_manager_mcp-1.0.6.dist-info}/top_level.txt
RENAMED
|
File without changes
|