Hot-reload development server for MCP environments
hud dev
command provides hot-reload development for MCP environments, automatically restarting your server when source files change.
hud dev
creates a development proxy server that runs your MCP environment in Docker with hot-reload capabilities. It automatically detects or builds your Docker image and exposes it via HTTP or stdio for development.
Key Features:
src/
directory for live code changesArgument | Description | Default |
---|---|---|
DIRECTORY | Environment directory (optional) | . (current) |
Option | Description | Default |
---|---|---|
--image , -i | Docker image name (overrides auto-detection) | Auto-detected |
--build , -b | Build image before starting | false |
--no-cache | Force rebuild without cache | false |
--transport , -t | Transport protocol: http or stdio | http |
--port , -p | HTTP server port (ignored for stdio) | 8765 |
--interactive | Launch interactive tool testing interface | false |
--no-reload | Disable hot-reload functionality | false |
--verbose , -v | Show detailed server logs | false |
--inspector | Launch MCP Inspector (HTTP mode only) | false |
--no-logs | Disable streaming Docker logs | false |
pyproject.toml
for [tool.hud.image]
settinghud-{directory-name}:dev
if not found--image
override if provided--build
if requestedsrc/
directory to /app/src
in container--no-reload
)src/
directoryhud dev
supports a critical design pattern: separating the MCP server from the environment process. This separation enables hot-reload without losing state.
Why Separation Matters:
src/
directory directly into containers:
src/
are immediately reflected in running containers.
Hot-Reload Behavior:
--no-reload
if manual control is preferred--interactive
, hud dev
provides a command-line interface for testing tools:
http://localhost:8080/mcp
.dockerignore
to exclude large files from build context--build
when dependencies changehud dev --build
also generates or updates hud.lock.yaml
with environment metadata, similar to hud build
.hud init
- Create new environmentshud build
- Build production imageshud push
- Share to registryhud analyze
- Test tools after changeshud debug
- Full environment validationhud run
- Run production environments