Skip to main content

GitOps Workflow

Station is designed for GitOps - version control your agent configurations, MCP templates, and variables just like infrastructure code.

Why GitOps?

Directory Structure

A typical Station GitOps repository:

Getting Started

1. Create a Git Repository

2. Initialize Station

3. Commit Initial Configuration

4. Push to Remote

Team Workflow

Clone and Run

Team members can clone and run Station with your configuration:

Making Changes

  1. Create a branch:
  2. Make changes (add agents, update configs)
  3. Test locally:
  4. Commit and push:
  5. Create Pull Request for team review

Code Review

Agent changes are reviewable like any code:

Configuration Files

config.yaml

Global Station configuration:

template.json

MCP server configurations with template variables:

variables.yml

Environment-specific values (keep secrets out of Git!):
Best practice: Use environment variables for secrets:

Environment Management

Multiple Environments

Station supports multiple environments for dev/staging/prod:

Switching Environments

Environment-Specific Configs

Each environment has its own:
  • agents/ - Agent definitions
  • template.json - MCP server configs
  • variables.yml - Environment-specific values

CI/CD Integration

GitHub Actions Example

Deploy on Merge

Secrets Management

Never Commit Secrets

Add to .gitignore:

Use Environment Variables

Template for Team

Create a variables.yml.example:

Best Practices

  1. One repo per team/project - Keep related agents together
  2. Use branches for changes - Never commit directly to main
  3. Review agent changes - Treat prompts like code
  4. Test before merging - Run agents locally first
  5. Keep secrets out of Git - Use environment variables
  6. Document your agents - Use clear descriptions in metadata
  7. Version your prompts - Git history shows evolution

Rollback

Revert a Change

Restore Previous Version

Next Steps