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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sandrpod-cli
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Command-line client for SandrPod — self-hosted, multi-cloud sandbox infrastructure for AI agents
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/sandrpod/sandrpod
@@ -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 > 默认 (跨 poder/agent 自适应)"""
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sandrpod-cli
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Command-line client for SandrPod — self-hosted, multi-cloud sandbox infrastructure for AI agents
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/sandrpod/sandrpod
@@ -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.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