sandrpod-cli 0.2.2__tar.gz → 0.2.3__tar.gz
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.
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/PKG-INFO +1 -1
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli/main.py +13 -1
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli.egg-info/PKG-INFO +1 -1
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/setup.py +1 -1
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli/README.md +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli/__init__.py +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli/__main__.py +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli/client.py +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli/py.typed +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli.egg-info/SOURCES.txt +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli.egg-info/dependency_links.txt +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli.egg-info/entry_points.txt +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli.egg-info/requires.txt +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/sandrpod_cli.egg-info/top_level.txt +0 -0
- {sandrpod_cli-0.2.2 → sandrpod_cli-0.2.3}/setup.cfg +0 -0
|
@@ -945,7 +945,13 @@ def _kv(pairs):
|
|
|
945
945
|
|
|
946
946
|
|
|
947
947
|
def _mcp_config_path(client, name, override):
|
|
948
|
-
"""mcp.json 路径: --config-path > manifest.config_path >
|
|
948
|
+
"""mcp.json 路径: --config-path > manifest.config_path > 按 substrate 猜默认。
|
|
949
|
+
|
|
950
|
+
优先用 bridge 在 /mcp/manifest 里自报的绝对路径(精确;需较新的
|
|
951
|
+
agent/toolbox)。旧 bridge 不报 config_path 时按 substrate 回退:
|
|
952
|
+
poder(容器)沙箱用 /workspace/.sandrpod/mcp.json,direct agent(本机)
|
|
953
|
+
用 ~/.sandrpod/mcp.json(agent 的 DefaultConfigPath)。
|
|
954
|
+
"""
|
|
949
955
|
if override:
|
|
950
956
|
return override
|
|
951
957
|
try:
|
|
@@ -954,6 +960,12 @@ def _mcp_config_path(client, name, override):
|
|
|
954
960
|
return manifest["config_path"]
|
|
955
961
|
except Exception:
|
|
956
962
|
pass
|
|
963
|
+
try:
|
|
964
|
+
sb = client.get_sandbox(name)
|
|
965
|
+
if str(sb.get("proxy_url", "")).startswith("direct://"):
|
|
966
|
+
return os.path.expanduser("~/.sandrpod/mcp.json")
|
|
967
|
+
except Exception:
|
|
968
|
+
pass
|
|
957
969
|
return DEFAULT_MCP_CONFIG
|
|
958
970
|
|
|
959
971
|
|
|
@@ -10,7 +10,7 @@ long_description = _readme.read_text(encoding="utf-8") if _readme.exists() else
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name="sandrpod-cli",
|
|
13
|
-
version="0.2.
|
|
13
|
+
version="0.2.3",
|
|
14
14
|
description=(
|
|
15
15
|
"Command-line client for SandrPod — self-hosted, multi-cloud sandbox "
|
|
16
16
|
"infrastructure for AI agents"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|