Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Structured workspace runtime for long-running coding agents, providing controlled workspace capabilities with task state, snapshots, checkpoints, drift detection, verification evidence, audit logs, and structured handoff.

README.md

WorkspaceGuard

Structured workspace runtime for long-running coding agents.

WorkspaceGuard exposes a real local development workspace through MCP while adding the missing operational layer: task state, snapshots, checkpoints, drift detection, verification evidence, audit logs, and structured handoff.

It is host-neutral by design. ChatGPT, Claude, Gemini, Grok, and custom MCP clients should all use the same core tool contracts.

What This Is

WorkspaceGuard is not a coding model and not a hidden local agent. The MCP host does the reasoning. WorkspaceGuard provides controlled workspace capabilities:

  • open an allowed workspace
  • read, search, edit, and write files
  • run terminal commands under policy
  • inspect git status and diffs
  • create snapshots and checkpoints
  • detect workspace drift
  • run verification and store evidence
  • hand off task state across hosts or sessions

Design Docs

Recommended Build Path

Implemented in the current skeleton:

  • MCP server over stdio and Streamable HTTP
  • split MCP tool registration modules
  • workspace allowlist and instruction loading
  • canonical path containment with symlink escape tests
  • file read/search/list/write/edit tools
  • structured shell runner with timeout and redaction
  • git status/diff helpers
  • in-memory task runtime tools
  • file-manifest snapshots
  • checkpoint and drift MCP tools
  • verification command execution and freshness checks
  • append-only JSONL audit log
  • failed MCP tool-call audit events
  • required bearer-token and Origin helper for remote HTTP
  • OAuth-dev protected resource metadata and PKCE authorization-code flow
  • secure HTTP proxy for tunnel/public entrypoints
  • shared runtime context across HTTP sessions
  • MCP integration test using the SDK in-memory transport

Next build path:

  1. Add SQLite-backed state instead of in-memory registries.
  2. Replace OAuth-dev with production OAuth issuer integration.
  3. Add before/after audit envelopes for every tool call.
  4. Verify against ChatGPT, Claude, Gemini, and Grok host profiles.

Development

npm install
npm test
npm run build
npx tsc --noEmit

Remote HTTP security knobs:

WORKSPACEGUARD_TOKEN=long-random-token
WORKSPACEGUARD_ALLOWED_ORIGINS=https://chatgpt.com,https://example.com

WORKSPACEGUARD_TOKEN or --bearer-token is required when --transport http is used.

ChatGPT developer-mode HTTP can use the built-in OAuth-dev profile:

WORKSPACEGUARD_OAUTH_APPROVAL_CODE=local-human-code \
workspaceguard serve \
  --transport http \
  --auth-mode oauth-dev \
  --public-base-url https://your-tunnel.example.com \
  --allowed-roots ~/work

Or keep WorkspaceGuard private on localhost and expose a separate proxy:

WORKSPACEGUARD_TOKEN=inner-local-token \
workspaceguard serve --transport http --allowed-roots ~/work

WORKSPACEGUARD_PROXY_TARGET_TOKEN=inner-local-token \
WORKSPACEGUARD_OAUTH_APPROVAL_CODE=local-human-code \
workspaceguard proxy \
  --target-url http://127.0.0.1:8787/mcp \
  --auth-mode oauth-dev \
  --public-base-url https://your-tunnel.example.com

oauth-dev is for single-user developer-mode testing. Production deployments should replace it with a real OAuth issuer and durable token storage.

Security Baseline

WorkspaceGuard exposes local machine capabilities. It must default to narrow filesystem roots, localhost binding, explicit remote authentication, canonical path checks, command policy, redacted logs, and auditable tool calls.

Shell and worktrees are workflow boundaries, not security sandboxes.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Productivity servers.