The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Bamboo MCP Server listing page.
A Model Context Protocol server that exposes a self-hosted Atlassian Bamboo instance to AI assistants — Claude Desktop, Claude Code, Cursor, Windsurf, or any other MCP client.
Ask "who deployed CHECKOUT to staging and did it pass?" instead of clicking through the Bamboo UI.
Read-only by design. Every tool is registered behind a policy engine that enforces a GET-only floor. This server cannot trigger a build, start a deployment, or change anything in Bamboo.
Atlassian has announced the end of support for Bamboo Data Center in 2029. If you are starting a new CI/CD project, you should be looking at a supported platform instead — check Atlassian's end-of-life policy for the current dates.
That said, plenty of organisations are still running Bamboo Server / Data Center today and will be for years, often with hundreds of plans and deployment projects accumulated over a decade. This project exists for those teams: if you are living with Bamboo until the migration lands, this makes the day-to-day "what's deployed where, and who broke it" questions a lot cheaper to answer.
Contributions are welcome, but be aware you are building on a platform with a known sunset.
| Tool | What it does |
|---|---|
bamboo_server_info | Bamboo server version and build info |
bamboo_health_check | Reachability and auth check |
bamboo_list_projects | List projects (paginated) |
bamboo_list_all_projects | List every project (auto-paginated) |
bamboo_get_project | Details for one project |
| Tool | What it does |
|---|---|
bamboo_list_plans | List all build plans |
bamboo_get_plan | Details for one plan |
bamboo_search_plans | Search plans by name |
bamboo_list_plan_branches | Branch plans for a plan |
bamboo_get_plan_branch | Details for one branch plan |
| Tool | What it does |
|---|---|
bamboo_get_latest_result | Latest build result for a plan |
bamboo_list_build_results | Recent build results |
bamboo_get_build_result | One build result |
bamboo_get_build_result_expanded | Build result plus changes, artifacts, stages, metadata and log URLs |
bamboo_get_build_repositories | Repositories and commits for a build |
bamboo_get_plan_repositories | Repositories configured on a plan |
bamboo_get_build_queue | What's currently queued |
| Tool | What it does |
|---|---|
bamboo_list_deployment_projects | All deployment projects |
bamboo_list_deployment_projects_for_plan | Deployment projects linked to a build plan |
bamboo_get_deployment_project | Deployment project + its environments |
bamboo_get_environment_results | Deployment history for an environment — who, when, status, version |
bamboo_get_deployment_result | Full detail of one deployment (trigger, timing, agent) |
bamboo_list_deploy_versions | Releases/versions for a deployment project |
bamboo_get_deploy_version | One version (creator, plan branch, items) |
bamboo_get_deploy_version_status | Where a given version sits across all environments |
These are what make the server useful rather than just a REST wrapper. They read a YAML file describing your plan-key and environment naming conventions, so the model can go from a human reference to a Bamboo key without you spelling it out.
| Tool | What it does |
|---|---|
bamboo_resolve_plan | CHECKOUT + app → EXAMPLE-CHECKOUTAPP |
bamboo_get_deploy_status | One call: resolve plan → latest build → deployment project → filter environments → per-environment history → Bamboo UI + log links |
bamboo_explain_environment | Parse staging_network_checkout_deploy into env / module / ref / action, with descriptions |
bamboo_get_plan_type_info | Everything known about a plan type: formats, actions, modules, log patterns, custom inputs, hints |
bamboo_get_plan_context | Dump the whole context config |
bamboo_reload_context | Hot-reload the config after you edit it — no restart |
bitbucket_add_repo, bitbucket_get_repo, bitbucket_list_repos, bitbucket_delete_repo.
Stores repository URL/username/token in ~/.bamboo-mcp/bitbucket.json (mode 0600, tokens masked on read). Nothing else in the server consumes this — Bitbucket links in build results are built from the BITBUCKET_URL environment variable. See limitations.
35 tools total. The full surface — names, descriptions and JSON Schemas — is
generated into tools.json, and bamboo-mcp --list-tools prints
the same payload without needing a Bamboo connection. See
the tool manifest.
MCP prompts give the model a structured plan for common workflows, so you get consistent output instead of ad-hoc tool flailing.
| Prompt | Arguments | Purpose |
|---|---|---|
deploy_status | reference, plan_type, environment, module | Deployment status with per-environment history |
who_deployed_last | reference, environment*, module, plan_type | Who shipped last, and when |
explain_environment | environment_name*, plan_type | Break an env name into its parts |
plan_type_guide | plan_type* | Full guide to a plan type |
build_investigation | build_key* | Investigate a build — changes, stages, log link |
build_repositories | build_key, plan_key | Commits and repos behind a build |
deployment_history | environment_id*, limit | Who deployed what, when, as a table |
resolve_plan | reference*, plan_type | Reference → plan key + latest build |
health_check | — | Full Bamboo health report |
* = required
stdio for desktop clients, sse (HTTP) for containers and remote access.SKIP_VALIDATION=true.BAMBOO_PROXY for corporate networks.tools.json and --list-tools, generated from the catalog and verified in CI, with a test that calls every declared tool. See Tests.Requires Go 1.23+ and a Bamboo personal access token.
Getting a token: Bamboo → your profile → Personal access tokens → create. Read permission on the projects you care about is enough; this server never writes.
Prebuilt multi-arch images (linux/amd64, linux/arm64) are published to GHCR on every release:
Tags: latest, 1, 1.2, 1.2.3. Or build it yourself:
Behind a corporate CA? The Dockerfile has commented-out lines near the top for copying your own PEM files into the image — drop them in certs/ and uncomment.
All configuration is environment variables. Copy .env.example to .env.dev to keep them out of git.
| Variable | Default | Purpose |
|---|---|---|
BAMBOO_URL | — | Required. Base URL, e.g. https://bamboo.example.com |
BAMBOO_TOKEN | — | Required. Personal access token (sent as Bearer) |
BAMBOO_PROXY | — | HTTP proxy, e.g. http://proxy.example.com:8080 |
BITBUCKET_URL | — | Base URL used to build source links in build results |
VERBOSE | false | Log requests/responses to stderr |
CONTEXT_FILE | ~/.bamboo-mcp/context.yaml | Plan context config |
SECURITY_FILE | ~/.bamboo-mcp/security.yaml | Security policy config |
SKIP_VALIDATION | false | Start even if Bamboo is unreachable |
MCP_TRANSPORT | stdio | stdio or sse |
MCP_HTTP_HOST | 0.0.0.0 | SSE only |
MCP_HTTP_PORT | 8080 | SSE only |
MCP_BASE_URL | http://localhost:8080 | SSE only — the externally reachable URL |
Note on logging: in stdio mode, stdout carries the MCP protocol stream. All logging goes to stderr — never add
fmt.Printlnto a handler.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Same shape as Claude Desktop, in the client's MCP settings file.
The SSE server exposes /sse and /message. It has no authentication of its own — see limitations.
This is the part worth spending ten minutes on.
Most Bamboo estates encode meaning in their plan keys and environment names — something like PROJ-CHECKOUTAPP with environments called staging_network_checkout_deploy. Out of the box an AI assistant has no idea what any of that means. context.yaml tells it.
On first run a starter file is written to ~/.bamboo-mcp/context.yaml. It ships deliberately generic placeholders — the feature only becomes useful once you describe your own conventions. A fully commented, worked example lives in examples/context.yaml.
How environment names are parsed. environment_format drives everything:
<placeholder> consumes one underscore-separated segment.<action> correctly matches restart_all_in_ns.<module> is matched greedily against your declared modules, so module names containing underscores (load_balancer) parse correctly.nodegroup in <env>_nodegroup_<action> — is matched as-is and reported back as marker.fixed_deployments is set, environment_format is ignored and names are matched exactly.Edit the file, then call bamboo_reload_context — no restart needed.
An MCP server is a privileged bridge: it holds a CI/CD credential and hands its output to a language model that will act on what it reads. Bamboo build logs, plan descriptions, branch names and commit messages are all attacker-influenceable text — anyone who can open a pull request can put words into a build log. This server treats every byte Bamboo returns as hostile input.
Guardrails are enforced in the internal/security package and applied uniformly by middleware, not scattered through handlers.
| # | Guardrail | Enforced where | Default |
|---|---|---|---|
| 1 | GET-only floor — no write can be made | policy.go + client.go | Always on, not configurable off |
| 2 | Universal middleware — no tool bypasses policy | middleware.go, all 35 registrations | Always on |
| 3 | Per-tool rate limits — sliding per-minute buckets | policy.go | 120/min; 10/min for bulk exports |
| 4 | Result caps — bounds pagination arguments | policy.go | 200 / 100 / 50 per tool |
| 5 | Response size cap — bounds context flooding | sanitizer.go | 512 KB, then truncated |
| 6 | Prompt-injection scanning — 23 patterns, 8 families | sanitizer.go | On |
| 7 | Untrusted-content labelling — on every response | sanitizer.go | Always on |
| 8 | Explicit environment — never inferred by the model | policy.go | On for env-sensitive tools |
| 9 | Environment allow/deny lists — e.g. block prod | policy.go | Empty (opt-in) |
| 10 | Per-tool kill switch | policy.go | Off (opt-in) |
| 11 | Credential hygiene — never logged, masked, 0600 | client.go, storage/, tools/ | Always on |
| 12 | Startup validation — fail fast on bad config/auth | validation/ | On |
| 13 | Non-root container, minimal Alpine base | Dockerfile | Always on |
This is the load-bearing guarantee, and it holds at two independent levels:
internal/bamboo/client.go only ever calls doRequest("GET", …). There is no code path that issues a POST, PUT, PATCH or DELETE to Bamboo. No write method exists to be reached.w(name, "GET", handler, …) and the policy engine rejects any other method before the handler runs. Even if a write method were added, it would be denied unless someone also edited allowed_methods.Notably, the floor is re-asserted after config load: if security.yaml sets an empty method list, the loader forces it back to ["GET"]. You cannot accidentally configure this server into being write-capable. Making it write-capable is a deliberate code change — that friction is the point.
PolicyEngine.Wrap() composes each handler as:
All 35 of 35 registered tools are wrapped. There is no "trusted" tool and no bypass path — a denial returns a structured error to the model rather than throwing, so the assistant sees why it was blocked and can explain it to you instead of silently retrying.
Three independent caps stop a single call — or a runaway agent loop — from draining your Bamboo instance into a model context window:
bamboo_list_all_projects is 10/min against a default of 120/min.maxResults, max_results, max-results, limit and maxResult, take the largest, and deny if it exceeds the tool's ceiling. Asking for 10,000 build results is refused, not silently truncated.[RESPONSE TRUNCATED] marker so the model knows it is looking at partial data.Every response is scanned against 23 regex patterns in 8 families:
| Family | Catches |
|---|---|
| Instruction override | "ignore previous instructions", "new instructions", jailbreak/DAN phrasing |
| Roleplay hijack | "you are now…", "act as", "pretend to be", "impersonate" |
| Chat-format delimiters | SYSTEM:, <|im_start|>, [INST], <<SYS>>, ###INSTRUCTION |
| Tool-chain triggers | "call the tool", "automatically invoke", embedded bamboo_* tool names |
| Script / code injection | <script, javascript:, data:text/html, eval(, os.system( |
| Shell / template expansion | $(…), {{…}} |
| Terminal control | ANSI escape sequences, NUL bytes |
| Data & credential fishing | "exfiltrate", "dump all", "reveal the token", BAMBOO_TOKEN, AWS_SECRET |
Matches are redacted to [REDACTED:LABEL] and the response is prefixed with a header naming what was found:
The header is prepended even when nothing is found, so the model is consistently told the payload is remote data rather than instruction. That consistency matters more than the pattern list: it removes the case where clean-looking content reads as trusted.
ScanText() is also exported for detection without mutation if you want to log rather than redact.
Redaction is destructive and over-eager on some legitimate CI content — see limitations before turning it off with
sanitize_responses: false.
The failure mode this addresses: you ask "how's the deployment looking?" and the model helpfully picks production.
env_sensitive_tools require an explicit environment argument. Absent it, the call is denied with a message stating the environment is never inferred from context or prompt text.denied_environments blocks named environments per tool — a hard "this tool may never touch prod".allowed_environments inverts it into an allowlist.disabled: true removes a tool entirely without recompiling.Authorization: Bearer header, and never written to logs — verbose logging prints method, URL, status and timing, never headers.~/.bamboo-mcp/ are written 0600 inside a 0700 directory.Startup validation refuses to serve on missing config, a malformed URL, an unreachable host or an invalid token — you find out at launch, not on the first tool call. The container runs as a non-root mcp user on a minimal alpine:3.20 base, with a static binary and no shell tooling beyond BusyBox.
All of it is tunable via ~/.bamboo-mcp/security.yaml, auto-created with safe defaults on first run:
Per tool: allowed_methods, max_results, rate_limit_per_minute, require_environment, allowed_environments, denied_environments, disabled.
Defaults fail closed. A missing, unreadable or partial config falls back to the built-in safe defaults rather than to "no restrictions".
Being explicit about the gaps is part of the model:
:8080 is full access. Put it behind an authenticating proxy or use stdio.GET. Delete them if unused.VERBOSE=true.Deployment status
Understanding your estate
Builds
Housekeeping
Read this before deploying it anywhere shared.
Read-only, and it means it. No triggering builds, no starting deployments, no editing plans. If you need write operations you will have to add them deliberately and loosen the policy engine — which is the intended friction.
The SSE transport has no authentication. Anyone who can reach :8080 gets full use of your Bamboo token, with your permissions. Do not expose it to an untrusted network. Put it behind an authenticating reverse proxy, or bind it to localhost, or just use stdio.
Your token's permissions are the real security boundary. The policy engine limits what kind of call is made, not what data is visible. Issue a token scoped to the projects you actually want the assistant to see.
The sanitizer rewrites response text. Redaction is destructive and some patterns fire on legitimate CI content — Helm templates ({{ .Values.x }}), shell expansions in build logs ($(date)), HTML in plan descriptions. If the model reports mangled or unparseable output, sanitize_responses: false is the escape hatch; you are then trading injection resistance for fidelity.
The Bitbucket tools are vestigial. They store credentials but nothing else in the server reads them; source links are built from BITBUCKET_URL. They are also the only tools with local side effects, yet they are registered as GET, so the read-only floor does not constrain them. If you are not using them, delete registerBitbucketTools from cmd/server/main.go — you lose nothing and shed a credential-handling surface.
The container healthcheck is a TCP probe. The MCP SSE library in use exposes only /sse and /message with no health endpoint, so the Dockerfile checks that the port accepts connections. It confirms the process is alive, not that Bamboo is reachable.
Errors are quiet unless VERBOSE=true. The logger short-circuits when verbose logging is off — including for errors. Turn it on while you are setting things up.
bamboo_get_deploy_status makes N+1 calls. One request per environment, sequentially. On a deployment project with many environments it is noticeably slow; use the environment filter.
Tested against Bamboo Server / Data Center only. It targets /rest/api/latest/. Bamboo Cloud is a different product and is not supported.
make validate doesn't do what it looks like. It passes a --validate-only flag the binary never parses, so it just starts the server. Startup validation runs on every launch anyway.
Never hardcode credentials in the Makefile — it reads them from the environment or an untracked .env.dev.
The binary takes no arguments in normal operation; these flags run one thing and exit:
| Flag | What it does |
|---|---|
--list-tools | Print the tool catalog as a tools/list payload. Needs no config or Bamboo connection. |
--validate-only | Run the startup checks, print the report, don't serve. |
--version | Print the version stamped in at build time. |
Every tool in the catalog is exercised. internal/tools/catalog_test.go walks
Catalog() and calls each tool through its registered handler against a fake
Bamboo REST server (helpers_test.go), so a tool that is declared but broken,
unrouted, or untested fails the build — there is no way to add a tool without a
test. Alongside that, the suite covers required-argument handling, upstream
error propagation, the plan-context resolution and environment parsing, and
token masking in the credential store.
.github/workflows/ci.yml runs gofmt, go vet and
go test -race on every push and pull request; the release pipeline repeats the
same gate before anything ships.
internal/bamboo/client.go.internal/tools/bamboo_tools.go.internal/tools/catalog.go — both in the relevant
*Catalog() function and in Handlers():toolCases in internal/tools/catalog_test.go.make tools-manifest to regenerate tools.json.cmd/server/main.go registers whatever Catalog() returns, each one wrapped by
the policy engine — there is no way to expose a tool that bypasses the security
layer. Startup aborts if a declared tool has no handler, TestEveryDeclaredToolIsExercised
fails if it has no test, and TestToolsJSONIsCurrent fails if tools.json is stale.
tools.json is the full tool surface — names, descriptions and
JSON Schemas — in exactly the shape an MCP client receives from tools/list. It
is generated from the catalog, not hand-maintained, and the binary can print it
without credentials or a reachable Bamboo:
Releases are cut by pushing a version tag — everything else is automated by
.github/workflows/release.yml:
That triggers, in order:
gofmt check, go vet, go test -race. Nothing ships if this fails.ghcr.io/<owner>/bamboo-mcp, multi-arch, tagged 1.0.0, 1.0, 1 and latest, with build provenance attestation.SHA256SUMS and auto-generated notes.A tag containing a hyphen (v1.0.0-rc1) is published as a pre-release and does not move latest.
No secrets to configure — the workflow authenticates to GHCR with the built-in GITHUB_TOKEN. One-time setup: the first release creates the package as private, so make it public under Packages → bamboo-mcp → Package settings if you want anonymous pulls.
The version is stamped into the binary at build time via -ldflags -X main.version=, so VERBOSE=true logs report the exact release. Local builds report git describe output instead.
Append to plan_types in ~/.bamboo-mcp/context.yaml, then call bamboo_reload_context. No rebuild, no restart. See examples/context.yaml for every supported field.
| Symptom | Try |
|---|---|
| Server won't start | Check BAMBOO_URL and BAMBOO_TOKEN; run with VERBOSE=true |
| 401 / 403 from Bamboo | Token expired, or lacks permission on that project |
| Connection refused / timeout | Set BAMBOO_PROXY if behind a corporate proxy |
| Client sees no tools | Use an absolute path to the binary in your MCP config |
| Garbled or truncated output | Sanitizer redaction or the 512 KB response cap — see security.yaml |
| Plan resolution returns nothing | default_project or plan-type suffix doesn't match your keys |
Issues and pull requests welcome. Please run make all before opening a PR.
mainmake all (fmt, vet, test, build)Apache License 2.0 — see LICENSE.
bamboo_get_deploy_status