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)에 다음을 추가합니다.
{
"mcpServers": {
"lagsmith": {
"command": "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"
}
}
} Codex
~/.codex/config.toml에 다음을 추가합니다.
[mcp_servers.lagsmith]
command = "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp" Claude Desktop
Claude Desktop에서 Settings › Developer › Edit Config를 열고 다음을 추가합니다.
{
"mcpServers": {
"lagsmith": {
"command": "/Applications/Lagsmith.app/Contents/MacOS/lagsmith-mcp"
}
}
} 그런 다음 Claude Desktop을 재시작합니다.
Windsurf
Windsurf의 MCP 설정에 다음을 추가합니다.
{
"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 |
세션 예시
프롬프트 예시
- “3G에서 모니터링을 켜고 앱을 다시 실행한 다음, 로그인해서 2초보다 오래 걸린 요청을 나열해 줘.”
- “앱을 에어플레인 모드로 바꾸고 오프라인 배너가 나타나는지 확인해 줘.”
- “POST /v1/orders가 500을 반환하게 하고, 앱에 재시도 버튼이 표시되는지 확인해 줘.”