laptop-care

laptop-care

A laptop maintenance agent for Claude Desktop that inspects your machine, explains findings, recommends actions, and remembers history, with safety gates enforced by the server.

Category
访问服务器

README

laptop-care

A laptop maintenance agent that runs inside Claude Desktop. It inspects your machine, explains what it found, recommends what to do, and remembers what it saw last time.

Works on macOS and Windows. No API key, it runs on your existing Claude Desktop subscription. Nothing leaves your machine.

npx laptop-care setup

Then restart Claude Desktop and say "run my laptop maintenance".


What you actually get

A 15 point inspection, presented the way a garage hands you a check sheet after a service. Every point is shown, not just the failures, because knowing 10 things passed is as useful as knowing 2 failed.

LAPTOP INSPECTION REPORT
MacBook Pro 16-inch 2021  ·  M1 Pro  ·  32 GB  ·  macOS 26.5.1
First inspection  ·  15 points checked

STORAGE
  Disk space             Good      607 GB free of 926 GB, 65 percent
  Cache composition      Watch     Docker 6 GB of it, rebuilds in weeks

SECURITY
  Disk encryption        Good      FileVault on
  Startup agents         Watch     49 agents and daemons present

MAINTENANCE
  OS updates             Action    26.5.2 available, security release
  Backup                 Ask       No Time Machine, need your answer

  10 good  ·  4 watch  ·  1 needs action  ·  1 question for you

Then a verdict in plain language, a ranked list of what to do, and it acts only on what you approve.


Why this is an agent and not a script

A script runs the same 15 commands in the same order and prints the output. This decides what to do based on what it finds and what it remembers.

A maintenance script laptop-care
Sequence Fixed, every run identical Chooses the workflow from detected state
Interpretation Prints values Explains what a value means for this machine
Thresholds Hardcoded globals Learns each machine's own normal, flags deviation from that
Memory None, or a log nobody reads Reads its own history and compares
Consent Runs whatever it was told to Asks before anything destructive, and is blocked in code if it does not
Follow-through Forgets Tracks what you skipped and raises it next time
Failure Crashes or prints an error Reports the check as not completed and continues

The agent loop in practice:

graph TD
    A["User: run my laptop maintenance"] --> B[start_maintenance]
    B --> C{First run or returning?}
    C -->|First| D[Introduce, explain, ask permission]
    D --> E{User agrees?}
    E -->|No| F[Stop. Nothing runs.]
    E -->|Yes| G[grant_consent unlocks the scanners]
    C -->|Returning| H[Load unresolved issues from last time]
    G --> I[Run diagnostic checks]
    H --> I
    I --> J[build_report_card verifies real coverage]
    J --> K[analyze_trends compares to this machine's history]
    K --> L[Present findings and ranked recommendations]
    L --> M{User picks what to act on}
    M --> N[Apply approved fixes, verify they worked]
    N --> O[Save report, record metrics, track what was skipped]
    O --> P[Next run resumes from here]

Guardrails that are code, not instructions

The interesting part is what the agent is unable to do. These are enforced by the server, so they hold even if the model misreads its instructions.

Consent lock. On a fresh install every scanning tool is locked. The model cannot read your disk, battery, or security posture until it has introduced itself and you have said yes.

delete BEFORE consent      ->  CONSENT_REQUIRED

Sequencing gates. Destructive tools refuse to run until their prerequisite has completed. "Never clean without showing the user first" is a precondition, not a request.

save_report BEFORE diagnostic  ->  PREREQUISITE_NOT_MET
save_report AFTER  diagnostic  ->  saved

Honest coverage. The inspection card is generated by the server from a log of what genuinely executed. Run 3 checks of 15 and the card says so. The model cannot claim an inspection it did not perform.

Ran 3 of 15 checks deliberately:
  total_points     : 15
  checks_completed : 3
  checks_missing   : 12
  rows locked to "Not checked": 12

The division of labor: the server owns facts, sequencing, and coverage. The model owns judgment and language. Anything that can be enforced is enforced; only what genuinely requires interpretation is left to the prompt.


What it checks

Category Points
Storage Disk space, largest folders, cache and temp size, cache composition by owner
Power Battery health and cycles, sleep and wake behavior, uptime
Hardware SSD SMART status, firmware version
Security Firewall and Gatekeeper, disk encryption, startup agents, persistence changes since last run
Maintenance Pending OS updates, backup status

Persistence monitoring is the one most tools skip. Launch agents and daemons are how unwanted software survives a reboot. laptop-care records them on the first run and afterwards reports only what is new, which is the part worth reading.


What it remembers

Everything stays in ~/.laptop-care/, in your home folder, separate from the installed package. Updating or reinstalling never touches it.

File Holds
health.csv One row per run. The basis for "normal for this machine"
reports/ Full markdown report per run
issues.json Findings and their status: open, fixed, skipped, needs you
persistence.json Startup agent snapshot for change detection

Baselines need history to be useful. Trends become meaningful around the fourth run, and persistence changes start reporting from the second.


Architecture

src/
  index.ts      MCP server: consent lock, sequencing gates, execution log,
                report card generation, lifecycle-aware playbook loading
  tools.ts      Tool definitions with safety tiers
  commands.ts   Platform commands keyed by darwin | win32
  runner.ts     exec wrapper with per-tool timeouts
  cli.ts        setup, help, and serve

prompts/
  kernel.md         Always sent on connect. Identity and safety rules.
  first-run.md      Onboarding workflow. Only for new users.
  returning-run.md  Follow-up workflow. Only for returning users.
  shared.md         Judgment, escalation thresholds, tone, report format.

The playbook is split by when it is needed, not by topic. A returning user never loads first-time onboarding. start_maintenance checks whether history exists and hands over only the workflow that applies:

Situation Loaded
Connect, laptop never mentioned 438 tokens
First run 4,694 tokens
Returning run 2,811 tokens

32 tools across three safety tiers: 25 read-only, 6 requiring explicit consent, 1 requiring admin.


Scheduling

On the first run it offers to set up recurring checks, weekly, monthly, or quarterly. It creates a launchd agent on macOS or a Task Scheduler entry on Windows. You can also just say "schedule my maintenance checks" any time.

Without a schedule it still notices when it has been more than 30 days and mentions it.


Manual setup

If npx laptop-care setup cannot find your config, add this to claude_desktop_config.json:

{
  "mcpServers": {
    "laptop-care": {
      "command": "npx",
      "args": ["-y", "laptop-care"]
    }
  }
}
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

For Claude Code: claude mcp add laptop-care -- npx -y laptop-care


Honest limitations

  • It reads surfaces. It does not detect malware, verify that a backup restores, or confirm firmware is current against the vendor. It reports what the OS reports.
  • History only grows when a run finishes. A run you interrupt records nothing. There is no partial save.
  • Baselines need about four runs before "abnormal for this machine" means anything.
  • Tone and judgment are prompt-shaped. The safety gates are code and hold absolutely. How well it explains a finding does not.
  • macOS and Windows only. Linux returns a clear unsupported error rather than guessing.

Requirements

Node.js 18+, Claude Desktop or another MCP client, macOS or Windows.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选