Skip to main content

Overview

stn up starts Station as an isolated Docker container, while stn down gracefully stops it. Data persists across restarts unless explicitly deleted.

How stn up Works

When you run stn up, here’s what happens:

Running Services

After startup, Station exposes three services:

MCP Configuration

stn up automatically updates .mcp.json in your workspace:
This allows Claude Desktop, Cursor, and other MCP clients to discover Station’s tools and agents.

How stn down Works

Data Preservation

By default, stn down preserves all your data:

Bundle Development Workflow

Here’s how to develop and test bundles with Station:

Step 1: Create Bundle Files Locally

Example variables.yml:

Step 2: Test Locally with stn serve

This runs Station directly (no Docker), reading your files:
  • DeclarativeSync scans environments/my-bundle/
  • Connects to MCP servers defined in mcp-configs/*.json
  • Loads agents from agents/*.prompt
  • Exposes everything via MCP on ports 8586/8587
Make changes to your files, restart stn serve, and changes take effect immediately.

Step 3: Package as a Bundle

Creates a tarball containing:
  • agents/*.prompt
  • mcp-configs/*.json
  • variables.yml
  • manifest.json (metadata)

Step 4: Test the Bundle with stn up

This simulates exactly how CloudShip users will run your bundle:
  1. Creates isolated Docker container
  2. Installs bundle into container’s default environment
  3. Runs DeclarativeSync to load everything
  4. Starts MCP servers and agents

Step 5: Publish to CloudShip

Users can then install with:

Command Reference

stn up Flags

stn down Flags

Common Workflows

Environment Variables Passed to Container

stn up automatically passes through these environment variables: Pass additional variables with --env: