fd-workspace-mcp
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
fd-workspace-mcp
Collaborative dev workspace primitives: a shared fact tree on one authoritative disk plus POSIX-atomic claim/lease so multiple devices, agents, and sessions can work on one project without stepping on each other.
Stdlib-only core. CLI + optional MCP surface. See openspec/changes/collab-dev-workspace/ for the spec this implements.
Why
Storing a claim in a shared DB is heavy; syncing copies across devices loses updates. The reliable primitive is a local filesystem mkdir on one authoritative host: whoever's mkdir wins, period. The claim always executes on the host (locally, or via ssh <host> fd-workspace ...), so it stays correct even when participants are remote and network-FS locks can't be trusted.
Related MCP server: fencepost
CLI
fd-workspace --root /srv/workspace --owner me claim feature-x # exit 0 acquired / 1 denied
fd-workspace --root /srv/workspace --owner me renew feature-x # heartbeat
fd-workspace --root /srv/workspace --owner me release feature-x
fd-workspace --root /srv/workspace status feature-x # running | stalled | dead | released
fd-workspace --root /srv/workspace sweep # reclaim expired
fd-workspace --root /srv/workspace list
fd-workspace --root /srv/workspace snapshot /backups/ws.tar.gz # exclude .claims (no stale leases)
fd-workspace --root /srv/workspace restore /backups/ws.tar.gz # rebuild on a fresh hostSnapshot excludes .claims/ so a restored host never resurrects stale leases (spec: "恢复后认领不残留"). The tar is a plain archive — upload it to S3/RustFS with your own tooling (git remote is the second recovery path).
Defaults come from FD_WORKSPACE_ROOT / FD_WORKSPACE_OWNER. The same logic runs over ssh, so a remote agent claims on the host's own disk.
Lease model
Claim = atomic
mkdir <root>/.claims/<unit>/; heartbeat = atouched file; TTL lets a dead holder be taken over.Tunables (
FD_WORKSPACE_HEARTBEAT30s,FD_WORKSPACE_LEASE_TTL300s,FD_WORKSPACE_STALL_AFTER120s); TTL must exceed heartbeat.States:
running/stalled(no renew, still leased) /dead(expired, takeable) /released.
MCP
pip install 'fd-workspace-mcp[mcp]' then fd-workspace-mcp (env: FD_WORKSPACE_ROOT, FD_WORKSPACE_OWNER). Tools: claim, renew, release, status, sweep, snapshot, restore. Without the SDK, use the CLI.
Test
python3 tests/test_claims.py # 6 self-checks, no pytest neededTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and publish pages, manage collections, records and files in a Markerloop workspace.
Coordinate multiple AI agents over MCP: atomic claims, leases, shared ledger, handoffs, tasks.
Versioned memory for agents: markdown docs with history, safe concurrent commits, human claim links.
Task coordination for AI agents. Exclusive locks, shared files, handoffs, per-agent spending limits.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables provider-neutral durable coordination for coding agents sharing Git work, including peer discovery, durable messaging, job progress tracking, and FIFO integration authority with fenced leases.MIT
- AlicenseNot gradedqualityBmaintenanceEnables multiple agents sharing one working tree to claim, renew, release, and verify exclusive leases with strictly increasing fencing tokens, so a stale or evicted holder is refused at the write. Provides mediated writes that re-verify the token immediately before touching the target, with path confinement and no daemon.18 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents sharing a repository to atomically claim, renew, resume, and close hash-pinned tasks, with lease-backed fencing tokens, check-gated completion, and an append-only ledger.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceCoordinates teams of coding agents by managing file claims, agent presence, public intentions, and filesystem leases so they avoid conflicts and leave an audit trail.MIT