Skip to main content
This guide is for developers and CI integrators who use StepFun Static Hosting in production. It covers the steppage command-line tool (CLI) and Page MCP Server. The CLI is intended for manual operations and CI/CD pipelines. MCP is intended for MCP-compatible clients, allowing models to call the hosting tools directly. Both use the same hosting key beginning with sk-. Run steppage --version to check the installed CLI version.

Prerequisites

Both methods require Node.js 20 or later and a Static Hosting API key beginning with sk-. You can get the key from the StepFun Open Platform console. After authentication, the CLI and MCP can access only the sites owned by that key.

steppage CLI

Install

Install the production release with the one-line curl script:
To pin a version, set the VERSION environment variable before the command. The default is latest:
The installer downloads the self-contained bundle to ~/.steppage/bin/ and creates an executable wrapper at ~/.local/bin/steppage. If the installer reports that ~/.local/bin is not in PATH, add the following line to your shell configuration, such as ~/.zshrc, and restart the terminal:
Verify the installation:

Authenticate

We recommend logging in once to validate and save the key. login checks your identity with the server and saves the key to ~/.steppage/config.json with file permission 600:
In CI and other stateless environments, skip login and provide the key through STEPFUN_API_KEY. All commands read this environment variable automatically.

Quick start: deploy a directory

The deploy command uploads a build output and publishes a version. Use --name to create a site on the first deployment. Add --go-live to launch it immediately:
To publish a new version to an existing site, use --site <id>. deploy accepts a directory, scanned recursively, or a single .zip archive. If the root of the uploaded directory or ZIP archive does not contain index.html, use --root <file> to specify the site root page or --no-root-page to declare that the site has no root page. Interactive terminals prompt for a root file; CI environments without a TTY require an explicit option.

Command reference

The global --json option writes machine-readable JSON to stdout for CI parsing. Use -H, --header "Name: value" to inject a custom HTTP header; the option can be repeated. Use -v, --version to print the version.

Typical workflows

Preview before launch:
Rollback:
CI integration:
promote and rollback change the live version. delete is irreversible. In an interactive terminal, delete requires entering the site name for confirmation; in a non-TTY CI environment, it requires --yes.

Page MCP Server

Page MCP Server exposes deployment, launch, rollback, and inspection capabilities as MCP tools for clients such as Claude. It runs over stdio, uses environment-variable authentication only, and does not read or write the CLI configuration file.

Install

You can also pin a version with VERSION=v1.0.0. The installer places the bundle in ~/.steppage-mcp/bin/ and creates the wrapper ~/.local/bin/steppage-mcp. Use this wrapper path as the MCP client’s command.

Configure an MCP client

In the client’s MCP configuration, set command to the installed wrapper and pass the key through env. Example for Claude:
Replace <you> with your username. An absolute path is recommended. STEPFUN_API_KEY is the only required authentication field.

Tool reference

ID parameters are numeric strings, and the tool handles them safely as big integers. If a multi-file output has no index.html, page_deploy requires root or noRootPage because MCP has no interactive prompt. page_promote, page_rollback, and page_delete_site are destructive operations. Confirm the target before calling them.

Environment variables and language

Troubleshooting