ghcli-mcp-connector
v0.1.1MCP server for the GitHub CLI (gh).
Not smoke-tested: mcpb packages are not smoke-tested yet.
Values you need
| Variable | What it is | |
|---|---|---|
GH_TOKEN | optional secret | gh CLI token. Leave unset to use whatever `gh auth login` already configured (OS keychain). |
GH_HOST | optional | Target a GitHub Enterprise hostname instead of github.com. |
GHCLI_MCP_ALLOW_WRITE | optional | Set to "true" to permit state-changing gh commands. Defaults to read-only. |
GHCLI_MCP_ALLOWED_REPOS | optional | Optional comma-separated allowlist of "owner/repo" values, enforced when -R/--repo is passed. Unset allows all. |
GHCLI_MCP_CLI_PATH | optional | Optional path to the gh binary. Defaults to "gh" resolved via PATH. |
No installable package or endpoint was found. See the README for build-from-source steps.
For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (none) and that the values above are set.
Machine-readable: install.md · manifest.json