WorkspaceGuard
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WorkspaceGuard Create a snapshot of the current workspace and check for drift."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Nolane Habitat
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:
Add SQLite-backed state instead of in-memory registries.
Replace OAuth-dev with production OAuth issuer integration.
Add before/after audit envelopes for every tool call.
Verify against ChatGPT, Claude, Gemini, and Grok host profiles.
Development
npm install
npm test
npm run build
npx tsc --noEmitRemote HTTP security knobs:
WORKSPACEGUARD_TOKEN=long-random-token
WORKSPACEGUARD_ALLOWED_ORIGINS=https://chatgpt.com,https://example.comWORKSPACEGUARD_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 ~/workOr 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.comoauth-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.
Available Tools
20 toolscheckpoint_createCreate checkpointA
Record a named checkpoint for an existing snapshot id. This creates metadata only; restore is not implemented and snapshot existence is not validated yet.
Inputs: workspaceId (required), snapshotId (required), label (required), taskId, +1 more. Returns: checkpointId, workspaceId, taskId, snapshotId, +3 more
directory_listList directoryCRead-only
List a directory inside an open workspace.
Inputs: workspaceId (required), path. Returns: path, entries
drift_checkCheck workspace driftBRead-only
Create a fresh snapshot and compare it with the previous drift_check snapshot for the workspace. The first call records the baseline and reports no drift.
Inputs: workspaceId (required), baselineReason, currentReason. Returns: baselineSnapshotId, currentSnapshotId, changed, added, +2 more
echoEchoARead-only
Development smoke-test tool.
Inputs: message (required). Returns: result
file_editEdit fileADestructive
Replace an exact text block that appears exactly once in a workspace file.
Inputs: workspaceId (required), path (required), oldText (required), newText (required). Returns: path, replacements
file_readRead fileBRead-only
Read a UTF-8 file inside an open workspace.
Inputs: workspaceId (required), path (required), offset, limit. Returns: path, content, totalLines, returnedLines, +2 more
file_writeWrite fileBDestructive
Create or overwrite a UTF-8 file inside an open workspace.
Inputs: workspaceId (required), path (required), content (required), overwrite. Returns: path, bytes, created
git_diffGit diffCRead-only
Run git diff --no-color inside an open workspace.
Inputs: workspaceId (required). Returns: diff, exitCode, stderr
git_statusGit statusARead-only
Run git status --porcelain=v1 inside an open workspace.
Inputs: workspaceId (required). Returns: porcelain, exitCode, stderr
policy_describeDescribe active policyARead-only
Show the current local policy profile for this WorkspaceGuard server.
Inputs: no named parameters. Returns: result, shell, writes, restore
search_textSearch textBRead-only
Search for a literal text pattern inside an open workspace.
Inputs: workspaceId (required), pattern (required), path, maxResults. Returns: matches
shell_runRun shell commandADestructive
Run a structured command array inside an open workspace. This is real local execution.
Inputs: workspaceId (required), command (required), args, workingDirectory, +1 more. Returns: stdout, stderr, exitCode, signal, +2 more
snapshot_createCreate snapshotCRead-only
Create a file manifest snapshot for an open workspace.
Inputs: workspaceId (required), reason. Returns: snapshotId, root, createdAt, reason, +1 more
task_startStart taskC
Start an in-memory task under an open workspace.
Inputs: workspaceId (required), objective (required), constraints. Returns: taskId, workspaceId, objective, constraints, +4 more
task_statusTask statusARead-only
Return one task by id, or all known in-memory tasks.
Inputs: taskId. Returns: task, tasks
task_updateUpdate taskC
Update task status or append a note.
Inputs: taskId (required), status, note. Returns: taskId, workspaceId, objective, constraints, +4 more
verification_runRun verificationCDestructive
Run a structured verification command inside an open workspace.
Inputs: workspaceId (required), command (required), taskId, args, +2 more. Returns: verificationId, workspaceId, taskId, status, +8 more
workspaceguard_infoWorkspaceGuard infoBRead-only
Return WorkspaceGuard runtime configuration summary.
Inputs: no named parameters. Returns: name, version, transport, allowedRoots
workspace_openOpen workspaceARead-only
Open an allowed local checkout workspace and return a workspaceId.
Inputs: path (required), mode. Returns: workspaceId, root, mode, openedAt, +2 more
workspace_statusWorkspace statusBRead-only
Return a known workspace by id, or list open workspaces when workspaceId is omitted.
Inputs: workspaceId. Returns: workspaces, workspace
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools have clearly distinct purposes, but shell_run and verification_run overlap as both execute commands, and their descriptions do not clearly differentiate use cases. This could cause agent misselection.
The naming pattern is mixed: most tools use noun_verb (e.g., task_start, snapshot_create), but file operations use verb_noun (e.g., file_read, file_edit), and search_text is verb_noun while drift_check is noun_verb. This inconsistency, while readable, breaks a predictable pattern.
With 20 tools covering workspace management, file operations, git, snapshots, tasks, and execution, the count is slightly over the ideal 3-15 range but still reasonable for the scope and complexity of the server.
Several significant gaps exist: no workspace_close, no file delete, no snapshot restore (explicitly noted as unimplemented), no task delete, and no policy management beyond describe. These will likely cause agent failures when attempting standard workflows.
Maintenance
Related MCP Connectors
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Open-source workspace where AI agents do the work and humans set direction. Apache 2.0.
Work journal for coding agents: worklogs, tasks, project state and costs across projects.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides a shared, persistent workspace with versioned files, semantic search, run logging, and cross-agent provenance, allowing agents to maintain context across sessions and tools.20815 npm2Apache 2.0

Nolane Habitatofficial
FlicenseNot gradedqualityBmaintenanceProvides coding agents with a durable, revision-aware project workspace for semantic context, governed source changes, verification, task checkpoints, and observability through an MCP interface.1-- AlicenseAqualityCmaintenanceEnables coding agents to run persistent, budgeted work sessions with dependency graphs, human decision queues, required validation, and clean handoffs for autonomous or human-in-the-loop execution.16MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to understand, run, test, diagnose, review, benchmark, and validate real local software projects through the Model Context Protocol. It provides workspace-confined safe execution, structured evidence instead of raw logs, and Git checkpoints with guarded rollback that never destroys user work.MIT