mcp-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MCP CLI

MCP CLI

Use
scripts/mcp.py
from this skill. The calling skill owns the endpoint, transport, tool choice, and investigation workflow.
bash
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://approved.kraken.zone/mcp" tools
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://approved.kraken.zone/mcp" describe tool_name
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://approved.kraken.zone/mcp" call tool_name --args '{"key":"value"}'
Pass credentials by environment-variable reference, never by value:
bash
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://mcp.linearb.io/mcp" --header-env "x-api-key=LINEARB_API_KEY" tools
Run with full network access, outside the sandbox; internal endpoints require VPN. Retry one network or certificate failure outside the sandbox before reporting a blocker.
Use only an endpoint fixed by a trusted calling skill.
tools
returns names only;
describe
loads one schema;
call
exposes one result. The CLI accepts
*.kraken.zone
and explicitly allowlisted vendor endpoints. The calling skill owns mutation approval and safety.
Use
--transport sse
only for legacy MCP endpoints that advertise a session-specific message URL.
使用本Skill中的
scripts/mcp.py
。调用方Skill负责端点、传输方式、工具选择及调查工作流。
bash
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://approved.kraken.zone/mcp" tools
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://approved.kraken.zone/mcp" describe tool_name
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://approved.kraken.zone/mcp" call tool_name --args '{"key":"value"}'
通过环境变量引用传递凭据,绝不要直接传递值:
bash
python3 "$HOME/.agents/skills/mcp-cli/scripts/mcp.py" --transport streamable-http --url "https://mcp.linearb.io/mcp" --header-env "x-api-key=LINEARB_API_KEY" tools
在沙箱外运行,需拥有完整网络访问权限;内部端点需要VPN。在沙箱外遇到一次网络或证书失败时重试一次,之后再报告阻塞问题。
仅使用受信任的调用方Skill指定的固定端点。
tools
仅返回名称;
describe
加载一个模式;
call
返回一个结果。CLI接受
*.kraken.zone
及明确列入白名单的供应商端点。调用方Skill负责变更审批及安全性。
仅当旧版MCP端点公布了会话特定消息URL时,才使用
--transport sse