Koji MCP Server
Provides read-only tools for querying Fedora's Koji build system, including looking up builds, tags, targets, tasks, logs, RPMs, tagged builds, and build history, and diagnosing why a build or task failed.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
koji-mcp
A read-only MCP server for the Koji build system. An AI assistant can use it to look up builds, tags, tasks and logs, and to explain why a build failed. Fedora's Koji is the default hub, and no login is needed.
Quick path
Requirements: Python 3.12 or newer and uv.
Clone the repository and install the dependencies:
git clone https://github.com/echevemaster/koji-mcp.git cd koji-mcp uv syncRegister the server with your MCP client. For Claude Code:
claude mcp add koji -- uv --directory "$PWD" run koji-mcpOther clients take the same command (
uv --directory /path/to/koji-mcp run koji-mcp) in their MCP server configuration. The server speaks MCP over stdio.Ask something like:
"Why did bazelisk-1.30.0-4.fc44 fail?"
"Which bash build is in f41-updates?"
"Which systemd update for Fedora 40 spent the longest in updates-testing in 2024?"
Related MCP server: jenkins-mcp
Tools
Every tool is read-only and uses anonymous hub calls, so it needs no login.
Tool | What it answers |
| Why a build or task failed: the failed subtask, the state of every arch subtask, Koji's error, the likely cause (including Go, Python, Rust, C/C++ and CMake errors), key error lines and the |
| One build: state, owner, task, timestamps, web link |
| Builds filtered by package, package-name prefix, owner, state or dates |
| The RPMs a build produced: package name, NVR, arch and file size in bytes |
| The latest build of each package in a tag |
| Every build tagged into a tag |
| A tag's configuration and its inheritance chain |
| A build target's build tag and destination tag |
| A task and its child tasks, with owner and builder host names |
| A task's output files, or the tail of one log |
| Exact names of packages, builds, tags, targets, users, hosts or RPMs |
| Who tagged or untagged builds, or changed tags, and when (newest first by creation time) |
Shared behavior:
Output: each tool takes
response_format:markdown(default) orjson(the full record).Paging: list tools take
limitandoffset. Markdown output ends with the next offset, and JSON includeshas_moreandnext_offset.Dates: all dates are ISO 8601 in UTC.
Logs: logs are always truncated. The server reads at most the last 256 KiB and returns the last
tail_lineslines, plus a link to the full log.
Other Koji instances
The server reads standard koji client profiles from /etc/koji.conf, /etc/koji.conf.d/ and ~/.koji/config.d/. Choose a profile with --profile or with the KOJI_MCP_PROFILE environment variable:
claude mcp add koji-stream -- uv --directory /path/to/koji-mcp run koji-mcp --profile streamIf no configuration exists for the default koji profile (macOS, or a distro other than Fedora), the server uses Fedora's hub.
Development
uv run pytest # unit and stdio protocol tests (offline)
KOJI_MCP_LIVE=1 uv run pytest tests/test_live_smoke.py # read-only checks against Fedora Koji
npx @modelcontextprotocol/inspector uv run koji-mcp # explore the tools interactivelyEvaluations
evals/koji_evaluation.xml holds 10 questions about Fedora Koji. A model answers each one using only this server's tools. Each question needs several tool calls, and its answer is a single value checked by exact string match. The questions only use closed, historical data (builds and tag changes from before May 2026), so the answers do not change.
Run them with the evaluation harness from Anthropic's mcp-builder skill (scripts/evaluation.py). It calls the Claude API, so it needs ANTHROPIC_API_KEY:
uv sync # creates .venv/bin/koji-mcp
uv run --no-project --with anthropic --with 'mcp<2' python /path/to/mcp-builder/scripts/evaluation.py \
-t stdio -c "$PWD/.venv/bin/koji-mcp" \
-m claude-opus-5-5 -o eval-report.md evals/koji_evaluation.xmlScope
The server is read-only on purpose. Write operations such as build, cancelTask or tagBuild are out of scope, because they need authentication and can change a real build system.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Check whether a repo, npm package or website is ready to launch and usable by AI agents, and find agents or MCP servers by what they do. Read-only, no key.
Read-only tools for the approved public KOKU SCRIPTS AI Catalog.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Check if an AI agent is certified; list the TAP Registry and certifications. Free, read-only.
Related MCP Servers
FlicenseAqualityDmaintenanceProvides tools to interact with Fedora Copr, enabling users to manage projects, builds, and packages through natural language.104-- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Jenkins, enabling users to inspect project and environment build status, list builds, retrieve console logs and test reports, diagnose failed builds, and search jobs via natural language, without triggering or changing builds.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Jenkins servers through the Jenkins API, allowing them to browse items, nodes, views and plugins, inspect and control builds and queue items, retrieve artifacts, test reports and console output, submit pipeline inputs, and run Groovy scripts. Supports authenticated or anonymous access over stdio, SSE, and streamable-http transports with an optional read-only mode.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to inspect and operate Jenkins instances: listing jobs, builds, queue items and nodes, reading incremental build logs and pipeline stage views, and triggering, stopping or cancelling builds with read-only guards.1Apache 2.0