cli-cloud-operations
Operate mcp-agent projects with mcp-agent, mcp-cloud, and mcpc CLIs for scaffolding, diagnostics, local dev, deployment, logs, secrets, and client install.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-cloud-operations
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate mcp-agent projects with mcp-agent, mcp-cloud, and mcpc CLIs for scaffolding, diagnostics, local dev, deployment, logs, secrets, and client install.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-reference.md8.4 KB
- 参考文档references/cloud-deployment.md8.5 KB
- 参考文档references/troubleshooting.md8.1 KB
- 脚本scripts/check_project_config.py19.4 KB
- 脚本scripts/collect_cli_help.py6.4 KB
03 SKILL.md 正文
CLI Cloud Operations
Use this sub-skill when a task asks for mcp-agent, mcp-cloud, or mcpc command usage: project scaffolding, config inspection, local dev runs, one-shot invoke/chat/serve, Cloud login/deploy/manage/logs/env/workflows, or installing a deployed server into a local MCP client.
Start Here
- Read
references/cli-reference.mdfor the command map, safe read-only/help commands, local dev commands, output formats, and non-interactive usage. - Read
references/cloud-deployment.mdbefore deploying, configuring Cloud apps, managing environment secrets, tailing logs, or installing clients. - Read
references/troubleshooting.mdwhen config discovery, schema validation, auth, deployment prompts, ignore files, log filters, or client overwrite behavior is confusing. - Use bundled scripts for safe checks:
python scripts/collect_cli_help.py --helppython scripts/collect_cli_help.py --base-command mcp-agent --commands init deploy "cloud servers list"python scripts/check_project_config.py --project . --json
Safe Operating Defaults
- Prefer
mcp-agent --help, subcommand--help,mcp-agent config check,mcp-agent config show --raw,mcp-agent doctor, andmcp-agent dev build --check-onlybefore mutating local files or Cloud state. - Set
MCP_AGENT_DISABLE_VERSION_CHECK=1in CI or scripted help collection to avoid best-effort PyPI version-check noise. - Use
--format jsonor--format yamlon list/describe/status commands when another agent or CI job must parse output. - Use
--non-interactiveon deployment so CI fails instead of prompting. Provide--config-dir,--working-dir,--ignore-file,--api-keyorMCP_API_KEY, and explicit auth flags when policy matters. - Use
mcp-agent install ... --dry-runfor client configuration previews. Only add--forceafter confirming the target client entry may be overwritten.
Common Workflows
- Scaffold:
mcp-agent init --list, thenmcp-agent init --template basic --dir app, ormcp-agent init --quickstart hello-world --dir cloud-demo --force. - Diagnose config: run
mcp-agent config check,mcp-agent doctor, and this skill'sscripts/check_project_config.py --project app --jsonto confirm which config and secrets files are discovered. - Local dev: run
mcp-agent dev start --script main.py,mcp-agent dev chat --message "ping",mcp-agent dev invoke --agent researcher --message "...", ormcp-agent dev serve --transport stdio --show-tools. - Deploy: run config checks first, then
mcp-agent deploy APP_NAME --config-dir app --working-dir . --ignore-file .mcpacignore --non-interactive --no-git-tag. - Operate Cloud: use
mcp-agent cloud auth whoami,mcp-agent cloud servers list --format json,mcp-agent cloud logger tail SERVER --since 1h --grep "ERROR|WARN", andmcp-agent cloud env list APP. - Install client: preview with
mcp-agent install SERVER_URL --client claude_code --name app-name --dry-run; write only after reviewing the target client and overwrite policy.
Route Elsewhere
- Use
../core-sdk/SKILL.mdfor Python SDK design,MCPApp,Agent,Settings, LLM factories, secrets schema, and app code structure. - Use
../mcp-server-integration/SKILL.mdfor MCP server/client concepts, transport semantics,create_mcp_server_for_app, OAuth primitives, and server internals. - Use
../workflow-patterns/SKILL.mdfor routers, orchestrators, parallel workflows, evaluator loops, and in-process workflow code. - Use
../durable-execution/SKILL.mdfor Temporal worker/runtime design when available in the skill tree.
Safety Notes
- Cloud deployment, app updates/deletes, env add/remove, workflow resume/suspend/cancel, and client install writes are mutating operations. Confirm credentials, target app/server, and flags before running them.
- The current deploy command is not a read-only dry run. Validate with config/help/build checks first, then deploy only when mutation is intended.
- Do not paste real API keys into command transcripts. Prefer environment variables or secret files and redact generated client snippets before sharing.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).