OpenClaw GitHub MCP Install
Use this skill when an OpenClaw bot needs only GitHub MCP setup or troubleshooting. This skill intentionally excludes Google OAuth and other onboarding steps.
Operating Modes
- Prep only — inspect, explain, and prepare, but do not save secrets or modify live MCP config.
- Live install — install/configure GitHub MCP now.
- Repair — diagnose and repair an existing GitHub MCP install.
- Rollback — remove live MCP config and move live artifacts to recoverable trash.
If the request is ambiguous, default to prep-only until the user clearly authorizes live install or repair.
First Response Contract
Before making changes, explicitly confirm:
- Prep-only, live install, repair, or rollback?
- Read-only or write-capable?
- Public-only, selected private repos, or broad private repo access?
- Is local secret storage under
~/.openclaw/secrets/ authorized on this host?
First Questions
Before configuring anything, ask:
- Which human/operator owns this bot?
- Which GitHub user or organization should this bot connect to?
- Should access be public-only, selected private repos, or broad private repo access?
- Should the bot be allowed to perform write actions after explicit approval, or read-only only?
- Is this a fresh GitHub MCP install or a repair of an existing one?
- Should the bot only prepare the install plan, or perform the live install now?
Never assume the current gh login, SSH key, local git remote, or another bot's token is the intended GitHub identity.
Safety Rules
- Use GitHub's official MCP server as the source of truth: https://github.com/github/github-mcp-server
- Never paste, print, commit, or summarize GitHub tokens, PATs, OAuth tokens, private keys, or generated configs containing secrets.
- Store credentials via OpenClaw/Gateway secret handling when available, or under
~/.openclaw/secrets/ with chmod 600.
- Verify the authenticated GitHub identity before using repo access.
- Do not delete repos, change visibility, force-push, merge PRs, publish releases, change repo settings, or perform destructive writes without explicit approval for the exact action.
Files in This Skill
references/github-mcp-openclaw.md — OpenClaw-specific setup, verification, and troubleshooting notes.
references/install-nuances.md — specific pitfalls encountered while setting up GitHub access for OpenClaw bots.
Read references/github-mcp-openclaw.md before installing or repairing GitHub MCP. Read references/install-nuances.md when troubleshooting auth or tool-loading problems.
Standard Workflow
- Confirm target GitHub account/org and desired repo scope.
- Confirm whether the task is prep-only, live install, repair, or rollback.
- Open the official GitHub MCP server docs and follow the current install/auth path.
- For OpenClaw-managed MCP config, prefer
openclaw mcp set / openclaw mcp unset.
- Configure the MCP server in OpenClaw using a stable server name such as
github or github-official.
- Reload/restart only as required by OpenClaw's current MCP configuration path.
- Verify MCP tools load.
- Verify the authenticated GitHub identity and expected repo visibility.
- Run a harmless read operation.
- If writes are needed, test on a safe test repo/branch before using production repos.
- Document only safe facts in the bot's
TOOLS.md.
Install Profiles
Prefer one of these explicit profiles:
- read-only
- write-capable with explicit per-action approval
- repair existing install
- rollback existing install
Final Report
Report:
- MCP server name
- GitHub account/org connected
- Access scope verified
- Tool-loading status
- Harmless read test result
- Any blocked permissions or missing scopes
- Safety boundaries for future writes
- Whether the result is prep-only, live, repaired, or rolled back
1---2name: openclaw-github-mcp-install3description: Install, configure, verify, and troubleshoot the official GitHub MCP server for an OpenClaw bot, including auth identity checks, permissions, tool-loading verification, and write-action guardrails.4---56# OpenClaw GitHub MCP Install78Use this skill when an OpenClaw bot needs only GitHub MCP setup or troubleshooting. This skill intentionally excludes Google OAuth and other onboarding steps.910## Operating Modes1112- **Prep only** — inspect, explain, and prepare, but do not save secrets or modify live MCP config.13- **Live install** — install/configure GitHub MCP now.14- **Repair** — diagnose and repair an existing GitHub MCP install.15- **Rollback** — remove live MCP config and move live artifacts to recoverable trash.1617If the request is ambiguous, default to prep-only until the user clearly authorizes live install or repair.1819## First Response Contract2021Before making changes, explicitly confirm:22231. Prep-only, live install, repair, or rollback?242. Read-only or write-capable?253. Public-only, selected private repos, or broad private repo access?264. Is local secret storage under `~/.openclaw/secrets/` authorized on this host?2728## First Questions2930Before configuring anything, ask:31321. Which human/operator owns this bot?332. Which GitHub user or organization should this bot connect to?343. Should access be public-only, selected private repos, or broad private repo access?354. Should the bot be allowed to perform write actions after explicit approval, or read-only only?365. Is this a fresh GitHub MCP install or a repair of an existing one?376. Should the bot only prepare the install plan, or perform the live install now?3839Never assume the current `gh` login, SSH key, local git remote, or another bot's token is the intended GitHub identity.4041## Safety Rules4243- Use GitHub's official MCP server as the source of truth: https://github.com/github/github-mcp-server44- Never paste, print, commit, or summarize GitHub tokens, PATs, OAuth tokens, private keys, or generated configs containing secrets.45- Store credentials via OpenClaw/Gateway secret handling when available, or under `~/.openclaw/secrets/` with `chmod 600`.46- Verify the authenticated GitHub identity before using repo access.47- Do not delete repos, change visibility, force-push, merge PRs, publish releases, change repo settings, or perform destructive writes without explicit approval for the exact action.4849## Files in This Skill5051- `references/github-mcp-openclaw.md` — OpenClaw-specific setup, verification, and troubleshooting notes.52- `references/install-nuances.md` — specific pitfalls encountered while setting up GitHub access for OpenClaw bots.5354Read `references/github-mcp-openclaw.md` before installing or repairing GitHub MCP. Read `references/install-nuances.md` when troubleshooting auth or tool-loading problems.5556## Standard Workflow57581. Confirm target GitHub account/org and desired repo scope.592. Confirm whether the task is prep-only, live install, repair, or rollback.602. Open the official GitHub MCP server docs and follow the current install/auth path.613. For OpenClaw-managed MCP config, prefer `openclaw mcp set` / `openclaw mcp unset`.624. Configure the MCP server in OpenClaw using a stable server name such as `github` or `github-official`.634. Reload/restart only as required by OpenClaw's current MCP configuration path.645. Verify MCP tools load.656. Verify the authenticated GitHub identity and expected repo visibility.667. Run a harmless read operation.678. If writes are needed, test on a safe test repo/branch before using production repos.689. Document only safe facts in the bot's `TOOLS.md`.6970## Install Profiles7172Prefer one of these explicit profiles:7374- **read-only**75- **write-capable with explicit per-action approval**76- **repair existing install**77- **rollback existing install**7879## Final Report8081Report:8283- MCP server name84- GitHub account/org connected85- Access scope verified86- Tool-loading status87- Harmless read test result88- Any blocked permissions or missing scopes89- Safety boundaries for future writes90- Whether the result is prep-only, live, repaired, or rolled back