opencode-workbench
Provides access to Brave Search via the Brave Search MCP, enabling web search capabilities for AI agents.
Integrates with Clerk via an MCP server for managing authentication and user management.
Integrates with Cloudflare via an MCP server for managing Cloudflare services and resources.
Uses Docker to run infrastructure components such as PostgreSQL 16 and Browserless Chromium for the workstation.
Integrates with GitHub via the GitHub MCP, enabling repository and workflow interactions using a GitHub PAT.
Uses npm to manage and launch MCP servers, including the opencode-workbench server via npx.
Integrates with Perplexity via the Perplexity MCP for AI-powered search and research capabilities.
Runs PostgreSQL 16 in Docker as part of the workstation infrastructure for data storage and management.
Integrates with Sentry via the Sentry MCP for error tracking and monitoring using a Sentry auth token.
Integrates with Stripe via the Stripe MCP for payment processing and management.
Integrates with Vercel via the Vercel MCP using token authentication for deployment and project management.
OpenCode Workbench
A reproducible, self-documenting, and recoverable OpenCode development workstation — configuration, agent skills, MCP stack, and an MCP server that clones the entire setup onto any Linux machine (locally or over SSH).
Purpose
This repository is the single source of truth for a complete cloud development workstation. Everything needed to rebuild from scratch is versioned here:
Workstation configuration and automation
OpenCode configuration (model, providers, MCP servers)
Agent skills (45 reusable AI instructions across research, dev, data, science and ops)
Operational prompts (disaster recovery, backup, security)
Recovery procedures (playbook, checklist, gap analysis)
Security governance (secret management, threat model)
opencode-workbench— an MCP server that installs this profile on any Linux box
No important knowledge exists only in human memory.
Related MCP server: CatHub Nyaanes
Clone This Workbench to Another Linux Machine
Register the MCP server with OpenCode:
{
"mcp": {
"opencode-workbench": {
"type": "local",
"command": ["npx", "-y", "@simonmak-ascent/opencode-workbench"],
"enabled": true,
"timeout": 600000
}
}
}Then ask the agent to run inspect_target → plan_clone → apply_clone { confirm: true } → verify_clone, for { "mode": "local" } or { "mode": "ssh", "host": "<your-box>", "user": "<your-user>" }. apply_clone is consent-gated: without confirm:true it returns a plan (components + privileged-command preview) and changes nothing. Run list_required_credentials to see which keys the box still needs and how to acquire them, and bash scripts/selftest/run-selftest.sh to verify it works. See mcp-server/README.md and docs/architecture/clone-mcp.md.
The clone is key-resilient: with no model key it still boots on the OpenCode Zen free floor, and MCP servers whose credentials are absent are disabled and reported (not left to fail at runtime).
The connector never reads or transmits secret values; it writes an empty ~/.env.workbench template for you to fill in.
Quick Start
# Create a new build box
gh SWAS create --repo simonmak-ascent/opencode-workbench --machine basicLinux32gb
# Wait for postCreate (3-5 min) — installs everything automatically
# Then start coding:
opencodeArchitecture
opencode-workbench/
├── mcp-server/ # opencode-workbench: clone this profile onto Linux
│ ├── src/ # inspect / plan / apply / verify, local + SSH
│ ├── test/ # unit tests (vitest)
│ └── README.md
├── connector.json # MCP connector manifest / registration snippet
├── plugins/ # memory.ts + doc-tools.ts OpenCode plugins
├── package.json # thin launcher for opencode-workbench (bin + prepare)
├── .devcontainer/ # build box definition & bootstrap
│ ├── devcontainer.json # Container image, features, ports, remoteEnv
│ ├── setup.sh # Post-create: installs opencode, MCPs, Docker infra
│ └── aliases.sh # Shell aliases sourced at runtime
├── .opencode/
│ └── skills/ # 28 custom agent skills (10 research, 10 dev, 8 publishing)
├── vendor/ # Vendored MCP source code
│ ├── perplexity-agent-mcp/
│ └── browserless-mcp/
├── configs/ # Reference configurations
│ ├── mcp/ # MCP server inventory & architecture
│ ├── opencode/ # OpenCode settings documentation
│ ├── shell/ # Shell configuration
│ ├── git/ # Git configuration & hooks
│ └── providers/ # AI provider configuration
├── docs/ # Complete documentation system
│ ├── WORKBENCH_CHARTER.md # Governance: mission, principles, requirements
│ ├── security-model.md # Security architecture & threat model
│ ├── IMPROVEMENT_BACKLOG.md # Tracked improvements and fixes
│ ├── CHANGELOG_WORKBENCH.md # Append-only change history
│ ├── architecture/ # System documentation (incl. clone-mcp.md)
│ ├── recovery/ # Recovery procedures (4 docs)
│ ├── prompts/ # Operational prompt library (9 prompts)
│ └── backup-reports/ # Dated backup snapshots
├── scripts/ # Automation scripts
│ ├── backup/ # Master backup script
│ ├── inventory/ # Auto-generate inventories (software, env, MCP, OpenCode)
│ ├── security/ # Secret pattern scanner
│ ├── recovery/ # Recovery validation
│ └── maintenance/ # Config sync, routine tasks
├── .github/workflows/ # CI (docs, inventory, gitleaks, mcp-server)
├── opencode.json # OpenCode configuration (MCP servers)
├── AGENTS.md # OpenCode agent instructions
└── README.md # This fileWhat's Inside
Category | Details |
OpenCode | Latest stable CLI, DeepSeek V4 Pro model, LSP enabled |
MCP Servers | 35 configured (33 enabled, 2 disabled), 9 remote + 26 local |
Agent Skills | 45 reusable skills in |
Infrastructure | PostgreSQL 16 (Docker), Browserless Chromium (Docker) |
Tools | pandoc, jq, miller, sqlite3, GitHub CLI, Playwright Chromium |
Prompts | 9 operational prompts in |
Workstation Governance
This workstation operates under a formal charter. Key principles:
Single Source of Truth: Runtime must match repository. Drift is a bug.
Secrets Never Touch Disk: All secrets flow through the build box Secrets.
Immutable History: Changelog is append-only. Every change is traceable.
Documentation Lives With Code: Docs describe the system as it is, not as imagined.
Read the full charter: docs/WORKBENCH_CHARTER.md
Backup Workflow
# Master backup — full inventory, security scan, commit prep
bash scripts/backup/run-master-backup.sh
# Quick backup — save state before risky operations
bash scripts/maintenance/sync-runtime-config.sh && \
git diff > /tmp/quick-backup-$(date +%Y%m%d).diffOr use OpenCode prompts:
docs/prompts/RUN_MASTER_BACKUP.md— execute backup via AIdocs/prompts/QUICK_BACKUP.md— rapid state preservation
Recovery Workflow
Assume the build box is deleted. Only Git repo + build box Secrets survive.
# 1. Create new build box
gh SWAS create --repo simonmak-ascent/opencode-workbench --machine basicLinux32gb
# 2. Wait for automation (3-5 min)
# 3. If needed (usually done by setup.sh):
npx playwright install chromium
# Vercel MCP uses VERCEL_ACCESS_TOKEN (token auth — no OAuth step)
# 4. Validate recovery
bash scripts/recovery/validate-recovery.shFull details: docs/recovery/RECOVERY_PLAYBOOK.md
MCP Architecture
Type | Count | Notes |
Remote | 9 | context7, gh_grep, vdd, exa, cloudflare, clerk, vercel (token auth), sentry, stripe |
Local | 26 | npm / vendored / binary stdio servers |
Totals: 35 configured (33 enabled, 2 disabled: google-search, google-workspace).
See: docs/architecture/mcp-inventory.md
Secrets Management
All secrets stored in the build box Secrets. Never in repository files.
# | Secret | Used By |
1 |
| OpenCode (primary model) |
2 |
| OpenCode Zen / Console Go providers |
3 |
| GitHub MCP, shadcn MCP, |
4 |
| Perplexity MCP |
5 |
| Brave Search MCP |
6 |
| Browserless MCP + container |
7 |
| Sentry MCP |
8 |
| Vercel MCP (token auth) |
Additional keys for opt-in servers (EXA_API_KEY, CLOUDFLARE_API_TOKEN,
STRIPE_SECRET_KEY, SURREAL_*, ALIBABA_CLOUD_*, AZURE_*, FIRECRAWL_API_KEY,
FRED_API_KEY, COMPANIES_HOUSE_API_KEY) are catalogued in
docs/architecture/secrets.md — never by value.
See: docs/architecture/secrets.md
Documentation Index
Document | Purpose |
| Mission, principles, governance |
| Security architecture, threat model, incident response |
| Tracked improvements and technical debt |
| Complete change history |
| System documentation (10 inventory docs) |
| Recovery playbook, disaster recovery, checklist, gap analysis |
| 9 operational prompts with index |
| Dated backup snapshots |
Adding to the Workbench
MCP Server: Add npm package to
.devcontainer/setup.sh, add toopencode.json, document indocs/architecture/mcp-inventory.mdAgent Skill: Create
.opencode/skills/<name>/SKILL.md, follow naming conventionTool: Add to
scripts/bootstrap-tools.shPrompt: Create in
docs/prompts/, updateprompt-index.mdAfter any change: Update
CHANGELOG_WORKBENCH.md, run master backup
Recovery Score: 94/100
Validated disaster recovery within < 10 minutes using repository + build box Secrets alone.
Use with Context7
Up-to-date OpenCode Workbench documentation is indexed on Context7, so coding agents can pull it into context on demand. With the Context7 MCP server or ctx7 CLI installed, name the library in your prompt:
use library /simonmak-ascent/opencode-workbench for API and docsLicense
MIT — see LICENSE.
A tool by Simon Mak.
If this saves you time, a ⭐ on GitHub helps others find it.
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote Linux boxes for coding agents: Docker, a browser, screenshots, logs, human takeover.
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes local OpenCode instances as remote MCP servers for Claude and ChatGPT, enabling terminal access, session management, and interactive human-in-the-loop workflows. It simplifies deployment for local machines using Cloudflare Tunnels to provide secure public connectivity and OAuth support.-
- AlicenseNot gradedqualityBmaintenanceEnables orchestrating multiple AI CLI agents (Codex, Grok, Claude, etc.) via Claude Code, providing tools for dispatching tasks, broadcasting, debating, and managing jobs through a local MCP server.MIT
- FlicenseAqualityBmaintenanceAn MCP server that provides OpenCode's native tools (file read/write/edit, search, shell, web fetch/search, and more) to compatible Code CLIs like Codex and Claude Code.1122 npm-

2ools MCP Serverofficial
AlicenseAqualityAmaintenanceRemote MCP server for 2ools—build, version, review, and export websites, web apps, and games from the AI chat you already use. This repository includes a credential-free stdio proxy and Dockerfile that forward introspection to the verified remote endpoint without mocking tools.431MIT