Skip to main content
Milford ships as npm packages under the @milfordai scope and as Docker images. Pick the server to run flows over HTTP, the MCP server to expose flows as tools, or the libraries to embed the engine in your own app.

Requirements

  • Node.js 22 or later. Every package declares this in engines.
  • npm or pnpm.
  • Docker, if you run the images.

Packages

The server and MCP packages already depend on the others, so installing one of them is enough to run Milford. All packages are released together. Keep every @milfordai/* dependency on the same version.

Run a server

Run the server without installing anything:
Run the MCP server the same way with @milfordai/mcp. To add the server to a project, install it and run the command it provides:
To put milford-server and milford-mcp on your PATH, install the packages globally:
The commands read the config file you pass, or the path in MILFORD_CONFIG, or milford.config.yaml in the current directory. See the configuration reference.

Use the library

The packages are ES modules and ship their own type declarations, so use import and no extra @types package.
The quickstart has a complete example.

Editor completion for the config file

@milfordai/config ships the JSON Schema of the config file. After you install it, point your editor’s YAML language server at it with the first line of milford.config.yaml:

Docker

Tags are the release version, such as 0.0.3, and latest. Mount a directory with milford.config.yaml at /config, and pass the variables your config uses:
Images are built for linux/amd64 and linux/arm64. See deployment.

Next steps

Quickstart

Run your first flow.

Configuration

Every key of the config file.