deploy

deploy is a command for Claude Code from sawadari/requirements-mcp-server. It costs 8 tokens per session (1,988 once invoked), scanned A, original, MIT.

A deployment command that checks, builds, and publishes an application to Firebase Hosting. Staging is a testing environment; production is the live environment used by users.

In plain words
What is it for?
Use it to deploy to staging or production, run pre-deployment checks, perform a post-deployment health check, and roll back a failed deployment.
Why use it?
It catches type, test, and build failures before deployment and checks the application afterward. If the health check fails, it can restore the previous hosted version.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sawadari/requirements-mcp-server/deploy
Clone the repo
git clone --depth 1 https://github.com/sawadari/requirements-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/sawadari/requirements-mcp-server/deploy.svg)](https://agentmods.dev/commands/sawadari/requirements-mcp-server/deploy)
Your own site
<a href="https://agentmods.dev/commands/sawadari/requirements-mcp-server/deploy"><img src="https://agentmods.dev/badge/commands/sawadari/requirements-mcp-server/deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00008 $0.01988
Opus 5 $0.00004 $0.00994
Sonnet 5 $0.00002 $0.00398
Haiku 4.5 $0.00001 $0.00199

Measured 4d ago against content hash 2f0a62223881, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -f https://your-app.web.app/health
.claude/commands/deploy.md · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploy Command

DeploymentAgentを使用してアプリケーションをデプロイします。

使用方法

/deploy [environment]

パラメータ

  • environment (オプション): デプロイ環境
    • staging (デフォルト): ステージング環境
    • production: プロダクション環境

実行内容

1. Pre-Deployment Checks

# TypeScriptコンパイル確認
npm run typecheck

# テスト実行
npm test -- --run

# ビルド実行
npm run build

2. Firebase Deploy

# Staging
firebase deploy --only hosting:staging

# Production (確認プロンプト付き)
firebase deploy --only hosting:production

3. Health Check

デプロイ後、ヘルスチェックURLに自動アクセスして動作確認:

curl -f https://your-app.web.app/health

4. Rollback (失敗時)

ヘルスチェックが失敗した場合、自動的に前のバージョンにロールバック:

firebase hosting:rollback

デプロイフロー

graph TD
    A[/deploy実行] --> B[Pre-deployment Checks]
    B --> C{テスト合格?}
    C -->|No| D[エラー: デプロイ中止]
    C -->|Yes| E[ビルド実行]
    E --> F[Firebase Deploy]
    F --> G[Health Check]
    G --> H{正常?}
    H -->|No| I[自動Rollback]
    H -->|Yes| J[デプロイ完了]
    I --> K[Tech Leadにエスカレーション]

必要な環境変数

# .env
FIREBASE_PROJECT_ID=your-firebase-project-id
FIREBASE_TOKEN=your-firebase-token  # CI/CD用

Firebase Tokenの取得方法

# ローカル開発
firebase login

# CI/CD用トークン
firebase login:ci
# 表示されたトークンを FIREBASE_TOKEN に設定

GitHub Secretsの設定

GitHub Actions経由でデプロイする場合:

  1. Repository Settings → Secrets and variables → Actions
  2. 以下のSecretsを追加:
    • FIREBASE_TOKEN: Firebase CI token
    • ANTHROPIC_API_KEY: Claude API key (既存)

デプロイ設定

firebase.json

{
  "hosting": [
    {
      "target": "staging",
      "public": "dist",
      "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
      "rewrites": [
        {
          "source": "**",
          "destination": "/index.html"
        }
      ]
    },
    {
      "target": "production",
      "public": "dist",
      "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
      "rewrites": [
        {
          "source": "**",
          "destination": "/index.html"
        }
      ]
    }
  ]
}

Read the full file on GitHub · 367 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 367 lines · 8 tokens per session scan A 2f0a62223881

Subscribe to this mod's changes

deploy is a command published in the GitHub repository sawadari/requirements-mcp-server (2 stars, last pushed 10mo ago), licensed MIT. It adds 8 tokens to every session and 1,988 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.