Execute MCP environments locally or remotely for production use
hud run
command executes MCP environments either locally via Docker or remotely via the HUD platform. Unlike hud dev
which is for development, hud run
is optimized for production execution.
myorg/env:latest
)--
(e.g., -e KEY=value
)--
before Docker arguments to avoid conflicts with HUD options:hud run image:tag -- -e KEY=value
hud run image:tag -e KEY=value
stdio
or http
. Short: -t
-p
HUD_API_KEY
env var)-v
hud run
executes your Docker image on the HUD platform’s remote infrastructure. This provides:
--run-id
to track specific execution instances:
--local
to run the image locally with Docker:
--
separator:
--
separator is required to distinguish HUD options from Docker arguments.Variable | Description | Default |
---|---|---|
HUD_MCP_URL | Remote MCP server URL | https://mcp.hud.so/v3/mcp |
HUD_API_KEY | API key for remote authentication | required for remote |
Command | Purpose | Hot-reload | Target Use Case |
---|---|---|---|
hud dev | Development with auto-restart | ✅ Yes | Local development iteration |
hud run | Production execution | ❌ No | Production workloads, testing |
hud debug | Environment validation | ❌ No | Debugging and validation |
hud run
provides clear error messages for common issues:
hud pull
- Get environments before runninghud analyze
- Inspect capabilities firsthud debug
- Test environment compliancehud dev
- Development with hot-reload