debug
Debug an Apps in Toss mini-app across two environments — local browser (devtools panel, `window.__ait`, browser DevTools) and…
Wire the `ait-debugger` debug MCP server (`@apps-in-toss/debugger`) into the current project's MCP config (project scope, opt-in) — `.mcp.json` on Claude Code, `.cursor/mcp.json` on Cursor — so `/ait:debug` can run on-device CDP relay attach (environment 3). Idempotent JSON
Claude Code
$ npx -y skills add toss/apps-in-toss-harness --skill setup-debugger --agent claude-code
Codex
$ npx skills add toss/apps-in-toss-harness --skill setup-debugger -a codex -y
Cursor
$ npx skills add toss/apps-in-toss-harness --skill setup-debugger -a cursor -y
Gemini CLI
$ npx skills add toss/apps-in-toss-harness --skill setup-debugger -a gemini-cli -y
GitHub Copilot
$ npx skills add toss/apps-in-toss-harness --skill setup-debugger -a github-copilot -y
OpenCode
$ npx skills add toss/apps-in-toss-harness --skill setup-debugger -a opencode -y
Windsurf
$ npx skills add toss/apps-in-toss-harness --skill setup-debugger -a windsurf -y
name: setup-debugger
description: |
Wire the `ait-debugger` debug MCP server (`@apps-in-toss/debugger`) into the
current project's MCP config (project scope, opt-in) — `.mcp.json` on Claude
Code, `.cursor/mcp.json` on Cursor — so `/ait:debug` can
run on-device CDP relay attach (environment 3). Idempotent JSON merge —
preserves other server entries, never renames the `ait-debugger` key. An old
`ait-devtools` entry or an old `@apps-in-toss/debug-console` dependency
(0.3.0 and earlier names) is an upgrade to migrate, not "not installed".
Run THIS skill instead of hand-writing `.mcp.json` or inventing a server
entry — even when the request sounds like a plain JSON edit ("MCP 서버를
.mcp.json에 등록해줘", "디버거 서버 추가해줘"): the correct package, args,
and key live here. Installing the `debugger-client` package into the app
itself is `inject`, not this. Triggered by `/ait:setup-debugger`, no args.
argument-hint: ''
adapter-note: 'Host-branched MCP registration — Claude Code writes project `.mcp.json`, Cursor writes `.cursor/mcp.json` (same entry plus `"type": "stdio"`); step 2 carries the host detection and step 4 the payload. Other targets (Codex etc.) must replace this with that agent’s own MCP registration mechanism, together with debug §5.'`/ait:setup-debugger`는 on-device 디버깅(`/ait:debug` §5, 환경 3)이 쓰는 `ait-debugger` MCP 서버를 **현재 프로젝트의 MCP 설정 파일에 등록**한다. 이 파일은 호스트마다 다르다 — Claude Code는 `.mcp.json`, Cursor는 `.cursor/mcp.json`에 쓴다(판별은 2단계).
이 서버는 plugin manifest에 들어 있지 않다 — 디버깅은 프로젝트 전제 작업이고, 로컬 npx 데몬을 모든 세션에 상시 태우면 idle 비용과 공급망 표면이 생기므로 **프로젝트 단위 opt-in**이다. 이 skill이 그 opt-in의 단일 경로다.
완료되면:
`mcpServers."ait-debugger"` 항목이 생긴다.
뜨고, Cursor는 Cursor의 MCP 목록에서 같은 항목을 켜고 승인한다. 연결되면 `/ait:debug`의 `start_attach` QR attach 경로(환경 3)가 열린다 — 이 attach 경로는 Claude Code에서 확인된 경로다.
프로젝트 루트 스코프다. 루트가 아니면 이동을 안내하고 중단한다. 이 skill은 앱 코드나 진입점을 건드리지 않으므로 프로젝트가 웹이든 Unity든 엔진 HTML5 빌드든 같은 절차다.
다만 Node와 npx가 이 머신에 있어야 한다. 앱 스택과는 무관하게 MCP 서버를 띄우는 데만 쓴다.
> 이 skill은 콘솔 인증을 요구하지 않는다. 로컬 설정 파일 하나만 만진다.
ls package.json
있으면 루트다. 없으면 `package.json`이 없는 스택일 수 있으니 바로 중단하지 않는다. cwd가 프로젝트 루트인지 확인한다. Unity는 `Assets/`와 `Packages/manifest.json`이 있는 디렉터리가 루트다. 엔진 HTML5 빌드 등 그 밖의 스택은 프로젝트 설정 파일이 있는 디렉터리를 찾고, 확신이 없으면 사용자에게 어느 디렉터리에 `.mcp.json`을 둘지 묻는다. 루트가 아닌 곳이면 중단하고 안내한다:
프로젝트 루트를 찾지 못했습니다. 프로젝트 루트 디렉토리에서 다시 실행해주세요. 예: cd <project-root> && /ait:setup-debugger
**1차 근거는 에이전트 자신의 자기 인식이다** — 지금 이 skill을 실행하는 에이전트가 Claude Code인지 Cursor인지는 그 에이전트 자신이 가장 정확히 안다.
보조 신호로 프로젝트 루트의 흔적을 확인한다:
ls -d .cursor .mcp.json .cursor/mcp.json 2>/dev/null
먼저 만든다(`mkdir -p .cursor`).
쓰지 않고** 그렇게 안내한 뒤 중단한다.
분명 Claude Code 또는 Cursor인 경우) 자기 인식을 따른다 — 파일 흔적은 참고일 뿐 판정 근거가 아니다.
2단계에서 정한 파일이 이미 있으면 `Read`로 읽는다:
`@apps-in-toss/debug-console`이 있으면 — **미설치가 아니라 업그레이드가 필요한 상태**다. 이 점검을 가장 먼저 한다. 새 키 `ait-debugger`가 이미 4단계와 같게 있어도(키만 옮기고 패키지는 옛 것인 부분 업데이트) "이미 배선됨"으로 끝내지 않는다. 새 항목을 따로 추가하지 말고(같은 서버가 두 번 뜬다) **Read <이 skill의 base directory>/references/upgrade-check.md** 의 0절과 2-B절 절차대로 두 이름을 한꺼번에 새 이름으로 옮긴다. 한쪽만 옮기면 서로 연결되지 않는다.
옮기거나 지우지 말고 그대로 두며, 같은 이름의 다른 서버가 있어 건드리지 않았다고 사용자에게 알린다. 디버거 배선은 4단계로 따로 이어 간다.
변경 없이 "이미 배선됨"으로 보고하고 5단계로 간다. 단 그 버전이 `references/min-versions.json`의 최소 버전보다 낮으면 이 skill의 URL이 아직 최소 버전 릴리스를 가리키지 않는 것이니, 배선됨으로만 끝내지 말고 그 사실을 함께 알린다.
**Read <이 skill의 base directory>/references/upgrade-check.md** 의 절차대로 old→new를 보여주고 동의를 받은 뒤 그 URL 하나만 바꾼다. 같은 문서의 1-B 절차로 프로젝트 `package.json`의 `@apps-in-toss/debugger-client` URL도 함께 점검한다. 최소 버전은 `references/min-versions.json`이 정한다. 이 값보다 낮은 `ait-debugger` 항목(Release URL 형태)은 신규 배선이 아니라 업그레이드 권고로 다룬다.
사용자 결정을 받는다(커스텀 런처를 쓰고 있을 수 있다).
2단계에서 정한 파일에 아래 항목을 merge한다 — **기존의 다른 서버 항목은 그대로 보존**하고 `ait-debugger` 키만 추가한다. Claude Code(`.mcp.json`)는 이 형태다:
{
"mcpServers": {
"ait-debugger": {
"command": "npx",
"args": ["-y", "-p", "https://github.com/toss/apps-in-toss-harness/releases/download/debugger-v0.5.0/apps-in-toss-debugger-0.5.0.tgz", "debugger"]
}
}
}Cursor(`.cursor/mcp.json`)는 같은 항목에 `"type": "stdio"`가 첫 키로 붙는다:
{
"mcpServers": {
"ait-debugger": {
"type": "stdio",
"command": "npx",
"args": ["-y", "-p", "https://github.com/toss/apps-in-toss-harness/releases/download/debugger-v0.5.0/apps-in-toss-debugger-0.5.0.tgz", "debugger"]
}
}
}스스로 검증하지 않는다. 배선한 뒤 사용자가 원하면 릴리즈 asset의 sha256과 대조할 수 있다(릴리즈는 발행 시점에 잠겨 값이 바뀌지 않는다):
gh api repos/toss/apps-in-toss-harness/releases/tags/debugger-v<버전> --jq '.assets[] | select(.name|endswith(".tgz")) | .digest'
curl -sSL "<위 tarball URL>" | shasum -a 256두 값이 다르면 배선하지 않고 사용자에게 보고한다. 이 대조는 자동으로 하지 않는다.
`/ait:debug`의 도구 참조가 이 문자열에 결합돼 있다. 0.3.0 이하는 `ait-devtools` 키를 썼고, 그 옛 키 게이트는 eval 쪽에 호환용으로 남아 있다. 이 결합은 로컬 `eval/e2e/driver.test.ts`(re
앱인토스 미니앱을 AI 코딩 에이전트와 대화하며 만드는 플러그인 ait가 들어 있는 저장소입니다. "출석 체크 미니앱 만들고 싶어"라고 말하면 에이전트가 기획을 정리하고, 프로젝트를 만들고, 화면을 그리고, 내 폰의 토스 앱에 띄워 보여 줍니다. 검수 요청도 에이전트 안에서 합니다. Claude Code, Codex, Cursor에서 쓸 수 있습니다. 0.3.x 이하에서 올라오는 분은 먼저 .github/updating.md를 읽어 주세요.
Debug an Apps in Toss mini-app across two environments — local browser (devtools panel, `window.__ait`, browser DevTools) and…
Build and fix mini-app screens. Run it for "화면 만들어줘", "출석 체크 화면 그려줘", "화면이 구린데 예쁘게 해줘", "디자인 좀 봐줘" — it writes and edits the…
Implement an Apps in Toss SDK feature in the user's existing project: banner / interstitial / rewarded ads, in-app purchase…
Patch an existing Apps in Toss mini-app's build setup. Three facets: `/ait:inject-devtools` adds the `@apps-in-toss/devtools`…
Pre-launch check, review request and rejection handling for an Apps in Toss mini-app (검수 = the Apps in Toss app review, not code…
Scaffold a new Apps in Toss mini-app by driving the official `create-ait-app` CLI non-interactively (`--inline`, always…
Expert assistance for next-forge — a production-grade Turborepo template for Next.js SaaS apps. Triggers on questions about…
Build or change an app on EveryApp: create one, add a feature, a page, a table, an AI tool, a capability, a public route or a…
Use when the user mentions Nubase broadly, wants a backend for an AI-generated app, or needs to deploy/publish generated code…