git-bug-broker
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@git-bug-broker File an issue titled 'Retry loop never backs off after 429' with area/api and kind/defect."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
git-bug-broker
An MCP server that lets several agents file, label and close issues in one git-bug store (a distributed issue tracker that keeps issues in git refs) while its web UI stays open.

git-bug keeps issues inside the repository as git objects, so agents can track work
next to the code with no hosted tracker, API token or network. Through this server an
agent can open an issue for a bug it finds, comment on it as it investigates, label it,
read what other agents have written, and close it with a note naming the commit that
fixed it. Issues are versioned like commits and sync through any git remote with
git bug push and git bug pull, so the record carries over between sessions and
between agents.
git-bug webui holds the search index for as long as it runs, and every CLI command waits on it without saying so. The broker talks to the web UI's GraphQL endpoint instead, takes a file lock for each write, and refuses any write that breaks the project's conventions: claim-style titles, one area/ and one kind/ label, required body sections. A rejected write lists every problem at once. Unlike a wrapper around the CLI, it keeps working while git-bug webui is open, and concurrent writes don't collide. The client is also a small Python library, so a script can write to the store while the UI is open too.
Works with git-bug 0.11. Tested on Windows; the Linux and macOS paths are written but untested.
Install
pip install git-bug-brokeror from a checkout of the repository, pip install -e .. Needs Python 3.10+ and git-bug on PATH.
Related MCP server: AgentXFlow
Run
git-bug-broker-start <repo> # start the web UI (reuses one already running)
git-bug-broker-start <repo> --status
git-bug-broker-start <repo> --stopIt prints the web UI's URL. An issue is at <url>/_/issues/<id>, where <id> is the
short id the tools return. The issue list starts filtered to status:open; clear the
search box to see closed issues too. --stop only stops the process it started.
Use from Python
from git_bug_broker.client import Client
c = Client(repo="/path/to/repo")
c.file_entry(
"The retry loop never backs off after a 429",
"**What** retry() sleeps a fixed 1 s.\n**Done when** the delay doubles per attempt.",
["area/api", "kind/defect"],
)Connect an MCP client
.mcp.json for Claude Code:
{
"mcpServers": {
"git-bug": {
"command": "git-bug-broker",
"env": {
"GITBUG_BROKER_REPO": "/path/to/repo",
"GITBUG_BROKER_RULES": "/path/to/repo/.git-bug-rules.json"
}
}
}
}Any stdio MCP client takes the same command and env.
GITBUG_BROKER_RULES is optional. Without it the defaults in
src/git_bug_broker/rules/default.json apply and any area name is accepted.
examples/rules.example.json shows a project file with a fixed area list.
GITBUG_BROKER_URL points the client at a web UI the broker did not start, for example one on another port.
Tools: file_entry, comment, edit_body, edit_comment, relabel, set_status,
set_title, get, query. A rejected write lists every problem at once.
Read-only mode
Off by default. Start the server with --read-only, or set
GITBUG_BROKER_READ_ONLY=1, and it registers only get and query. The write tools
are not registered, so any other call fails as an unknown tool.
Run it beside the read-write server for clients that should only read. Both use the same web UI:
{
"mcpServers": {
"git-bug": {
"command": "git-bug-broker",
"env": {
"GITBUG_BROKER_REPO": "/path/to/repo",
"GITBUG_BROKER_RULES": "/path/to/repo/.git-bug-rules.json"
}
},
"git-bug-read": {
"command": "git-bug-broker",
"args": ["--read-only"],
"env": {
"GITBUG_BROKER_REPO": "/path/to/repo"
}
}
}
}A read-only server needs no rules file.
The server takes no other arguments. An unknown argument, or a
GITBUG_BROKER_READ_ONLY value other than 1/true/yes/on or 0/false/no/off, stops it at
startup.
This is separate from git-bug webui --read-only. The web UI stays writable to anything
that can reach its GraphQL endpoint.
Rules
What gets checked is in CONVENTIONS.md. Briefly:
a title is a claim about the code, at most 80 characters, with no leading number
exactly one
area/and onekind/label, with a slash, never a colondefects and chores have
WhatandDone whensectionsfile_entry,edit_body,relabelandset_titleare checked;comment,edit_commentandset_statusare not
Why the lock
git-bug 0.11 applies an operation and commits it in two unguarded steps. When two
writes hit the same issue at once both land, but one caller is told
can't commit an entity with no pending operation, and a retry duplicates the write.
The broker holds <repo>/.git/git-bug-broker/write.lock for each write. Reads don't
lock.
Measured on git-bug 0.11 on Windows: with the lock, 24 parallel writes from 4 server processes, 12 of them to one shared issue, finished in 3.7 s with no errors. Without it, 28 of 30 concurrent writes to one issue reported failure although all 30 had landed.
Limitations
The web UI has to be running. If it isn't, every tool says so and nothing is queued.
Filing an issue is two mutations, create then label. A crash in between leaves an unlabelled issue; the error gives its id.
The web UI binds to 127.0.0.1 with no authentication.
Edits made in the web UI aren't checked against the rules.
Free-text search returns at most 10 results.
title:,label:andstatus:filters return everything.
Development
pip install -e .[dev]
pytesttools/view.py renders the store as a static HTML page and a JSON Lines snapshot. It reads through the CLI, so run it while the web UI is stopped; anything reading its output needs neither.
License
MIT
Available Tools
9 toolscommentC
Add a comment to an entry, by id or unique id prefix.
Inputs: id (required), message (required).
edit_bodyC
Replace an entry's body (its first comment). Checked against the entry's kind.
Inputs: id (required), body (required).
edit_commentB
Replace the text of one comment, by the comment id that get() returns.
Inputs: message (required), comment_id (required).
file_entryA
File a new entry. labels must include exactly one area/ and one kind/ (defect, chore, decision, investigation, idea); add filed-by/ when an agent files it.
Inputs: body (required), title (required), labels (required).
getB
Read one entry: title, status, labels, body and comments with their ids.
Inputs: id (required).
queryA
List entries matching a git-bug query, for example 'status:open label:area/api' or 'label:kind/defect sort:edit'. Returns ids, titles, status and labels, not bodies.
Inputs: first, query.
relabelA
Add and remove labels in one operation. The resulting set must satisfy the standard, so swap an area with add=['area/new'], remove=['area/old'] in one call.
Inputs: id (required), add, remove.
set_statusB
Open or close an entry ('open' or 'closed'), optionally with a comment in the same operation. A closing comment should name the commit and the test that pins the fix.
Inputs: id (required), status (required), comment.
set_titleC
Retitle an entry. The new title is checked against the standard.
Inputs: id (required), title (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool maps to a fairly distinct action: create (file_entry), read (get), list (query), and targeted mutations (set_status, set_title, relabel, edit_body, edit_comment, comment). The main friction is edit_body vs edit_comment, which overlap since the body is described as 'its first comment'—an agent could hesitate over which to use.
Several tools follow a clean verb_noun pattern (edit_comment, set_status, set_title, edit_body, file_entry), but others are bare single words (get, query, relabel, comment). It's readable but the convention is mixed rather than predictable.
Nine tools is well-scoped for an issue-tracker surface, covering the core lifecycle without bloat or redundancy. Each tool clearly earns its place.
Creation, reading, listing, commenting, and most update operations (status, title, labels, body, comments) are covered. The notable gap is deletion—no tool to remove an entry or a comment—though this may be intentional for an append-oriented bug tracker.
Maintenance
Related MCP Connectors
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
A real-time, multiplayer filesystem for agents and humans: shared files, live edits, history.
One drive your team and its agents share: read, write, undo from history, fork and publish.
Coding agents in one repo see each other, get warned before shared edits, and message.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLocal coordination for coding agents that share a Git working tree.6 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables multiple AI coding agents to collaborate on the same Git repository without conflicts through isolated worktrees, file locking, automated test verification, and a serialized merge queue.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables multiple AI coding agents to safely collaborate in the same git working tree by managing file ownership, merging writes, and preventing snapshot races.7 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables multiple AI tools to observe the same local project, share file changes with per-client pagination and acknowledgement, coordinate turn-based collaboration, and exchange private, broadcast, and reply messages through a local mailbox.MIT