
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 分