
Derived
io.github.adiaz0511由 GitHub 账号 adiaz0511 发布v0.2.0更新于 Oct 24, 2026
Inspect and safely clean local Xcode, Simulator, and XCTest storage.
概览
让助手扫描并安全删除 macOS 上 Xcode、模拟器和 XCTest 产生的本地存储,以释放磁盘空间。
- 可以做什么
- Derived 提供一个本地 MCP 服务器,用于扫描 Xcode、模拟器和 XCTest 创建的开发者存储,并按类别和建议状态报告可回收空间。它支持扫描、列出、准备和删除的工作流:扫描生成 ID,为选定项目或类别创建清理计划,删除时需要准确的确认短语。它会对每个目标按固定允许列表进行校验,并在清理前重新校验候选项。
- 适用场景
- 当 Mac 的开发者目录占用过大,希望由助手查找并删除 Xcode Derived Data、预览、模拟器设备、运行时、日志、缓存等文件时使用。它面向已使用 Xcode、并希望从 Codex、Claude Code、Cursor 或其他 MCP 客户端发起清理的 macOS 开发者。
- 运行要求
- 需要 macOS 14.0 或更高版本,以及用于模拟器发现和 simctl 清理的 Xcode。服务器通过 stdio 在本地运行;MCPB 包只包含服务器,不包含 derived CLI 或技能。未声明需要账户、API 密钥或网络服务。
安装
在 SourceWeft 中
- 打开 控制台中的 Derived,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Derived
A native macOS menu-bar application for inspecting and removing storage created by Xcode, Simulator, and XCTest.
[macOS 14.0 or later] [Swift tools 6.2] [CLI and MCP version 1.0.10] [MIT License]
[!CAUTION] Derived permanently deletes selected developer data instead of moving it to the Trash. Review the cleanup plan before confirming deletion.
Overview
Derived finds and removes storage created by Xcode, Simulator, and XCTest. It reports verified reclaimable space, keeps APFS clone sizes separate, and protects active or high-risk targets.
Use Derived through the macOS app, the derived CLI, or the local derived-mcp server. All three interfaces use the same scanner, path validation, and cleanup workflow. Derived runs locally and does not collect analytics.
Install the macOS app
Homebrew (recommended)
The trust command is required once for the third-party tap.
Update the app with:
Disk image
- Download the DMG from the latest GitHub release.
- Open the disk image.
- Drag
Derived.appto Applications. - Open Derived from Applications.
Install the CLI and MCP server
The agent tools include the derived CLI, the derived-mcp server, and the derived-cleanup skill. The macOS app is not required.
Homebrew (recommended)
derived integrations install detects Codex, Claude Code, and Cursor on the Mac. It registers the MCP server and installs the skill for each detected client.
Update the tools and refresh their integrations with:
The CLI checks for new versions at most once per day during interactive commands. Update notices never appear in JSON or MCP output.
Disk image
The latest Derived DMG also includes Derived Agent Tools for installation without Homebrew.
- Open the DMG.
- Open Derived Agent Tools.
- Select Install for Codex.
- Restart Codex.
When the app and DMG-installed tools are both present, Derived offers to update the tools after an app update. Without the app, download the latest DMG and run Derived Agent Tools again.
MCPB installation
Clients that support MCPB bundles can install Derived-MCP-VERSION-macOS-universal.mcpb from the latest release. The MCPB contains the MCP server, but it does not install the derived CLI or portable skill.
Use Derived with coding agents
Check which clients are configured:
Then start a new session in Codex, Claude Code, or Cursor and ask:
See Agent Integrations for client-specific commands, manual configuration, and uninstallation.
Use the CLI
The CLI provides aligned tables for interactive use and JSON for scripts and agents.
Start with a scan:
Use the scan ID printed by derived scan to inspect a category and prepare a plan:
Replace SCAN_ID with the UUID printed by the scan. Do not include angle brackets. The prepare command prints the exact confirmation phrase and complete derived delete command for that plan.
Use --json when another program will consume the output:
Scan IDs expire after 30 minutes. Cleanup plans expire after 10 minutes and can be executed once.
Features
Storage discovery
- Scans Derived Data, SwiftUI previews, XCTest devices, simulators, runtimes, Device Support, logs, caches, archives, and temporary data.
- Reports verified reclaimable bytes separately from logical APFS clone sizes.
- Groups cleanup candidates by category and recommendation status.
Cleanup and automation
- Cleans individual candidates, complete categories, or cross-category selections.
- Uses
simctlto remove simulator devices and runtimes through supported system operations. - Schedules cleanup for Derived Data, Xcode logs, and Xcode caches.
- Supports Launch at Login and maintains a local JSON Lines cleanup history.
Safety
- Detects active development tools and protects active targets.
- Requires an expiring cleanup plan and exact confirmation before deletion.
- Revalidates every candidate immediately before cleanup.
- Never selects archives or simulator runtimes automatically.
Safety model
Derived validates every cleanup target against a fixed allowlist. It rejects category roots, paths outside approved developer directories, malformed simulator identifiers, active targets, symbolic-link escapes, and candidates that changed after the plan was created.
Automatic cleanup waits until related development tools are closed and fails safely when process inspection is unavailable. XCTest APFS clone sizes are reported as logical sizes and excluded from verified reclaimable totals.
See Safety for the complete deletion model and approved paths.
Requirements
Run Derived
- macOS 14.0 or later
- Xcode for Simulator discovery and
simctl-backed cleanup
The DMG contains prebuilt universal applications and command-line tools. Building from source is not required.
Derived is intentionally not sandboxed because it manages files under ~/Library/Developer and invokes xcrun simctl.
Build from source
- Xcode 26.4 or later
- Swift 6.2 toolchain
Clone the repository, open Derived.xcodeproj, select the Derived scheme, and build the macOS target.
Command-line build:
Run the application tests:
Build and test the CLI and MCP server:
Launch at Login requires a signed application installed in a stable location. It may not work from an unsigned development build.
Project structure
Derived/App: application lifecycle, menu-bar item, and panel managementDerived/Features: SwiftUI presentation grouped by featureDerived/Models: cleanup, scan, automation, and reporting modelsDerived/Services: scanning, validation, process inspection, deletion, and persistenceDerived/Shared: shared formatting and design constantsDerived/AgentIntegration: shared CLI and MCP models, state, and safety workflowDerivedTests: safety and behavior testsDerivedCLITests: CLI argument, version, and human-readable output testsDerivedCoreTests: agent integration and destructive-operation safeguardsTools: native CLI and MCP executablesIntegrations: portable agent skills and packaging metadata
Privacy
Derived operates locally. It does not include analytics, advertising, accounts, or network services. See Privacy.
Contributing
Contributions are welcome. Read Contributing before changing scanner, validation, or deletion behavior.
Maintainers should follow Releasing Derived for signing, notarization, DMG generation, and MCP publication.
License
Derived is available under the MIT License.
来源:README.md,提交 00452ee
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分