Tidyware

MCP server · App Intents · CLI

StayLit
AI 智能体接入

每项功能都可以由 AI 助手调用。一切都在 Mac 本地运行——AI 发出请求,StayLit 完成工作,StayLit 不会上传任何内容。

一键连接

03

Claude Desktop / Cursor

打开 StayLit → 设置 → AI → 连接。然后重启 AI 应用。

Claude Code

设置 → AI → 拷贝命令,然后粘贴到终端。

Siri 与快捷指令

操作会出现在“快捷指令”App 的 StayLit 分类下。

手动配置 MCP:

{
  "mcpServers": {
    "staylit": {
      "command": "/Applications/StayLit.app/Contents/MacOS/staylit",
      "args": ["mcp"]
    }
  }
}

工具

6

工具名称和说明以英文显示——与你的 AI 助手收到的内容完全一致。

工具作用会改动文件?
keep_awakePrevent 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_awakeStop 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_statusWhat 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_powerPut 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_statusBattery 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_scheduleCancel a scheduled sleep or shutdown, including the 1-minute countdown after a keep-awake session ends.是

请求示例

05

命令行

CLI
staylit list
staylit keep_awake --duration 3h --then sleep