Skip to main content
Glama
README.md
<div align="center">

<img src="docs/assets/brand/lockup-light.svg#gh-light-mode-only" alt="workbench" height="40">
<img src="docs/assets/brand/lockup-dark.svg#gh-dark-mode-only" alt="workbench" height="40">

**Self-hosted MCP tool aggregator.** One endpoint, per-user OAuth, 194 tools across 16 integrations — behind 9 meta-tools.

[**Website**](https://barockok.github.io/workbench/) ·
[**Documentation**](docs/site/_content/index.md) ·
[Quickstart](docs/site/_content/start/quickstart.md) ·
[Integrations](docs/site/_content/integrations/index.md) ·
[Build a plugin](docs/site/_content/plugins/index.md) ·
[Deploy](docs/site/_content/deploy/install.md)

[![CI](https://github.com/barockok/workbench/actions/workflows/ci.yml/badge.svg)](https://github.com/barockok/workbench/actions)
[![codecov](https://codecov.io/gh/barockok/workbench/branch/main/graph/badge.svg)](https://codecov.io/gh/barockok/workbench)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

</div>

---

Give an agent one MCP endpoint instead of sixteen. workbench holds a separate
OAuth connection per user per provider, encrypts every token at rest, and exposes
every integration through a fixed set of nine meta-tools — so the agent's tool
list stays the same size whether one integration is connected or all of them.

```mermaid
flowchart LR
  Agent["Agent"] -->|JSON-RPC| MCP["POST /mcp"]
  Script["Script / cron"] -->|plain JSON| REST["POST /rest/:integration"]
  MCP --> Meta["9 meta-tools"]
  Meta --> Reg["Plugin registry<br/>16 integrations · 194 tools"]
  REST --> Reg
  Reg -->|credential injected| APIs["Jira · GitHub · Slack · Google · …"]
  Portal["Portal"] --> Store[("Encrypted tokens")]
  Meta -.-> Store
```

Anything that is not an agent can skip MCP entirely:
[`POST /rest/:integration`](docs/site/_content/reference/rest-endpoint.md) runs the
same tools over plain JSON, on the same credentials, with no JSON-RPC framing and no
60,000-character result cap.

## Quickstart

```bash
git clone https://github.com/barockok/workbench.git && cd workbench
npm install

cp .env.example .env
# Both are required — the server refuses to boot without them.
echo "ENCRYPTION_KEY=$(openssl rand -hex 32)" >> .env
echo "SESSION_SECRET=$(openssl rand -base64 32)" >> .env

npm run dev
```

Then open the portal, connect an integration, mint an API key, and point your MCP
client at `http://localhost:3000/mcp`. The full walkthrough is in the
[Quickstart](docs/site/_content/start/quickstart.md).

## Documentation

The docs are the product surface — start there, not here.

| Section | What's in it |
|---|---|
| [Get started](docs/site/_content/index.md) | What it is, how it works, connecting an agent |
| [Guides](docs/site/_content/guides/discovering-tools.md) | Discovering and executing tools, OAuth, browser sessions, raw API calls, troubleshooting |
| [Integrations](docs/site/_content/integrations/index.md) | Every provider: exact scopes, setup steps, full tool list |
| [Build plugins](docs/site/_content/plugins/index.md) | Manifest reference, plugin context API, the four auth modes |
| [Deploy](docs/site/_content/deploy/install.md) | Docker, PostgreSQL, portal SSO, security, observability, releases |
| [Reference](docs/site/_content/reference/meta-tools.md) | All 9 meta-tools, every HTTP route, every environment variable, the tool catalog |
| [Field notes](docs/site/_content/field-notes/index.md) | Production failures, root causes, and what changed |

## What's in the box

| | |
|---|---|
| Integrations | 16 on disk, plus 2 internal (`browser`, `jots`) |
| Tools | 194 plugin tools, reached through 9 meta-tools |
| Auth modes | `oauth2`, `apikey`, `cookie`, `none` |
| Agent auth | Workbench API key or OAuth 2.1 (dynamic registration + PKCE) |
| Portal SSO | Google, Keycloak, or both |
| Database | SQLite or PostgreSQL, with a migration path between them |
| Stack | TypeScript, Fastify, MCP TypeScript SDK, React portal |

## Development

```bash
npm run dev      # start dev servers
npm run test     # run tests
npm run build    # build all packages
npm run lint     # lint all packages
```

The docs site is generated from Markdown by a script with no framework:

```bash
node docs/site/build.mjs   # _content/*.md + nav.json → static HTML in docs/site/_site/
```

Commit the Markdown only. `docs/site/_site/` is build output, is not tracked,
and is regenerated by the Docs workflow on every push to main. CI runs the same
build on every pull request, and a broken internal link fails it.

See [Contributing](docs/site/_content/reference/contributing.md)
for the branch, commit, and release conventions, and
[SECURITY.md](SECURITY.md) for reporting a vulnerability.

## License

[MIT](LICENSE)