ワンクリックで
setup-gh-mcp
Internal helper. Load only when explicitly named by another skill or agent.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Internal helper. Load only when explicitly named by another skill or agent.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
This skill should be used when the user asks to "babysit a PR", "babysit my pull request", "monitor my PR", "watch my pull request", "keep my PR green", "fix PR build failures automatically", "handle PR review comments", or wants autonomous Azure DevOps PR monitoring that fixes build breaks, test failures, code coverage gaps, and review comments on a polling loop.
Internal helper. Load only when explicitly named by another skill or agent.
Internal helper. Load only when explicitly named by another skill or agent.
Publish local changes as an Azure DevOps pull request — analyzes commits, creates or links a work item (bug, task, or user story), pushes the branch, composes a PR description, and optionally tends to reviewer feedback and build failures until the PR is merged.
Internal helper. Load only when explicitly named by another skill or agent.
Internal helper. Load only when explicitly named by another skill or agent.
SOC 職業分類に基づく
| name | setup-gh-mcp |
| description | Internal helper. Load only when explicitly named by another skill or agent. |
| user-invocable | true |
| disable-model-invocation | false |
| allowed-tools | ["Read","Write","Edit","Bash"] |
Set up GitHub MCP without making the user hand-edit config files. Prefer existing repo examples and git remote detection over questions.
Configure all local MCP entrypoints needed for this repo in one run:
.mcp.json for Claude Code.claude/settings.local.json only if the GitHub MCP server is not already enabled~/.copilot/mcp-config.json for GitHub Copilot CLIUse the committed examples as the canonical shapes. Reference files are in the
plugin's examples/ directory.
Resolve settings in this order:
GITHUB_PERSONAL_ACCESS_TOKENGITHUB_REPOSITORYGH_HOSTgit remote get-url originhttps://github.com/{owner}/{repo}.gitgit@github.com:{owner}/{repo}.githttps://{host}/{owner}/{repo}.gitgit@{host}:{owner}/{repo}.gitGH_HOST=github.comGITHUB_REPOSITORY=<owner>/<repo> from the remote when availableOnly ask the user for input if both environment variables and git remote detection fail to produce the required host/repository values.
If a PAT is not present, still write the config using the
${GITHUB_PERSONAL_ACCESS_TOKEN} placeholder from the examples. Do not hardcode
secret values into config files.
Target file: .mcp.json
.mcp.json does not exist, create it with a top-level mcpServers object.mcpServers.github entry and preserve all other servers.github server entry using the remote GitHub MCP server:{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
},
"defer_loading": true
}
}
}
Notes:
${GITHUB_PERSONAL_ACCESS_TOKEN}
placeholder.Target file: .claude/settings.local.json
enableAllProjectMcpServers is trueenabledMcpjsonServers exists and includes "github" exactly onceDo not remove unrelated permissions or settings.
Target file: ~/.copilot/mcp-config.json
~/.copilot directory exists.mcpServers object.mcpServers.github entry and preserve all other servers.github server entry with this shape:{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
}
Guidelines:
github so it can coexist with Copilot CLI's built-in
github-mcp-server.Validate all JSON files you touched:
.mcp.json.claude/settings.local.json~/.copilot/mcp-config.jsonUse the available shell to parse the JSON rather than assuming it is valid.
Examples:
Get-Content '<path>' -Raw | ConvertFrom-Json | Out-Nullpython -c "import json; json.load(open('<path>'))"node -e "JSON.parse(require('fs').readFileSync('<path>', 'utf8'))"If parsing fails, fix the file before reporting success.
At the end, summarize:
.claude/settings.local.json/mcp or claude mcp list/mcp show github and /mcp show github-mcp-server