Mandu mcp deploy

From konamgil/mandu · View interactive version

Mandu mcp deploy is an AI agent skill from the GitHub repository konamgil/mandu. 빌드/배포 파이프라인 워크플로우. "배포", "deploy", release 전 자동 호출. deploy.check 는 fail-fast 게이트. deploy.preview 로 프로덕션 리허설. manual build + guard + seo 나열 대신 aggregate 도구 사용.

How to use this skill

Skill file

Mandu MCP Deploy

프로덕션 배포 직전의 fail-fast 파이프라인. 개별 검증 도구를 손으로 나열하는

대신, mandu.deploy.check 와 mandu.deploy.preview 집계 도구를 쓴다.

Trigger

Recipe (순서 고정, 게이트 엄격)

mandu_build                     ← 프로덕션 빌드 시작
  └─> mandu_build_status        ← green 대기 (polling)
       └─> mandu.deploy.check   ← Tier-0 aggregate: guard+contract+manifest 병렬
            │                      ─ fail → 즉시 중단, deploy_preview 금지
            └─> mandu_write_seo_file  ← sitemap/robots/meta 확정
                 └─> mandu.deploy.preview ← 프로덕션 리허설 (Tier-0)
                      └─> 사용자에게 배포 승인 요청
                           └─> (사용자 승인) 외부 배포 실행

Step Detail

Step 1 — `mandu_build`

mandu_build({ profile: "production" })

alias of mandu.build. 프로덕션 번들 생성. 반환에 jobId / status 포함.

이 호출은 비동기일 수 있다 — 즉시 반환 후 Step 2 로 poll.

Step 2 — `mandu_build_status` (poll until green)

mandu_build_status({ jobId })

alias of mandu.build.status. status ∈ {pending, running, success, failed}.

CRITICAL: 빌드 failed 이면 mandu.deploy.check 절대 호출하지 않는다.

빌드가 깨진 상태에서 deploy check 를 돌리면 잘못된 positive/negative 가 나온다.

Step 3 — `mandu.deploy.check` (Fail-Fast Gate)

mandu.deploy.check({ target: "bun" })

반환:

blockers 예시:

각 blocker 는 가리키는 도구가 있다:

blocker 를 고치면 Step 1 부터 재실행. deploy_preview 로 건너뛰지 않는다.

Step 4 — `mandu_write_seo_file`

mandu_write_seo_file({ target: "sitemap" })
mandu_write_seo_file({ target: "robots" })
mandu_write_seo_file({ target: "meta" })

alias of mandu.seo.write. 프리뷰 도구 (mandu_preview_seo) 가 아니라

실제 파일 기록. 배포 전에 public/sitemap.xml, public/robots.txt 가 고정돼야 함.

선택 사항: 먼저 mandu_preview_seo 로 결과 확인 후 mandu_write_seo_file.

CI 에서는 바로 write.

Step 5 — `mandu.deploy.preview`

mandu.deploy.preview({ port: 4173 })

프로덕션 빌드를 로컬에서 serve. 스모크 테스트 용도:

preview 가 깨지면 배포 금지.

Step 6 — 외부 배포 (프레임워크 밖)

Docker / Fly / Vercel / Cloudflare 등. 이 단계는 mandu MCP 범위 밖이므로

mandu-deploy (task-shaped skill) 의 Dockerfile / CI 예시 참조.

절대 규칙

| # | 규칙 | 이유 |

|---|------|------|

| D-1 | deploy.check 실패 → 즉시 중단, preview 금지 | fail-fast. 깨진 빌드를 preview 해도 의미 없음 |

| D-2 | 빌드 failed → deploy.check 호출 금지 | 빌드 산출물이 없는데 check 돌리면 false negative |

| D-3 | mandu_write_seo_file 은 check green 이후 | check 실패 상태로 SEO 쓰면 잘못된 meta 확정 |

| D-4 | preview 깨지면 배포 중단 | 로컬에서 안 뜨는 빌드가 프로덕션에서 뜰 리 없다 |

| D-5 | 개별 검증 (guard_check, validate_contracts, validate_manifest) 를 손으로 나열하지 않는다 | deploy.check 가 이들을 병렬 집계. 수동 나열 = AP-7 (index 참조) |

| D-6 | deploy.check blocker 를 guard_heal / refactor 로 고칠 땐 safe-change 래핑 | 프로덕션 직전 파일 수정은 위험 변경 |

Anti-patterns

AP-7 — Manual Build Pipeline (index AP-7 재인용)

AP — preview 스킵

AP — write 전에 preview

AP — 빌드 실패 후 check 강행

AP — blocker 를 배포 전에 급하게 heal

Quick Reference

release 준비
  mandu_build                  (1 call)
  mandu_build_status           (poll, 1~n calls)
  mandu.deploy.check           (1 call, fail-fast gate)
    └ blocker 있으면 safe-change 로 escalate
  mandu_write_seo_file         (1~3 calls)
  mandu.deploy.preview         (1 call)
  ────────────────────────────
  green → 외부 배포
  실패   → 해당 단계에서 중단, 원인 수정 후 처음부터

표준 호출 수: 5~8 (polling 제외). 수동 파이프라인 (AP-7) 은 12+.

See Also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.