Skip to main content
Glama

gthb: your GitHub issues for AI agents

gthb copies the issues and the README of the GitHub repositories you choose into a local store, with the issues' comments, labels, milestones and assignees, so you and your agent (Claude Code, Codex or any agent that speaks MCP) find them in one command, offline, without spending GitHub's rate limit on every question.

  • Read-only. It never writes to GitHub, and a fine-grained read-only token is all it asks for.

  • You choose the repositories. gthb work repos add octo-org/app, then gthb work sync.

  • Search and lists from the copy. issues list|show|search|context, repos show, documents for the READMEs, and search all in wcat across your other tools.

  • No code. It copies what people write about the work, not the code. The api group leaves out every operation that returns file contents, the README or LICENSE text, archives, gists, logs, webhooks, Actions variables, code search, CODEOWNERS errors, check-run annotations or Copilot Space resources, and takes diffs (patch, diff_hunk), a check run's report text, secrets and download links out of every other answer. The README's text reaches only your local copy.

Pull requests, reviews, commits and project boards come in later versions.

Why gthb

  • The token stays in the system keyring, and every command names the profile it uses.

  • One profile reads one owner's repositories, as a fine-grained token does; a second owner is a second profile.

  • Every request is tested against a strict fake of GitHub built from GitHub's own API description: no test reaches GitHub.

Related MCP server: Simple Code Review Assistant

Quick start

pnpm install
pnpm build
node dist/bin/gthb.js doctor

Once it is on npm: npm install -g @wirecat/github-cli, then gthb doctor. Every command that uses an account starts with a profile, a name you choose: gthb personal config show.

Sign in once with gthb work session start. It shows how to make a fine-grained read-only token, asks for it, checks it with GitHub and keeps it in the keyring. Then choose the repositories and copy them:

gthb work repos add octo-org/app
gthb work sync
gthb work issues search login token

Use it with your agent

gthb personal mcp add claude-code
gthb skill install

gthb personal mcp check shows the tools your agent gets. mcp add refuses a profile whose tools may write until you review its permissions and pass --allow-writes. gthb personal mcp config prints the setup for any other MCP client.

gthb only reads GitHub, so an agent over MCP can change nothing there. To keep it from the raw API too, refuse the group: gthb personal config set permissions.api deny.

What it can do

docs/commands.md lists every command, and --help after any of them shows its flags.

Settings and permissions

gthb personal config show prints the profile's settings. See docs/configuration.md.

Security

See docs/security.md, and SECURITY.md to report a problem.

When something goes wrong

Run gthb doctor and see docs/troubleshooting.md. Report a bug on GitHub.

Development

Started from cli-template. Its design is in docs/dev/DESIGN.md, and the working rules are in AGENTS.md. Published as @wirecat/github-cli.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers