deploy

deploy is a command for Claude Code from yunsy84/law_mcp. It costs 0 tokens per session (570 once invoked), scanned A, a copy of deploy, MIT.

A deployment command guide for the korean-law project and its shared production host. It describes the required sequence from committing code through publishing a package and deploying the combined server.

In plain words
What is it for?
Use it to check changes, run builds, publish an npm release, update the shared host, deploy it on Fly.io, verify health, and roll back when needed.
Why use it?
It prevents a direct deployment from replacing the shared server with only the law service, which would stop the other services hosted there.

Command for Claude Code

Part of the korean-law plugin — 1 command, 1 MCP server shipped together

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/yunsy84/law_mcp/deploy
Clone the repo
git clone --depth 1 https://github.com/yunsy84/law_mcp

Made for: Claude Code.

Or install korean-law, the plugin that ships this one along with the rest of its 1 command, 1 MCP server.

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/yunsy84/law_mcp/deploy.svg)](https://agentmods.dev/commands/yunsy84/law_mcp/deploy)
Your own site
<a href="https://agentmods.dev/commands/yunsy84/law_mcp/deploy"><img src="https://agentmods.dev/badge/commands/yunsy84/law_mcp/deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00000 $0.00570
Opus 5 $0.00000 $0.00285
Sonnet 5 $0.00000 $0.00114
Haiku 4.5 $0.00000 $0.00057

Measured 4d ago against content hash ffacda27da5c, 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.

9. 검증: `curl https://mcp.gomdori.app/healthz` (5개 서비스 up) + `/law` initialize 응답에 새 버전 확인
Origin

This is a copy

100% identical to deploy — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/deploy.md · 29 lines

What it actually says

커밋 + 푸시 + 통합 호스트 배포

⚠️ 2026-07-02부터 프로덕션은 gomdori-mcp 통합 호스트(fly 앱 korean-law-mcp, MCP 5종 동거)가 서빙합니다. 이 레포에서 fly deploy를 직접 실행하면 통합 이미지가 law 단독 이미지로 덮여 stats·patent·archhub·school까지 전부 죽습니다. 절대 금지.

실행할 작업

1단계: 커밋 & 푸시

  1. git status / git diff로 변경 확인
  2. git log -3 --oneline로 커밋 스타일 확인
  3. git add (단, .claude/memory/는 제외) → 한글 prefix 커밋(feat/fix/refactor/docs/chore) → git push

2단계: npm 릴리스

  1. npm run build로 빌드 확인 (실패 시 중단)
  2. npm version patch|minorgit push --follow-tags → 해당 태그의 GitHub Release 생성
    • .github/workflows/publish.yml이 npm trusted publishing(OIDC + provenance)으로 게시한다.
    • 로컬 npm publish 또는 장기 npm 토큰을 사용하지 않는다.

3단계: 통합 호스트 반영

  1. ~/workspace/gomdori-mcp/Dockerfile[email protected] 핀을 새 버전으로 갱신
  2. gomdori-mcp 레포 커밋·푸시
  3. cd ~/workspace/gomdori-mcp && fly deploy -c fly.production.toml
  4. 검증: curl https://mcp.gomdori.app/healthz (5개 서비스 up) + /law initialize 응답에 새 버전 확인

배포 환경

  • 통합 호스트: fly 앱 korean-law-mcp (512MB+swap) — gomdori-mcp/fly.production.toml
  • 공식 URL: https://mcp.gomdori.app/law (구 https://korean-law-mcp.fly.dev/mcp 하위호환 유지)
  • 롤백: fly releases -a korean-law-mcpfly deploy -a korean-law-mcp -i <직전 이미지>
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 · 29 lines · 0 tokens per session scan A ffacda27da5c

Subscribe to this mod's changes

deploy is a command published in the GitHub repository yunsy84/law_mcp (0 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 570 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to deploy, differing in 0 lines, and is treated as a copy.