AGENT SKILL

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

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

  1. Read references/cli-reference.md for the command map, safe read-only/help commands, local dev commands, output formats, and non-interactive usage.
  2. Read references/cloud-deployment.md before deploying, configuring Cloud apps, managing environment secrets, tailing logs, or installing clients.
  3. Read references/troubleshooting.md when config discovery, schema validation, auth, deployment prompts, ignore files, log filters, or client overwrite behavior is confusing.
  4. Use bundled scripts for safe checks:
    • python scripts/collect_cli_help.py --help
    • python 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, and mcp-agent dev build --check-only before mutating local files or Cloud state.
  • Set MCP_AGENT_DISABLE_VERSION_CHECK=1 in CI or scripted help collection to avoid best-effort PyPI version-check noise.
  • Use --format json or --format yaml on list/describe/status commands when another agent or CI job must parse output.
  • Use --non-interactive on deployment so CI fails instead of prompting. Provide --config-dir, --working-dir, --ignore-file, --api-key or MCP_API_KEY, and explicit auth flags when policy matters.
  • Use mcp-agent install ... --dry-run for client configuration previews. Only add --force after confirming the target client entry may be overwritten.

Common Workflows

  • Scaffold: mcp-agent init --list, then mcp-agent init --template basic --dir app, or mcp-agent init --quickstart hello-world --dir cloud-demo --force.
  • Diagnose config: run mcp-agent config check, mcp-agent doctor, and this skill's scripts/check_project_config.py --project app --json to 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 "...", or mcp-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", and mcp-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.md for Python SDK design, MCPApp, Agent, Settings, LLM factories, secrets schema, and app code structure.
  • Use ../mcp-server-integration/SKILL.md for MCP server/client concepts, transport semantics, create_mcp_server_for_app, OAuth primitives, and server internals.
  • Use ../workflow-patterns/SKILL.md for routers, orchestrators, parallel workflows, evaluator loops, and in-process workflow code.
  • Use ../durable-execution/SKILL.md for 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351