AI 에이전트용 MCP

Lagsmith에는 MCP 서버가 내장되어 있습니다. Claude Code, Cursor, Codex, Claude Desktop, Windsurf 등 MCP를 지원하는 AI 코딩 에이전트는 이 서버로 다음 작업을 할 수 있습니다.

  • 시뮬레이터와 앱 목록 확인,
  • 앱의 네트워크 설정 및 초기화,
  • 요청 모니터링으로 앱 다시 실행,
  • 앱의 요청 읽기,
  • 엔드포인트 실패 또는 모의 응답 처리.

Lagsmith는 테스트 중인 앱만 느리게 하므로 에이전트 자체의 연결은 최고 속도를 유지합니다.

MCP 서버는 앱 안의 /Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp에 포함되어 있으므로 Lagsmith가 응용 프로그램 폴더에 있어야 합니다. MCP를 포함한 자동화 기능은 Pro에 포함되며 14일 체험판에서도 사용할 수 있습니다.

Claude Code

터미널에서 다음 명령을 한 번 실행합니다.

claude mcp add --scope user lagsmith -- "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"

--scope user를 지정하면 모든 프로젝트에서 Lagsmith를 사용할 수 있습니다. 새 Claude Code 세션을 시작하고 /mcp를 실행해 연결되었는지 확인하십시오.

Cursor

~/.cursor/mcp.json(또는 프로젝트의 .cursor/mcp.json)에 다음을 추가합니다.

~/.cursor/mcp.json
{
  "mcpServers": {
    "lagsmith": {
      "command": "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"
    }
  }
}

Codex

~/.codex/config.toml에 다음을 추가합니다.

~/.codex/config.toml
[mcp_servers.lagsmith]
command = "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"

Claude Desktop

Claude Desktop에서 Settings › Developer › Edit Config를 열고 다음을 추가합니다.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "lagsmith": {
      "command": "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"
    }
  }
}

그런 다음 Claude Desktop을 재시작합니다.

Windsurf

Windsurf의 MCP 설정에 다음을 추가합니다.

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "lagsmith": {
      "command": "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"
    }
  }
}

설정 파일에 이미 다른 서버가 있다면 파일을 덮어쓰지 말고 기존 mcpServers 섹션 안에 lagsmith 항목을 추가하십시오.

도구

Lagsmith의 MCP 서버는 에이전트에 10개의 도구를 제공합니다.

도구기능주요 파라미터
list_targets실행 중인 시뮬레이터와 해당 앱, 실행 중인 Mac 앱, 프리셋, 현재 규칙없음
status모든 규칙과 각 규칙의 동작, 프록시 실행 여부없음
set_network앱 하나의 네트워크를 느리게 하거나 끊기app, simulator; preset 또는 down/up (kbps), latency/jitter (ms), loss (%); failure (airplane, refuse, timeout, drop, outages); hosts, hosts_mode
reset_network최고 속도로 복원하고 앱 감시는 유지app, simulator
stop_watching앱의 규칙을 완전히 끄기app, simulator
relaunch_app시뮬레이터 앱을 요청 모니터링으로 다시 실행app, simulator
get_requests앱의 최근 HTTP 요청(최신순)app, simulator, limit, filter (예: is:failed, status:5xx), include_bodies
fail_endpoint나머지는 정상 동작하는 상태에서 엔드포인트 하나만 실패시키기app, simulator, pattern, kind (offline, timeout, status, delay), value
mock_endpoint엔드포인트 하나에 가짜 응답 반환app, simulator, pattern, status, body, content_type, delay
clear_endpoints엔드포인트 실패와 모의 응답 제거app, simulator, pattern

세션 예시

> 결제 API가 503을 반환하는 상태로 3G에서 체크아웃 UI 테스트를 실행하고, 무엇이 깨지는지 알려 줘.
먼저 시뮬레이터에서 앱을 찾겠습니다.
lagsmith - list_targets (MCP)
simulators: iPhone 17 Pro (booted)apps: com.pantryhq.Pantry, com.apple.mobilesafari, …presets: Edge, 3G, DSL, LTE, WiFi, Very Bad Network, 100% Loss
lagsmith - set_network (MCP)(app: "com.pantryhq.Pantry", simulator: "booted", preset: "3G")
{"ok": true, "rule": "Pantry", "preset": "3G", "conditions": {"down": 780, "up": 330, "latency": 200}}
lagsmith - fail_endpoint (MCP)(app: "com.pantryhq.Pantry", simulator: "booted", pattern: "api.pantryhq.app/v1/payments", kind: "status", value: 503)
{"ok": true, "endpoints": [{"pattern": "api.pantryhq.app/v1/payments", "kind": "status", "value": 503}]}
lagsmith - relaunch_app (MCP)(app: "com.pantryhq.Pantry", simulator: "booted")
{"ok": true, "relaunched": ["Pantry on iPhone 17 Pro"]}
Bash(xcodebuild test -scheme PantryUITests -only-testing:PantryUITests/CheckoutTests -destination 'platform=iOS Simulator,name=iPhone 17 Pro')
Test Suite 'CheckoutTests' started✓ testCartLoads (4.8 s)✓ testApplyCoupon (6.1 s)✗ testPlaceOrder (30.0 s): Failed to find "Order confirmed" within 30 sExecuted 3 tests, with 1 failure
lagsmith - get_requests (MCP)(app: "com.pantryhq.Pantry", simulator: "booted", filter: "host:api.pantryhq.app is:failed", include_bodies: true)
POST https://api.pantryhq.app/v1/payments 503 injected by Lagsmith 2 msPOST https://api.pantryhq.app/v1/payments 503 injected by Lagsmith 1 msPOST https://api.pantryhq.app/v1/payments 503 injected by Lagsmith 1 ms(3 requests, 0.4 s apart)
lagsmith - reset_network (MCP)(app: "com.pantryhq.Pantry", simulator: "booted")
{"ok": true, "preset": "No Throttling"}
찾았습니다. 3G에서 장바구니와 쿠폰 흐름은 문제없지만, 결제 API가 503을 반환하면: 1. PaymentService가 백오프 없이 3번 재시도(0.4초 간격)한 뒤 아무 알림 없이 포기합니다. 2. 체크아웃 화면의 스피너가 영원히 돌아갑니다. 결제 실패에 대한 오류 상태가 없어서 testPlaceOrder가 "Order confirmed"를 기다리다 시간 초과됩니다. CheckoutView에 지수 백오프와 "Try again" 버튼이 있는 오류 상태를 추가한 다음, 같은 조건에서 테스트를 다시 실행할까요?
Lagsmith의 MCP 서버를 사용하는 Claude Code 세션 예시입니다. 에이전트는 최고 속도를 유지하고 Pantry만 3G로 동작합니다.

프롬프트 예시

  • “3G에서 모니터링을 켜고 앱을 다시 실행한 다음, 로그인해서 2초보다 오래 걸린 요청을 나열해 줘.”
  • “앱을 에어플레인 모드로 바꾸고 오프라인 배너가 나타나는지 확인해 줘.”
  • “POST /v1/orders가 500을 반환하게 하고, 앱에 재시도 버튼이 표시되는지 확인해 줘.”
Mac용 다운로드

14일 Pro 체험판이 포함된 무료 다운로드. 계정도 카드도 필요 없습니다. macOS 13 Ventura 이상.