Minimal MCP server exposing GitHub Actions workflow tools via the gh CLI.
Provides 7 tools for listing, triggering, observing, cancelling, and rerunning workflow runs — everything an agent needs for an Actions feedback loop.
| Tool | Description |
|---|---|
list_workflows |
List workflow files in a repository |
trigger_workflow |
Trigger a workflow_dispatch event (returns run URL) |
list_runs |
List recent workflow runs (filter by workflow, branch, status) |
view_run |
View details of a single run including jobs and steps |
cancel_run |
Cancel a running workflow |
rerun_run |
Re-run a workflow (optionally only failed jobs or with debug) |
watch_run |
Block until a run completes and return output |
just bootstrap # install deps + pre-commit hooks
just check # run all CI gatesfastmcp dev main.pyfastmcp run main.pyAdd to your MCP client config:
{
"mcpServers": {
"gh-mcp": {
"command": "fastmcp",
"args": ["run", "main.py"]
}
}
}| Command | What it does |
|---|---|
just check |
All gates (format, lint, typecheck, test) |
just format |
Auto-format and lint-fix all Python files |
just lint |
Run ruff lint (no auto-fix) |
just typecheck |
Run pyright type checker |
just test |
Run pytest |
just sync |
Sync dependencies from uv.lock |
just bootstrap |
Install deps and pre-commit hooks (run once) |
uvis the package manager. Do not usepip installdirectly.- All code must pass
pyrightin strict mode. - Ruff replaces flake8, black, isort, and pyupgrade.
- Tests must pass. Do not commit with failing tests.
- All deps must be in
pyproject.toml. Do not hand-edituv.lock.