# simulator_services

> 팀 Simulator의 백그라운드 서비스를 범주별로 나열하고 켜거나 끄는 MCP 도구입니다.

Source: https://air.build/ko/docs/mcp-tools/simulator_services/

`simulator_services`는 실행 중인 팀 Simulator에서 어떤 iOS 백그라운드 서비스가 실행되는지 범주별로, 그리고 그 서비스가 필요한 기능별로 묶어 보여 줍니다. `enable`이나 `disable`을 쓰면 서비스를 켜거나 끕니다. Simulator는 앱에 거의 필요 없는 서비스를 끈 채로 시작합니다. 앱에 그런 서비스(예: 푸시 알림, iCloud, Siri)가 필요하면 여기서 켜세요. `enable`이나 `disable`이 없으면 도구는 읽기만 합니다. 기기는 공유되므로 변경은 기기를 사용하는 모두에게 적용됩니다. 파괴적이지는 않지만, 서비스를 끄면 기능이 작동하지 않을 수 있습니다.

켠 서비스는 기기가 다시 시작되거나 SpringBoard가 다시 시작될 때까지 시작되지 않을 수 있습니다. 그러면 `pending` 아래에 나열되고 `restartRequired`가 `true`가 됩니다. 둘 다 실행 중인 앱을 종료하므로 도구는 스스로 아무것도 다시 시작하지 않습니다. 변경을 마치려면 [shutdown_simulator](https://air.build/ko/docs/mcp-tools/shutdown_simulator/)와 [start_simulator](https://air.build/ko/docs/mcp-tools/start_simulator/)로 Simulator를 다시 시작하세요.

| 읽기 전용 | 파괴적 | 멱등 |
| --- | --- | --- |
| 아니요 | 아니요 | 아니요 |

## 항목

`enable`과 `disable`의 각 항목은 다음 중 하나입니다.

- `all`: 목록의 모든 서비스(`disable`에서는 끌 수 있는 모든 서비스)
- `slim`: 새 Simulator가 끄는 서비스 묶음
- 범주 id: `widgets`, `siri`, `search`, `icloud`, `store`, `pim`, `web`, `family`, `health`, `photos`, `apps`, `messaging`, `connectivity`, `telemetry`, `other`, `management`
- 기능 id: `push`, `storekit`, `app-store`, `universal-links`, `spotlight`, `siri`, `icloud`, `keychain-sync`, `contacts`, `calendar`, `reminders`, `mail`, `photos`, `health`, `homekit`, `imessage`, `widgets`, `wallet`, `maps`, `weather`, `news`, `game-center`, `find-my`, `screen-time`
- 범주의 `disabled`에 나오는 서비스 하나의 launchd 레이블

먼저 목록을 읽으세요. 보고서에는 모든 id와 그 이름, 꺼져 있는 동안 작동하지 않는 것이 나옵니다.

## 입력

| 입력 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- |
| `teamId` | 문자열 (UUID) | 예 | — | 팀. [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)에서 가져옵니다 |
| `simulator` | string | 아니요 | 팀의 기본 기기 | 어떤 기기인지. [list_simulators](https://air.build/ko/docs/mcp-tools/list_simulators/#result)의 `id` |
| `enable` | 문자열 목록 | 아니요 | — | 켤 [항목](https://air.build/ko/docs/mcp-tools/simulator_services/#items). 각 항목은 문자, 숫자, `.`, `_`, `-`를 쓰며 문자나 숫자로 시작합니다 |
| `disable` | 문자열 목록 | 아니요 | — | 끌 [항목](https://air.build/ko/docs/mcp-tools/simulator_services/#items). 형식은 같음 |

## 결과

읽기(`enable`이나 `disable` 없음):

| 필드 | 내용 |
| --- | --- |
| `ok` | `true` |
| `id` | Simulator에서의 기기 id |
| `booted` | 기기가 실행 중인지 여부 |
| `source` | 실행 중인 기기에서 읽었으면 `launchd`, 다음 시작에 쓰일 설정에서 읽었으면 `store` |
| `slim` | 나열된 서비스 중 하나라도 꺼져 있으면 `true` |
| `disabledCount`, `managedCount` | 나열된 서비스 중 꺼진 서비스 수와 전체 수 |
| `categories` | 각각 `id`, `name`, `description`, `downside`(꺼져 있는 동안 작동하지 않는 것), `state`(`enabled`, `disabled`, `partial`), `disabled`(꺼진 서비스)가 있음 |
| `features` | 각각 `id`, `name`, `enabled`(필요한 모든 서비스가 켜져 있음), `disabled`가 있음 |
| `persistent` | 변경이 기기 재시작 후에도 유지되는지 여부(iOS 18.5 이상) |
| `defaultKeep` | 새 Simulator가 켜 두는 항목 |

```json
{
  "ok": true, "id": "…", "booted": true, "source": "launchd", "slim": true,
  "disabledCount": 120, "managedCount": 160,
  "categories": [ { "id": "siri", "name": "Siri & Intelligence", "description": "…", "downside": "…", "state": "disabled", "disabled": ["…"] } ],
  "features": [ { "id": "push", "name": "Push notifications", "enabled": false, "disabled": ["…"] } ],
  "persistent": true, "defaultKeep": ["…"]
}
```

변경:

| 필드 | 내용 |
| --- | --- |
| `ok` | `true`. 일부 서비스를 바꾸지 못했으면 `false`(나머지는 바뀐 채로 유지됨) |
| `id` | Simulator에서의 기기 id |
| `appliedAt` | `now`(기기가 실행 중) 또는 `next-boot` |
| `enabled` | 켜진 서비스 |
| `disabled` | 꺼지고 중지된 서비스 |
| `pending` | 켜졌지만 아직 실행되지 않는 서비스. 각각 `label`과 `reason`이 있음 |
| `failed` | 바꾸지 못한 서비스. 각각 `label`과 `error`가 있음 |
| `restartRequired` | `pending`의 무언가가 재시작을 기다리고 있으면 `true` |

상태가 바뀐 서비스만 나열되므로, 현재 상태를 요청하면 빈 목록이 나옵니다.

```json
{ "ok": true, "id": "…", "appliedAt": "now", "enabled": ["…"], "disabled": [], "pending": [], "failed": [], "restartRequired": false }
```

## 오류

| Message | 발생 조건 | 해결 방법 |
| --- | --- | --- |
| enable lists service items such as siri or icloud. | `enable`이 항목 이름의 목록이 아님(`disable`도 마찬가지) | [항목](https://air.build/ko/docs/mcp-tools/simulator_services/#items)의 목록을 보내세요 |
| unknown service _"item"_: expected all, slim, a category id, a feature id, or a cataloged launchd label _…_ | 항목이 목록의 어떤 것도 가리키지 않음 | 목록을 읽고 그 id를 사용하세요 |
| _label_ stays enabled: _reason_ | 그 서비스는 끌 수 없음 | 켜 둔 채로 두세요 |
| asked to both enable and disable _labels_ | 같은 서비스가 두 목록에 모두 있음 | 한쪽에서 제거하세요 |

모든 Simulator 도구가 반환할 수 있는 오류도 반환합니다. [start_simulator](https://air.build/ko/docs/mcp-tools/start_simulator/#device-errors)를 참고하세요.

## 예시

```json
{"name": "simulator_services", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "enable": ["push", "icloud"]}}
```
