/cmf:cmf-serverfrom cmf
Deploys the CMF Server locally with Docker Compose, including .env setup, TLS certificate generation, container startup, web UI verification, and client connection configuration.
Ships in cmf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
First check: is a CMF Server already running? If yes, skip to Connecting to an existing server.
REACT_APP_CMF_API_URL)NGINX_HTTP_PORT / NGINX_HTTPS_PORT)openssl on the host (for the self-signed cert helper)git clone https://github.com/HewlettPackard/cmf
cd cmf
.envCMF_DATA_DIR=./data
NGINX_HTTP_PORT=80
NGINX_HTTPS_PORT=443
# REACT_APP_CMF_API_URL is optional: when unset, the browser uses its own
# origin, so HTTP and HTTPS both work. Set it only if the API is on a
# different host than the UI.
# REACT_APP_CMF_API_URL=http://<your-server-ip>:80
POSTGRES_USER=myuser
POSTGRES_PASSWORD=mypassword # change in production
POSTGRES_DB=mlmd
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
MCP_EXTERNAL_PORT=8382
See references/env-variables.md for full variable descriptions and common customizations.
The nginx service has a 443 ssl server block. An entrypoint script
auto-generates a throwaway self-signed cert on startup if none is mounted,
so HTTPS works out of the box. For a stable cert that persists across
restarts and covers your hostname/IP, run the helper before starting the stack:
scripts/generate-self-signed-cert.sh
This writes cmf.crt and cmf.key into $CMF_DATA_DIR/nginx-certs/, which the nginx service mounts read-only at /etc/nginx/certs/. To use your own certificate instead, copy your cmf.crt / cmf.key into that directory.
docker compose -f docker-compose-server.yml up -d
docker compose -f docker-compose-server.yml ps # all services should be healthy within ~60s
Services started: postgres, server (CMF API), ui (React), tensorboard, nginx (HTTP + HTTPS), mcp.
curl http://<your-server-ip>:80/api/pipelines
# []
Open the CMF web UI in a browser — either URL works automatically (no .env change needed):
http://<your-server-ip>:<NGINX_HTTP_PORT> (no cert warnings)https://<your-server-ip>:<NGINX_HTTPS_PORT> (accept the self-signed cert warning)On each client machine:
cmf init local \
--path /path/to/artifact-storage \
--git-remote-url https://github.com/your-org/your-repo.git \
--cmf-server-url http://<your-server-ip>:80
cmf init local \
--path /path/to/artifact-storage \
--git-remote-url https://github.com/your-org/your-repo.git \
--cmf-server-url http://<server-url>:<port>
cmf init show # verify the URL is set
cmf metadata pull -p my_pipeline # confirm access
The CMF Server uses network-level access control (no built-in username/password by default). If your deployment has an auth proxy, ask the administrator for credentials.
docker compose -f docker-compose-server.yml stop # stop (data preserved)
docker compose -f docker-compose-server.yml start # restart
docker compose -f docker-compose-server.yml down # remove containers (data preserved in CMF_DATA_DIR)
# Destructive — backup CMF_DATA_DIR first!
docker compose -f docker-compose-server.yml down -v && rm -rf ./data
git pull
docker compose -f docker-compose-server.yml build --no-cache
docker compose -f docker-compose-server.yml up -d
REACT_APP_CMF_API_URL not set — required; set to the host's IP/hostnamenginx crashes on startup — an entrypoint script should auto-generate a throwaway cert if none is mounted; if nginx still crashes, check docker compose -f docker-compose-server.yml logs nginx. For a stable cert, run scripts/generate-self-signed-cert.sh (or place your own cmf.crt / cmf.key in $CMF_DATA_DIR/nginx-certs/).NGINX_HTTP_PORT and update REACT_APP_CMF_API_URL to matchpostgres not healthy — check docker compose -f docker-compose-server.yml logs postgres; usually a CMF_DATA_DIR permissions issueREACT_APP_CMF_API_URL, ensure it's reachable from the browser and its scheme matches how you open the UI (loading https://... with an http:// API URL causes mixed-content blocking). If unset, the browser uses its own origin automatically — check that the host/IP is reachable.MCP_EXTERNAL_PORT in .env and confirm it is not blocked by a firewall; test with curl http://<server-ip>:<MCP_EXTERNAL_PORT>/healthcmf init show shows the correct server URL; verify with curl http://<server-ip>:80/api/pipelines (expect [] for an empty server, or a list of pipeline names)Docs: Installation Guide · CMF Client Guide · Web UI Reference
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/cmfUse when working with the Common Metadata Framework (CMF) — initializing CMF in a project, instrumenting ML pipeline code, syncing metadata and artifacts with a CMF Server, querying lineage and artifacts, or setting up the CMF MCP server for AI assistant integration. Routes to the appropriate specialized skill based on the task.
/cmf-initUse when setting up CMF in a new or existing project. Covers creating a Python environment (conda, uv, or venv), installing cmflib (requires Python 3.9–3.11, recommended 3.10), running `cmf init` to configure a storage backend (local, S3, MinIO, SSH, or OSDF), and verifying the setup. Linux only — cmflib does not support macOS.
/cmf-instrumentUse when adding CMF metadata tracking to existing Python ML pipeline code, or writing new CMF-instrumented pipeline stages from scratch. Covers the Cmf() API: create_context, create_execution, log_dataset, log_model, log_metric, commit_metrics, log_execution_metrics, and finalize(). Includes copy-paste templates for common ML pipeline stages.
/cmf-mcpUse when setting up the CMF MCP server so an AI coding assistant can query CMF metadata using natural language, or when the CMF MCP server is already running and the user wants to use it from their coding agent. Covers Docker deployment, per-agent configuration (Claude Code, GitHub Copilot, Cursor, Codex), and example prompts.
/cmf-queryUse when querying CMF metadata programmatically — listing pipelines, stages, executions, artifacts; tracing lineage; comparing hyperparameters across runs; or exporting metadata for analysis. Uses the CmfQuery Python API or CLI listing commands.
/cmf-syncUse when pushing or pulling CMF metadata and artifacts between a local environment and a CMF Server or central artifact repository (S3, MinIO, SSH, OSDF, local). Covers `cmf metadata push/pull`, `cmf artifact push/pull`, `cmf repo push/pull`, and collaborative team workflows. Assumes `cmf init` has been run.
npx claudepluginhub hewlettpackard/cmf --plugin cmfOther plugins' skills for the same job