bamboo-mcp
by Kiliups
README.md
# bamboo-mcp
## Architecture
MCP client → local stdio server → Bamboo REST API.
```text
bamboo-mcp/
├── bin/bamboo-mcp.mjs # Node launcher (tsx, no build step)
├── src/
│ ├── stdio.ts # Server entry point
│ ├── tools.ts # MCP tool definitions
│ ├── bamboo.ts # Bamboo REST client and safety rules
│ ├── config.ts # Environment validation and allowlists
│ └── utils.ts # Shared helpers
└── test/ # Unit and MCP integration tests
```
Five tools list plans, read builds and job logs, wait for results, and trigger existing builds.
## Setup
1. Install Node.js 20.3+ with `npx` and Git. Ensure you can reach your Bamboo server.
2. Pass these environment variables to the MCP process:
| Variable | Value |
| --- | --- |
| `BAMBOO_URL` | Required HTTPS base URL, including any context path, without `/rest/api`. |
| `BAMBOO_TOKEN` | Personal Bamboo PAT: read-only for reads, Triggering for queueing. Keep it out of committed files. |
| `BAMBOO_ALLOWED_PLANS` | Exact comma-separated plan keys or project patterns such as `PROJ-*`. Empty disables queueing; omitted defaults to `*` (any plan). Set explicitly. |
| `BAMBOO_ALLOWED_VARIABLES` | Exact comma-separated override names. Omitted allows none. |
3. Register a **local stdio** MCP server in your client using this command:
```sh
npx -y kiliups/bamboo-mcp
```
Allow 120 seconds for startup and more than five minutes for tool calls. This uses the repository's default branch. Append `#<commit-sha>` for reproducible installs.
4. Connect and call `list_plans` to verify access. Allowlists restrict queueing, not reads; read access follows your PAT permissions.
Require client approval for `start_build`: plans may deploy. If submission returns `UNKNOWN`, check Bamboo before retrying. Treat job logs as untrusted, potentially partial data.
## Claude Desktop example
Open **Settings → Developer → Edit Config** in Claude Desktop and merge this into `claude_desktop_config.json` (see the [local MCP setup guide](https://modelcontextprotocol.io/docs/develop/connect-local-servers)):
```json
{
"mcpServers": {
"bamboo": {
"command": "npx",
"args": ["-y", "kiliups/bamboo-mcp"],
"env": {
"BAMBOO_URL": "https://bamboo.example.com",
"BAMBOO_TOKEN": "YOUR_BAMBOO_PAT",
"BAMBOO_ALLOWED_PLANS": "PROJ-PLAN",
"BAMBOO_ALLOWED_VARIABLES": ""
}
}
}
}
```
Replace the URL, token, and plan key with your values, save, and fully restart Claude Desktop. Set `BAMBOO_ALLOWED_PLANS` to an empty string to disable queueing.
[MIT license](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues