AGENT SKILL

mcp-agent

Build, compose, serve, operate, and troubleshoot mcp-agent applications, workflows, MCP servers, Temporal workers, CLI/cloud deployments, and observability integrations.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
mcp-agent
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Build, compose, serve, operate, and troubleshoot mcp-agent applications, workflows, MCP servers, Temporal workers, CLI/cloud deployments, and observability integrations.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

mcp-agent

Use this repo skill when a task involves the mcp-agent Python package or its CLIs: building MCP-enabled agents, composing effective workflow patterns, exposing applications as MCP servers, operating MCP Agent Cloud, using Temporal durability, or configuring logging/tracing/integrations.

First Checks

  1. Confirm the package is available with python -c "import mcp_agent; print(mcp_agent.__name__)" or install it with pip install "mcp-agent" / uv add "mcp-agent".
  2. Add optional extras only for the selected workflow: mcp-agent[openai], [anthropic], [google], [azure], [bedrock], [cohere], [temporal], [langchain], [crewai], or [redis].
  3. Keep secrets in mcp_agent.secrets.yaml, environment variables, or deployment secret handles; keep reusable defaults in mcp_agent.config.yaml or a Settings object.
  4. Read references/repo-provenance.md before deciding whether this skill matches a checkout or whether refresh-repo-skill is needed.
  5. Read references/troubleshooting.md for cross-cutting install, import, config, optional dependency, CLI, and service failures.

Route by Task

  • Core SDK and app code: use sub-skills/core-sdk/SKILL.md for MCPApp, Agent, AgentSpec, AugmentedLLM, RequestParams, settings, secrets, local function tools, decorators, and factory basics.
  • Workflow composition: use sub-skills/workflow-patterns/SKILL.md for routers, intent classifiers, parallel fan-out/fan-in, orchestrators, deep orchestrators, evaluator-optimizer loops, swarms, and structured outputs.
  • MCP server integration: use sub-skills/mcp-server-integration/SKILL.md for upstream MCP server config, transports, roots, sampling, elicitation, OAuth/auth, create_mcp_server_for_app, and app-as-server validation.
  • CLI and Cloud operations: use sub-skills/cli-cloud-operations/SKILL.md for mcp-agent, mcp-cloud, mcpc, project scaffolding, diagnostics, local dev commands, deploy, logs, env/secrets, workflows, and client install.
  • Durable execution: use sub-skills/durable-execution/SKILL.md when workflows need Temporal workers, long-running tools, pause/resume, signals, retry policies, activity registration, or service-backed durability.
  • Observability and integrations: use sub-skills/observability-integrations/SKILL.md for logger transports, OpenTelemetry, token accounting, progress/streaming, provider extras, LM Studio/local endpoints, LangChain, and CrewAI adapters.

Common Decision Points

  • Start with core-sdk when the user asks to create or debug Python application code; route to workflow-patterns only after the app/agent basics are clear.
  • Route to mcp-server-integration when the words are about MCP transports, server config, app-as-server behavior, OAuth, resources, prompts, sampling, roots, elicitation, or client/server tool surfaces.
  • Route to cli-cloud-operations when the task is command syntax, scaffolding, config checks, deployments, logs, hosted app state, environment secrets, or installing a server into Claude Code/Cursor/VS Code/ChatGPT clients.
  • Route to durable-execution when the user already has or wants a workflow that must survive restarts, pause for human input, receive signals, or run in a Temporal worker.
  • Route to observability-integrations when failures involve provider wrapper imports, OpenTelemetry exporters, token counters, JSONL event logs, streaming events, local model endpoints, or LangChain/CrewAI adapters.

Safe Validation Helpers

  • sub-skills/core-sdk/scripts/check_core_sdk.py checks imports, signatures, local tools, decorators, AgentSpec, and RequestParams without credentials or network.
  • sub-skills/workflow-patterns/scripts/check_workflow_imports.py verifies canonical workflow imports and class names such as LLMRouter.
  • sub-skills/mcp-server-integration/scripts/validate_server_config.py checks MCP server config shape and optional executable availability.
  • sub-skills/cli-cloud-operations/scripts/collect_cli_help.py collects safe --help snapshots without deploy/login/install side effects.
  • sub-skills/durable-execution/scripts/check_temporal_config.py validates Temporal config statically without starting a worker.
  • sub-skills/observability-integrations/scripts/check_observability_config.py and sub-skills/observability-integrations/scripts/summarize_event_log.py inspect logger/OTEL config and JSONL event logs safely.

Safety Notes

  • Do not run Cloud deployment, client install writes, env secret mutation, workflow resume/cancel, or public server transports unless the user explicitly intends mutation.
  • Do not assume optional provider SDKs, Temporal, Redis, LangChain, CrewAI, or cloud credentials are present in a base install; install and validate the smallest extra needed.
  • Do not paste API keys or secret handles into generated code, logs, support transcripts, or client snippets.
  • Prefer read-only --help, config validation, bundled checker scripts, import checks, and dry-run/static modes before starting services or calling external providers.

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