@oneciel-ai/claude-any 0.1.78 → 0.1.79
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.
- package/claude_any.py +7 -4
- package/package.json +1 -1
package/claude_any.py
CHANGED
|
@@ -104,7 +104,7 @@ OFFICIAL_CHANNEL_PLUGINS = {
|
|
|
104
104
|
"fakechat": "plugin:fakechat@claude-plugins-official",
|
|
105
105
|
}
|
|
106
106
|
APP_NAME = "Claude Any"
|
|
107
|
-
VERSION = "0.1.
|
|
107
|
+
VERSION = "0.1.79"
|
|
108
108
|
CREDITS = "Credits: One Ciel LLC"
|
|
109
109
|
|
|
110
110
|
LOG_LEVELS = {"SILENT": 0, "ERROR": 1, "WARN": 2, "INFO": 3, "DEBUG": 4, "TRACE": 5}
|
|
@@ -9106,8 +9106,8 @@ def _mcp_server_is_stdio(server: dict[str, Any]) -> bool:
|
|
|
9106
9106
|
command = str(server.get("command") or "").strip()
|
|
9107
9107
|
if not command:
|
|
9108
9108
|
return False
|
|
9109
|
-
|
|
9110
|
-
return "mcp-proxy" not in
|
|
9109
|
+
args = [str(item) for item in server.get("args", []) if item is not None] if isinstance(server.get("args", []), list) else []
|
|
9110
|
+
return "mcp-proxy" not in args
|
|
9111
9111
|
|
|
9112
9112
|
|
|
9113
9113
|
def _mcp_config_passthrough_values(passthrough: list[str]) -> list[str]:
|
|
@@ -13897,8 +13897,9 @@ class _McpStdoutObserver:
|
|
|
13897
13897
|
|
|
13898
13898
|
def _mcp_proxy_forward_stdin(proc: subprocess.Popen[bytes]) -> None:
|
|
13899
13899
|
try:
|
|
13900
|
+
stdin_fd = sys.stdin.fileno()
|
|
13900
13901
|
while True:
|
|
13901
|
-
chunk =
|
|
13902
|
+
chunk = os.read(stdin_fd, 65536)
|
|
13902
13903
|
if not chunk:
|
|
13903
13904
|
break
|
|
13904
13905
|
if proc.stdin:
|
|
@@ -15124,6 +15125,8 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
15124
15125
|
|
|
15125
15126
|
|
|
15126
15127
|
def main() -> None:
|
|
15128
|
+
if len(sys.argv) >= 2 and sys.argv[1] == "mcp-proxy":
|
|
15129
|
+
raise SystemExit(cmd_mcp_proxy(sys.argv[2:]))
|
|
15127
15130
|
if len(sys.argv) >= 2 and sys.argv[1] == "cli":
|
|
15128
15131
|
raise SystemExit(run_cli(sys.argv[2:]))
|
|
15129
15132
|
if len(sys.argv) >= 2 and sys.argv[1] == "launch":
|
package/package.json
CHANGED