korean-law-mcp: Command for Claude Code

.claude/commands/deploy.md

deploy is a command for Claude Code from chrisryugj/korean-law-mcp. It costs 0 tokens per session (570 once invoked), scanned A, original, MIT.

A deployment command guide for this project’s npm release process and its shared production MCP host. MCP is a standard way for software tools to expose capabilities to AI agents.

In plain words
What is it for?
Use it to check changes, commit and push, build and version an npm package, update the integration host, deploy it, and verify service health.
Why use it?
It prevents deploying the wrong service and replacing the shared production image that serves several applications.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is chrisryugj/korean-law-mcp's own configuration. It tells Claude Code how to work on korean-law-mcp 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 korean-law-mcp configures →

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

About the project

Korean Law MCP is an MCP server and command-line tool that lets AI assistants search Korean statutes, precedents, ordinances, and other legal materials from the Ministry of Government Legislation. Legal researchers and AI workflows use it to retrieve Korean law, verify citations, compare legal provisions over time, and inspect relationships between regulations. Catalogue add-ons provide commands, instructions, and integrations for using the server with coding agents.

chrisryugj/korean-law-mcp · 2,561 stars · on GitHub · npmjs.com

Reuse

Borrowing it

Nothing to install: this file belongs to chrisryugj/korean-law-mcp. 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/chrisryugj/korean-law-mcp/main/.claude/commands/deploy.md
Clone the repo
git clone --depth 1 https://github.com/chrisryugj/korean-law-mcp

Made for: Claude Code.

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

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/chrisryugj/korean-law-mcp/deploy.svg)](https://agentmods.dev/commands/chrisryugj/korean-law-mcp/deploy)
Your own site
<a href="https://agentmods.dev/commands/chrisryugj/korean-law-mcp/deploy"><img src="https://agentmods.dev/badge/commands/chrisryugj/korean-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. 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.00000 $0.00570
Opus 5 $0.00000 $0.00285
Sonnet 5 $0.00000 $0.00114
Haiku 4.5 $0.00000 $0.00057

Measured 8d ago against content hash ffacda27da5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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

Copies of this mod

5 near-identical copies found in the catalogue:

  • deploy — 100% identical, 0 lines differ
  • deploy — 86% identical, 6 lines differ
  • deploy — 86% identical, 6 lines differ
  • deploy — 86% identical, 6 lines differ
  • deploy — 86% identical, 6 lines differ
.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. 8d 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 chrisryugj/korean-law-mcp (2,561 stars, last pushed 2d 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). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.