Skip to content

upsun/ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upsun plugin for AI coding agents

⚠️ Warning: This project is in early and active development. Things may change without notice.

Upsun plugin for AI coding agents and IDEs. Manage Upsun projects with skills and MCP server. The plugin lives in plugins/upsun/ and can be shared across multiple agents. Plugins are available for Claude Code, with support for other IDEs coming soon.

What's included

Component Location Description
Skills plugins/upsun/skills/ using-upsun – 130+ CLI commands for deployments, environments, backups, databases, and more
MCP Server plugins/upsun/.mcp.json Natural-language infrastructure management via Upsun MCP

Installation

Prerequisites

  1. Upsun CLI v5.6.0 or higher installed and authenticated

    # Install Upsun CLI (if not already installed)
    curl -fsSL https://raw.githubusercontent.com/platformsh/cli/main/installer.sh | VENDOR=upsun bash
    
    # Or via brew
    brew install platformsh/tap/upsun-cli
    
    # Authenticate
    upsun auth:browser-login
  2. AI coding agent or IDE – e.g. Claude Code, Cursor, or other MCP-compatible tools

Claude Code

# In Claude Code, run:
/plugin marketplace add upsun/ai
/plugin install upsun@upsun

Other IDEs

Install instructions for Cursor, VS Code, and other IDEs will be added as support is released.

Alternative: Skills only (manual)

To install just the skill without the full plugin, copy plugins/upsun/skills/using-upsun to your agent's skills directory. For Claude Code:

mkdir -p ~/.claude/skills
git clone https://github.com/upsun/ai.git /tmp/upsun-ai
cp -r /tmp/upsun-ai/plugins/upsun/skills/using-upsun ~/.claude/skills/upsun

Configure Permissions

Plugin installation (automatic)

If you installed via the plugin system, recommended permissions are automatically suggested. Accept them to enable full functionality.

Manual installation

Add Upsun CLI permissions to your agent's settings. For Claude Code, create or edit .claude/settings.local.json:

{
  "permissions": {
    "allow": [
      "Bash(upsun auth:*)",
      "Bash(upsun environment:*)",
      "Bash(upsun activity:*)",
      "Bash(upsun backup:*)",
      "Bash(upsun project:*)",
      "Bash(upsun logs:*)",
      "Bash(upsun resources:*)",
      "Bash(upsun metrics:*)",
      "Bash(upsun user:*)",
      "Bash(upsun organization:*)"
    ]
  }
}

For global permissions, edit ~/.claude/settings.json with the same structure. For other IDEs, refer to your agent's documentation for configuring permissions.

MCP Server (Optional)

The plugin includes the Upsun MCP Server for natural-language infrastructure management. To enable it, set the UPSUN_API_TOKEN environment variable to your Upsun API token (generate one in Upsun Console → Account settings):

export UPSUN_API_TOKEN=your_token_here

Verify Installation

  1. Open your AI coding agent or IDE in a project
  2. Ask: "Can you help me deploy to Upsun?"
  3. The plugin's skill should activate and offer assistance

Usage

The skill activates automatically when you mention Upsun-related tasks:

  • "Deploy to Upsun"
  • "Create a new Upsun environment"
  • "Backup the production environment"
  • "Check Upsun environment status"
  • "Scale Upsun resources"
  • "Manage Upsun users"

Quick Start Examples

Deploy to production:

"Deploy my changes to the production environment on Upsun"

Create and test a feature branch:

"Create a new feature environment for testing my authentication changes"

Health check:

"Check the health of my production Upsun environment"

Backup before changes:

"Create a verified backup of production before I deploy"

Resource optimization:

"Audit resource usage across all my Upsun environments"

Skill documentation

Skill architecture

The using-upsun skill uses a progressive disclosure architecture:

  1. SKILL.md (entry point) - Workflow navigation and common operations
  2. references/ (on-demand) - Detailed documentation loaded as needed

This design minimizes context usage while providing comprehensive coverage.

Plugin structure

All plugin components live inside plugins/upsun/. When adding new functionality, place it in the corresponding subdirectory:

plugins/upsun/
├── .claude-plugin/
│   └── plugin.json        # Plugin manifest
├── .mcp.json              # MCP server configuration
└── skills/
    └── using-upsun/       # Upsun skill

This structure means the plugin is self-contained and reusable — any agent that installs upsun@upsun gets all components automatically.

Adding documentation

  1. Update existing reference files in plugins/upsun/skills/using-upsun/references/
  2. Add cross-references to related documents
  3. Update SKILL.md if adding commonly-used commands
  4. Test that your agent can find and use the new documentation

Requirements

  • Upsun CLI v5.6.0 or higher
  • AI coding agent or IDE (Claude Code, Cursor, etc.)
  • Authenticated Upsun account

License

This project is licensed under the MIT - see the LICENSE file for details.

Support

Acknowledgments

  • Upsun plugin for AI coding agents and the Upsun Platform-as-a-Service
  • Uses Upsun CLI v5.6.0+ command structure

About

Upsun skill for coding agents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages