Quick overview
GitHub MCP is not a code-search plugin; it is a repository control plane attached to an agent. The critical architectural shift is that code, issue history, pull requests, Actions runs, and security findings become one traversable graph instead of five browser tabs with manually copied context. An agent can inspect the exact commit that introduced a regression, read the linked issue, examine the failed workflow, and draft a minimal pull request without losing the causal chain between them. The hidden risk is authorization inheritance: the server can act with the permissions of its token, and a prompt-injected issue or README can attempt to steer the agent toward secrets, destructive operations, or unauthorized repository changes. Use fine-grained tokens, repository allowlists, read-only mode for analysis, and branch protection for every write path. The production-grade pattern is evidence first, mutation second: retrieve the repository, branch, file, and issue identifiers; show the proposed diff; then require a human approval before opening a pull request or changing workflow state.