mac-doctor-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAC_DOCTOR_HOME | No | Overrides the default state directory (~/.mac-doctor). | |
| MAC_DOCTOR_CONFIG | No | Overrides the default configuration file path (~/.config/mac-doctor/config.json). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| inspect_memoryB | Read-only. Memory pressure, swap, processes grouped by AI tool, and dev processes left running in deleted git worktrees. Does not kill anything. |
| inspect_storageB | Read-only. Largest items under the given folders (default: the allowed cleanup roots). |
| inspect_hardwareA | Read-only. Temperatures, power and per-app energy from siltop when installed (macOS). |
| plan_cleanupA | Read-only on target files; writes plan metadata locally. Turn candidates into a stored plan. items: [{"path": "/abs/path", "reason": "why it is safe", "risk": "low|medium|high"}]. Show the user every item, the total size and the confirm_code, and ask them to reply with the code. Never apply without the user typing it. |
| apply_planA | CHANGES FILES (可回滚 / reversible). Moves the plan's items into quarantine on the same volume. confirm_code must be the code the user typed. Space is only freed after purge_quarantine. |
| rollbackB | CHANGES FILES (可回滚 / restores quarantined files). Moves every item of an applied plan back to where it was. |
| recoverA | CHANGES FILES (可回滚 / restores interrupted moves). Finishes an apply or rollback that was interrupted, by restoring items. |
| list_quarantineB | Read-only. Applied, rolled back and purged plans with sizes. |
| purge_quarantineA | 不可回滚 / NOT REVERSIBLE when confirm_code is given. Without it: dry run listing batches older than keep_days and a confirm_code. Show the list to the user; only pass the code they typed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
The three inspect_* tools are cleanly separated by resource (memory, storage, hardware), and the plan/apply/purge flow is explicit about which step mutates state. The only soft boundary is rollback vs. recover, both of which restore files, but the descriptions distinguish completed-plan rollback from repairing interrupted moves.
Most names follow a verb_noun pattern (inspect_memory, plan_cleanup, apply_plan, list_quarantine, purge_quarantine), with consistent snake_case throughout. The bare verbs 'rollback' and 'recover' are the only deviations, and they remain unambiguous.
Nine tools map exactly onto the disk-cleanup lifecycle: three inspectors, plan, apply, quarantine listing, purge, rollback, and recovery. No tool feels redundant or missing from the count perspective.
The surface covers the full inspect → plan → apply → quarantine → purge/rollback/recover lifecycle, including non-reversible and interrupted-operation paths. Minor gaps: there is no tool to list or discard a stored but unapplied plan, and cleanup roots appear to be configuration-only rather than inspectable/modifiable.