Metadata-Version: 2.4
Name: workspace-storage-guard
Version: 0.1.0
Summary: Local MCP server for checking workspace storage and reclaiming generated files
License-Expression: MIT
Project-URL: Repository, https://github.com/TonPC64/workspace-storage-guard
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp==2.3.0
Dynamic: license-file

# Workspace Storage Guard

Workspace Storage Guard is a local MCP server and command-line tool for software developers on macOS and Linux. It reports free space on your workspace volume, ranks directories by disk usage, and reclaims generated files you explicitly allowlist, including Cargo debug output, build caches, and `node_modules`.

## Connect your agent

Install `uv`, then create a local config from `examples/config.json` and set your workspace, free-space thresholds, and cleanup allowlists. Register the server with Hermes Agent, Claude Code, GitHub Copilot CLI, or Codex. [Setup guide](docs/setup.md)

For example, register it in Codex using the GitHub release.

```sh
codex mcp add workspace-storage-guard -- "$(command -v uvx)" \
  --from git+https://github.com/TonPC64/workspace-storage-guard.git@v0.1.0 \
  workspace-storage-guard
```

Start a fresh agent session and ask it to call `storage_status`.

## Check and reclaim space

- `storage_status` reports free space and your cleanup thresholds.
- `scan_storage` ranks the largest directories in your workspace.
- `restore_storage` reclaims eligible generated output when free space drops below your minimum. Pass `{"force": true}` to clean eligible output regardless of free space.

Your workspace path and allowlists live in a per-user local config. Scan results include local paths and may be shared with your agent’s model provider. [Usage guide](docs/usage.md)

## Automate checks

Run Storage Guard from the terminal, add a hook to your agent, or schedule it with a macOS LaunchAgent. The example LaunchAgent runs at sign-in and every five minutes. [Hook and LaunchAgent setup](docs/setup.md#connect-agent-hooks)
