GitHub
Repos, issues and PRs within reach of the agent
Let your AI work with your repos
Files, issues, PRs and code search from chat — limited by the token you provide.
GitHub is the platform where your repos, issues, pull requests and code reviews live. The official @modelcontextprotocol MCP server connects Claude to the GitHub API for "file operations, repository management, search functionality, and more", always using the permissions of the Personal Access Token you configure.
What it does: it can read file and directory contents, search repos/code/issues/users, create issues, open pull requests, comment, review PRs, create branches and push changes. The official README highlights "Automatic Branch Creation", "Batch Operations" and "Advanced Search" as core capabilities.
What you can ask
- "Find where this repo defines the auth middleware and summarize the relevant files."
- "Open a draft pull request from
feature/loginintomainwith this title and body." - "List open issues labeled
bug, sorted by most recently updated, and tell me what needs action."
What token you need
You need a GitHub Personal Access Token. The official README says: "Create a token with the repo scope" and notes that, if you only work with public repositories, you can use public_repo.
- Go to github.com/settings/tokens.
- Create a token for the exact repos you want to use with Terminal Sync.
- For private repos, include
repo; for public repos, preferpublic_repo. - Paste it when the Lab asks for
GITHUB_PERSONAL_ACCESS_TOKEN. Terminal Sync stores it encrypted in your Keychain.
Give it the least access possible: if the agent only needs to read, use a token limited to those repos; if it will open PRs or write files, enable write permissions only where needed.
We open the app and set it up in Claude Code (and your other Macs).
How it works with Terminal Sync
Set up the connector once on one machine. Terminal Sync keeps your claude_desktop_config.json encrypted in your Drive, so on any other machine where you open Claude Code, the connector is already there.