Skills

Docker Agent Deploy

Use this skill when exposing a Docker Agent as a server (MCP, HTTP API, A2A, ACP, or...

Install

npx skills add docker/skills --skill docker-agent-deploy -g -a claude-code -y
Repository
docker/skills609
Category
Testing
Updated
5d ago
License
Apache-2.0
Context cost
Mediumabout 1,687 tokens
Runs scripts
No, instructions only

What it does

Use this skill when exposing a Docker Agent as a server (MCP, HTTP API, A2A, ACP, or OpenAI-compatible chat), distributing an agent via an OCI registry with `docker agent share`, or measuring agent quality with `docker agent eval`. Even if the user just says they want to "turn my agent into an MCP server", "let Claude Desktop use my agent", "publish my agent to Docker Hub", "push my agent like an image", or "test my agent in CI", this skill applies. Covers `serve mcp/api/a2a/acp/chat` listen addresses and auth flags, `share push/pull`, eval session JSON format, scoring metrics, and the `--baseline` regression gate.

Docker Agent: Serving, Sharing, and Evaluating

Overview

This skill owns the integration surface of Docker Agent: making an agent reachable by other software (docker agent serve), distributing it through an OCI registry the way container images are distributed (docker agent share), and proving it still behaves after a change (docker agent eval). It assumes the agent config already exists, see docker-agent-config for authoring it, and docker-agent-run for interactive/local invocation.

When to use this skill

Activate this skill when:

  • The user wants an agent reachable over MCP, an OpenAI-compatible chat endpoint, a plain HTTP API, or A2A/ACP.
  • The user wants to publish an agent to Docker Hub (or any OCI registry) or pull one someone else published.
  • The user wants automated evaluations (regression tests) for an agent, or wants to gate CI on eval results.

Do not use this skill when

Do not use this skill when:

  • The task is authoring the agent.yaml itself (models, toolsets, sub_agents), use docker-agent-config.
  • The task is running the agent interactively on a developer's machine, choosing --safety/--sandbox, or aliases, use docker-agent-run.

Core guidance

Serving an agent

  • Five server modes, each with its own default loopback listen address, never expose any of them beyond loopback without authentication:

    ModeDefault listenAuth flagHas --safety?
    serve mcp127.0.0.1:8081--auth-token (only with --http)Yes (only with --http)
    serve api127.0.0.1:8080--auth-tokenNo
    serve chat127.0.0.1:8083--api-key / --api-key-envYes
    serve a2a127.0.0.1:8082--auth-tokenYes
    serve acp(stdio only)n/aNo
Read the whole SKILL.md on GitHub

More in Testing