MCP server · App Intents · CLI
Mọi tính năng đều có thể được trợ lý AI gọi. Tất cả chạy cục bộ trên Mac — AI gửi yêu cầu, StayLit làm việc, StayLit không tải lên thứ gì.
Mở StayLit → Cài đặt → AI → Kết nối. Khởi động lại app AI.
Cài đặt → AI → Chép lệnh, rồi dán vào Terminal.
Các tác vụ xuất hiện trong app Shortcuts, mục StayLit.
Cấu hình MCP thủ công:
{
"mcpServers": {
"staylit": {
"command": "/Applications/StayLit.app/Contents/MacOS/staylit",
"args": ["mcp"]
}
}
}
Tên và mô tả công cụ được giữ nguyên tiếng Anh — đúng như những gì trợ lý AI của bạn nhận được.
| Công cụ | Chức năng | Thay đổi file? |
|---|---|---|
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. | Có |
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. | Có |
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. | Không |
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). | Có |
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. | Không |
cancel_schedule | Cancel a scheduled sleep or shutdown, including the 1-minute countdown after a keep-awake session ends. | Có |
staylit list staylit keep_awake --duration 3h --then sleep