workbench-board
by mike-bronner
README.md
# workbench-board
workbench-board is a Model Context Protocol (MCP) server that lets dev-team agents work a GitHub Projects board. It runs on your own machine over stdio, so there is no hosted server to deploy.
This release is the scaffold. The server answers the MCP handshake and lists no tools yet.
## Run the server locally
You need Node.js 22 or later.
Add the server to an MCP client, such as Claude Code:
```sh
claude mcp add workbench-board -- npx -y workbench-board
```
Or start it by hand. It reads MCP messages on stdin and writes them on stdout:
```sh
npx -y workbench-board
```
To run it from a clone of this repository instead:
```sh
npm ci
npm run build
node dist/cli.js
```
## Settings
A team keeps its settings in `.workbench-board.yml` in the board owner's `.github` repository, so one file serves all of the owner's repositories. The server is not wired to the settings yet.
```yaml
boards:
- owner: acme
ownerType: organization # or user
project: 4
repos: [acme/api, acme/web]
statuses: # logical state: this board's Status column
triage: Inbox
backlog: Backlog
development: In progress
review: In review
done: Done
identities:
build-app:
mode: app
appId: 1002 # the installation is looked up for each board owner
privateKey:
keychain: # read on your own machine
service: workbench-board
account: build-app
env: BUILD_APP_KEY # read in CI
build-token:
mode: token # the gh CLI login on your own machine
login: jdoe # optional: which gh login to use
env: BUILD_TOKEN # read in CI
roles:
watson:
kind: build # triage, build or review
identity: build-app
fallback: build-token # used where the App is not installed
transitions:
- from: backlog
to: development
claims:
byField: Claimed by # the default
atField: Claimed at # the default
staleAfterMinutes: 240
flare: # Flare project: repository
Acme API: acme/api
```
Rules the loader enforces:
- Every board maps the same logical states, and no two states share a Status column.
- A repository belongs to one board only.
- A role's transitions use states the boards map, and its identity is defined. Two roles can share one identity.
- A role's fallback is a token identity. It is used for any owner where the App is not installed. An App cannot reach a user-owned board, so when a board is user-owned, every role with an App identity needs a fallback.
- An identity names where a secret comes from, never the secret. A file that holds anything like a token or a private key is refused, and the error does not repeat it.
## GitHub access
A run is a CI run when `GITHUB_ACTIONS` is `true`, or when `CI` is set to anything but empty, `0` or `false`. Any other run is a local run.
- A token identity reads its environment variable in CI. On a local run it asks `gh auth token` for the login it names, or for gh's active login when it names none.
- An App identity reads its private key from its environment variable in CI, and from its Keychain entry on a local run. It signs a short-lived JWT, looks up the App's installation once for each board owner, and reuses each installation token until five minutes before it expires.
- A role acts as its own identity. Where its App is not installed, and on a user-owned board, it acts as its fallback token identity.
- An error names the identity and where its secret comes from, never the secret.
## Develop
```sh
npm ci
npm run typecheck
npm run lint
npm test
```
`npm test` builds the server first, then starts the built CLI and talks to it over stdio. The tests cannot run gh, read the Keychain or reach the network: `test/setup.ts` points `PATH` nowhere and makes `fetch` fail, so a test that forgets a fake fails instead of using your credentials.
## License
MIT. See [LICENSE](LICENSE).
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues