---
name: shipcast-agent
description: Use when installing, updating, or configuring Shipcast for Codex, Claude Code, Cloud Code, or another local MCP-capable agent.
---

# Shipcast Agent Skill

Install Shipcast from the public plugin repository:

`https://github.com/chekusu/shipcast-agent-plugins`

Use the agent's native plugin system when available. Do not install Shipcast by
running a remote shell script.

## Rules

- Do not run `curl ... | sh`, `curl ... | bash`, or any remote install script.
- Before installing or updating, tell the user which repository or files will
  be fetched and which local plugin cache/config paths will be changed.
- After installing or updating, check Shipcast login state and start the login
  flow if the token is missing or expired.
- Do not delete `$HOME/.shipcast/auth.json` unless the user explicitly asks to
  log out. Plugin updates should preserve the Shipcast login token.
- Restart the current agent session after plugin installation or update.

## Choose The Install Path

Use this order:

1. If `codex --version` works, use **Codex**.
2. Else if `claude --version` works, use **Claude Code**.
3. Else if the agent supports MCP config, use **Other MCP Agents**.

## Codex

Install from the Git marketplace:

```bash
codex plugin marketplace add https://github.com/chekusu/shipcast-agent-plugins.git --ref main --sparse .agents/plugins --sparse plugins/shipcast
codex plugin add shipcast@shipcast
codex mcp get shipcast
```

If an older local install exists as `shipcast@shipcast-local`, remove that old
selector after confirming it is Shipcast, then install `shipcast@shipcast`:

```bash
codex plugin list --json
codex plugin remove shipcast@shipcast-local
codex plugin add shipcast@shipcast
```

Check login and authenticate when needed:

```bash
node "$HOME/.codex/plugins/cache/shipcast/shipcast/0.1.1/mcp/server.mjs" status
node "$HOME/.codex/plugins/cache/shipcast/shipcast/0.1.1/mcp/server.mjs" auth
```

For a headless machine:

```bash
node "$HOME/.codex/plugins/cache/shipcast/shipcast/0.1.1/mcp/server.mjs" auth --headless
```

Update an existing Codex install:

```bash
codex plugin marketplace upgrade shipcast
codex plugin add shipcast@shipcast
node "$HOME/.codex/plugins/cache/shipcast/shipcast/0.1.1/mcp/server.mjs" status
```

If `status` reports unauthorized or expired, run `auth` or `auth --headless`.

## Claude Code

Install from the Git marketplace:

```bash
claude plugin marketplace add https://github.com/chekusu/shipcast-agent-plugins.git
claude plugin install shipcast@shipcast
```

Check login by locating the installed MCP server:

```bash
SHIPCAST_SERVER="$(find "$HOME/.claude/plugins/cache/shipcast/shipcast" -path "*/mcp/server.mjs" -print -quit)"
node "$SHIPCAST_SERVER" status
node "$SHIPCAST_SERVER" auth
```

For a headless machine:

```bash
node "$SHIPCAST_SERVER" auth --headless
```

Update an existing Claude Code install:

```bash
claude plugin marketplace update shipcast
claude plugin update shipcast@shipcast
SHIPCAST_SERVER="$(find "$HOME/.claude/plugins/cache/shipcast/shipcast" -path "*/mcp/server.mjs" -print -quit)"
node "$SHIPCAST_SERVER" status
```

If `status` reports unauthorized or expired, run `auth` or `auth --headless`.

## Other MCP Agents

For agents that do not support Codex or Claude Code plugins, clone the public
repo and register the MCP server with the agent's normal MCP config mechanism:

```bash
mkdir -p "$HOME/.shipcast"
git clone https://github.com/chekusu/shipcast-agent-plugins.git "$HOME/.shipcast/shipcast-agent-plugins"
cd "$HOME/.shipcast/shipcast-agent-plugins/plugins/shipcast"
node ./mcp/server.mjs auth
node ./mcp/server.mjs status
```

Use this MCP config shape, replacing `$HOME` with an absolute path if the agent
does not expand environment variables:

```json
{
  "mcpServers": {
    "shipcast": {
      "cwd": "$HOME/.shipcast/shipcast-agent-plugins/plugins/shipcast",
      "command": "node",
      "args": ["./mcp/server.mjs"],
      "env": {
        "SHIPCAST_API_BASE_URL": "https://api.shipcast.dev"
      }
    }
  }
}
```

Update a generic MCP install:

```bash
git -C "$HOME/.shipcast/shipcast-agent-plugins" pull --ff-only
cd "$HOME/.shipcast/shipcast-agent-plugins/plugins/shipcast"
node ./mcp/server.mjs status
```

For a headless machine, use `node ./mcp/server.mjs auth --headless` when login
is required.

## Public Bundle Fallback

If Git marketplace installation is unavailable, fetch and inspect these public
files manually, then register the MCP server using the same config shape:

- `https://shipcast.dev/codex-plugin/shipcast/plugin.json`
- `https://shipcast.dev/codex-plugin/shipcast/mcp.json`
- `https://shipcast.dev/codex-plugin/shipcast/mcp/server.mjs`
- `https://shipcast.dev/codex-plugin/shipcast/skills/shipcast/SKILL.md`
- `https://shipcast.dev/codex-plugin/shipcast/assets/shipcast.svg`
