MCP server · App Intents · CLI
모든 기능을 AI 어시스턴트가 호출할 수 있어요. 모든 작업은 Mac에서 로컬로 실행돼요 — AI가 요청을 보내면 StayLit이(가) 작업을 처리하고, StayLit은(는) 아무것도 업로드하지 않아요.
StayLit 열기 → 설정 → AI → 연결. 그런 다음 AI 앱을 다시 시작하세요.
설정 → AI → 명령어 복사 후 터미널에 붙여 넣으세요.
단축어 앱의 StayLit 항목에 동작이 표시돼요.
MCP 수동 설정:
{
"mcpServers": {
"staylit": {
"command": "/Applications/StayLit.app/Contents/MacOS/staylit",
"args": ["mcp"]
}
}
}
도구 이름과 설명은 영어로 표시돼요 — AI 어시스턴트가 실제로 받는 내용 그대로예요.
| 도구 | 기능 | 파일 변경? |
|---|---|---|
keep_awake | Prevent this Mac from idle-sleeping until a condition is met (whichever comes first): duration, a clock time, an app quitting, a process exiting, or downloads in ~/Downloads finishing. With no condition it stays awake until stop_keep_awake. Optionally sleep or shut down afterwards (1-minute cancellable warning). Replaces any current keep-awake session. | 예 |
stop_keep_awake | Stop the current StayLit keep-awake session; the Mac sleeps normally again. Does not sleep the Mac and does not cancel a scheduled sleep/shutdown. | 예 |
awake_status | What is keeping this Mac awake right now: StayLit's session (and time left), any scheduled sleep/shutdown, and every other app or process preventing sleep (e.g. Zoom, caffeinate). Read-only. | 아니요 |
schedule_power | Put the Mac to sleep or shut it down at a time, independent of keep-awake. The user gets a 1-minute warning and can cancel. Apps are asked to save documents on shutdown. Only one schedule at a time (replaces the previous one). | 예 |
battery_status | Battery charge %, charging / plugged-in state, time left (or to full), cycle count and health. Check before starting a long job on battery. Read-only. | 아니요 |
cancel_schedule | Cancel a scheduled sleep or shutdown, including the 1-minute countdown after a keep-awake session ends. | 예 |
staylit list staylit keep_awake --duration 3h --then sleep