requirements-mcp-server: Command for Claude Code

.claude/commands/deploy.md

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

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is sawadari/requirements-mcp-server's own configuration. It tells Claude Code how to work on requirements-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything requirements-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sawadari/requirements-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sawadari/requirements-mcp-server/main/.claude/commands/deploy.md
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deploy

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00008 $0.01988
Opus 5.5 $0.00003 $0.00795
Sonnet 5.5 $0.00002 $0.00398
Haiku 4.5 $0.00001 $0.00199

Measured 2mo ago against content hash 2f0a62223881, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 12mo ago), licensed MIT. It adds 8 tokens to every session and 1,988 once invoked, about $0.0000 per session on Opus 5.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.

Related

deploy compared with commands from other repositories

deploy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deploysawadari/requirements-mcp-serverCommand212mo agoMITA8Claude Code
cost-optimizewshobson/agentsCommand42kyesterdayMITA26Claude Code
deploybutterbase-ai/butterbase-skillsCommand5356d agoMITA20Claude Code
envvercel/vercel-pluginCommand326yesterdaynoneA35Claude Code
firebase-publishPierry/harness-kitCommand41mo agoMITA20Claude Code
scanprajapatimehul/claude-aws-cost-saverCommand244mo agoMITA6Claude Code
migrationdatabayt/hogwartsCommand183d agononeA4Claude Code