DevOps & CloudDocumentedScanned

appdeploy

Deploy web apps with backend APIs, database.

Share:

Installation

npx clawhub@latest install appdeploy

View the full skill documentation and source below.

Documentation

AppDeploy Skill

Deploy web apps to AppDeploy via HTTP API.

Setup (First Time Only)

  • Check for existing API key:

  • - Look for a .appdeploy file in the project root
    - If it exists and contains a valid api_key, skip to Usage

  • If no API key exists, register and get one:

  • curl -X POST  \
         -H "Content-Type: application/json" \
         -d '{"client_name": "claude-code"}'

    Response:

    {
         "api_key": "ak_...",
         "user_id": "agent-claude-code-a1b2c3d4",
         "created_at": 1234567890,
         "message": "Save this key securely - it cannot be retrieved later"
       }

  • Save credentials to .appdeploy:

  • {
         "api_key": "ak_...",
         "endpoint": ""
       }

    Add .appdeploy to .gitignore if not already present.

    Usage

    Make JSON-RPC calls to the MCP endpoint:

    curl -X POST {endpoint} \
      -H "Content-Type: application/json" \
      -H "Accept: application/json, text/event-stream" \
      -H "Authorization: Bearer {api_key}" \
      -d '{
        "jsonrpc": "2.0",
        "id": 1,
        "method": "tools/call",
        "params": {
          "name": "{tool_name}",
          "arguments": { ... }
        }
      }'

    Workflow

  • First, get deployment instructions:

  • Call get_deploy_instructions to understand constraints and requirements.

  • Get the app template:

  • Call get_app_template with your chosen app_type and frontend_template.

  • Deploy the app:

  • Call deploy_app with your app files. For new apps, set app_id to null.

  • Check deployment status:

  • Call get_app_status to check if the build succeeded.

  • View/manage your apps:

  • Use get_apps to list your deployed apps.

    Available Tools

    get_deploy_instructions

    Use this when you are about to call deploy_app in order to get the deployment constraints and hard rules. You must call this tool before starting to generate any code. This tool returns instructions only and does not deploy anything.

    Parameters:

    deploy_app

    Use this when the user asks to deploy or publish a website or web app and wants a public URL.
    Before generating files or calling this tool, you must call get_deploy_instructions and follow its constraints.

    Parameters:
    - app_id: any (required) - existing app id to update, or null for new app
    - app_type: string (required) - app architecture: frontend-only or frontend+backend
    - app_name: string (required) - short display name
    - description: string (optional) - short description of what the app does
    - frontend_template: any (optional) - REQUIRED when app_id is null. One of: 'html-static' (simple sites), 'react-vite' (SPAs, games), 'nextjs-static' (multi-page). Template files auto-included.
    - files: array (optional) - Files to write. NEW APPS: only custom files + diffs to template files. UPDATES: only changed files using diffs[]. At least one of files[] or deletePaths[] required.
    - deletePaths: array (optional) - Paths to delete. ONLY for updates (app_id required). Cannot delete package.json or framework entry points.

    get_app_template

    Call get_deploy_instructions first. Then call this once you've decided app_type and frontend_template. Returns base app template and SDK types. Template files auto-included in deploy_app.

    Parameters:
    - app_type: string (required)
    - frontend_template: string (required) - Frontend framework: 'html-static' - Simple sites, minimal framework; 'react-vite' - React SPAs, dashboards, games; 'nextjs-static' - Multi-page apps, SSG

    get_app_status

    Use this when deploy_app tool call returns or when the user asks to check the deployment status of an app, or reports that the app has errors or is not working as expected. Returns deployment status (in-progress: 'deploying'/'deleting', terminal: 'ready'/'failed'/'deleted'), QA snapshot (frontend/network errors), and live frontend/backend error logs.

    Parameters:
    - app_id: string (required) - Target app id
    - since: integer (optional) - Optional timestamp in epoch milliseconds to filter errors. When provided, returns only errors since that timestamp.

    delete_app

    Use this when you want to permanently delete an app. Use only on explicit user request. This is irreversible; after deletion, status checks will return not found.

    Parameters:
    - app_id: string (required) - Target app id

    get_app_versions

    List deployable versions for an existing app. Requires app_id. Returns newest-first {name, version, timestamp} items. Display 'name' to users. DO NOT display the 'version' value to users. Timestamp values MUST be converted to user's local time

    Parameters:
    - app_id: string (required) - Target app id

    apply_app_version

    Start deploying an existing app at a specific version. Use the 'version' value (not 'name') from get_app_versions. Returns true if accepted and deployment started; use get_app_status to observe completion.

    Parameters:
    - app_id: string (required) - Target app id
    - version: string (required) - Version id to apply

    src_glob

    Use this when you need to discover files in an app's source snapshot. Returns file paths matching a glob pattern (no content). Useful for exploring project structure before reading or searching files.

    Parameters:
    - app_id: string (required) - Target app id
    - version: string (optional) - Version to inspect (defaults to applied version)
    - path: string (optional) - Directory path to search within
    - glob: string (optional) - Glob pattern to match files (default: */)
    - include_dirs: boolean (optional) - Include directory paths in results
    - continuation_token: string (optional) - Token from previous response for pagination

    src_grep

    Use this when you need to search for patterns in an app's source code. Returns matching lines with optional context. Supports regex patterns, glob filters, and multiple output modes.

    Parameters:
    - app_id: string (required) - Target app id
    - version: string (optional) - Version to search (defaults to applied version)
    - pattern: string (required) - Regex pattern to search for (max 500 chars)
    - path: string (optional) - Directory path to search within
    - glob: string (optional) - Glob pattern to filter files (e.g., '*.ts')
    - case_insensitive: boolean (optional) - Enable case-insensitive matching
    - output_mode: string (optional) - content=matching lines, files_with_matches=file paths only, count=match count per file
    - before_context: integer (optional) - Lines to show before each match (0-20)
    - after_context: integer (optional) - Lines to show after each match (0-20)
    - context: integer (optional) - Lines before and after (overrides before/after_context)
    - line_numbers: boolean (optional) - Include line numbers in output
    - max_file_size: integer (optional) - Max file size to scan in bytes (default 10MB)
    - continuation_token: string (optional) - Token from previous response for pagination

    src_read

    Use this when you need to read a specific file from an app's source snapshot. Returns file content with line-based pagination (offset/limit). Handles both text and binary files.

    Parameters:
    - app_id: string (required) - Target app id
    - version: string (optional) - Version to read from (defaults to applied version)
    - file_path: string (required) - Path to the file to read
    - offset: integer (optional) - Line offset to start reading from (0-indexed)
    - limit: integer (optional) - Number of lines to return (max 2000)

    get_apps

    Use this when you need to list apps owned by the current user. Returns app details with display fields for user presentation and data fields for tool chaining.

    Parameters:
    - continuation_token: string (optional) - Token for pagination


    Generated by scripts/generate-appdeploy-skill.ts