
Gocd
io.github.Sahilll15Published by GitHub account Sahilll15v0.1.2Updated Oct 24, 2026
MCP server for GoCD: dashboard, pipelines, artifacts, agents. Context-lean output.
Overview
MCP server that exposes the GoCD REST API so an assistant can read pipeline, stage, agent and artifact state and trigger or pause pipelines.
- What you can do
- Inspect dashboards, pipeline status, runs, stage runs, history and run-to-run commit changes
- Review artifacts: list a job's files and fetch one file with a size cap
- Survey build agents, materials, environments, pipeline groups, server health and version
- Operate pipelines: trigger a run, pause or unpause a pipeline (hideable with GOCD_READONLY=1)
- Keep output compact: summarized dashboards, column-oriented rows and capped responses
- When to use it
- Useful when you work with a GoCD CI/CD server and want an assistant to answer questions about pipeline health, recent failures, what changed between runs, or agent state, and to start or pause pipelines without opening the GoCD UI.
- Requirements
- Runs locally over stdio; the npm package gocd-mcp needs Node 18 or later (npx), with Go binary and Docker image alternatives. Requires GOCD_BASE_URL (bare host, no trailing /go) and GOCD_ACCESS_TOKEN, a GoCD personal access token created under your profile. Network access to the GoCD server.
Installation
In SourceWeft
- Open Gocd in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
gocd-mcp
An MCP server for GoCD. It exposes GoCD's REST API as MCP tools so any MCP client (Claude Code, Claude Desktop, Cursor) can read pipeline state and drive pipelines. Two implementations live here and behave identically on the wire: pick whichever fits how you want to install it.
go/— Go implementation. Ships as a single static binary or a Docker image. Fast cold start, low memory.ts/— TypeScript implementation. Runs on Node with no dependencies, sonpxneeds no build step.
Both return the same context-lean output: the dashboard is summarized by default, rows are column-oriented, and responses are compact JSON. A full GoCD dashboard is several MB across many pipelines; these tools trim it to what the model needs.
Tools
Read tools (safe):
Write tools (operate):
Set GOCD_READONLY=1 to hide the three write tools. Large listings
(dashboard, pipeline_groups, materials, environments) are summarized or
filterable so they never dump the raw multi-MB body into the model's context.
Configuration
Two environment variables, both required:
GOCD_BASE_URL is the bare host, without a trailing /go. The tools append
/go/api/... themselves. Create the token in GoCD under your profile, Personal
Access Tokens.
Install
npx (Node >= 18), recommended
Zero install, nothing to build. This is the simplest way to run the server:
Published on npm as gocd-mcp and on the
MCP Registry as io.github.Sahilll15/gocd, so registry-aware clients can find it by name.
Go binary
Download a prebuilt binary from Releases, or build it:
Register it:
Docker
To run the TypeScript source directly during development (Node >= 22.6, uses type-stripping):
Which one
They are functionally identical. In a local benchmark the Go build started about
4x faster (~21ms vs ~80ms cold start) and used about 6x less memory; per-request
latency was a tie because the GoCD network round-trip dominates. Prefer the Go
binary or Docker image for a spawned-per-session server; prefer npx when you want
the zero-install path and already have Node.
Layout
Source: README.md at commit c03fa4f
Tools
0Version history
1- v0.1.2LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.