SecureAuth AI Gateway
IntegrationsResources

GitHub

Code hosting, pull requests, and project management

GitHub integration connects your agents to GitHub's code hosting, pull requests, and project management platform.

Server URL: https://api.githubcopilot.com/mcp

Setup

  1. Navigate to Resources and click Add Resource
  2. Select GitHub from the catalog
  3. Choose a credential mode (see below)
  4. Click Add

The resource is added with all tools and scopes pre-configured. Each user connects their own GitHub account via OAuth when they first use a GitHub tool. Navigate to Connections to manage linked accounts.

Supported credential modes

GitHub supports two modes:

  • Use SecureAuth's app — install instantly with SecureAuth's pre-registered GitHub OAuth app. No setup on your side. Recommended for most installs.
  • Bring your own app — use a GitHub OAuth app owned by your organization. Recommended when you need GitHub-side audit attribution, dedicated rate limits, or your own branding on the consent screen.

See Credential modes for the full comparison.

Available tools

ToolDescription
get_meGet details of the authenticated GitHub user
get_file_contentsGet the contents of a file or directory from a repository
create_or_update_fileCreate or update a single file in a repository
push_filesPush multiple files in a single commit
search_codeSearch for code across GitHub repositories
search_repositoriesSearch for GitHub repositories
create_repositoryCreate a new GitHub repository
create_branchCreate a new branch in a repository
list_branchesList branches in a repository
list_commitsList commits of a branch in a repository
list_issuesList issues in a repository
search_issuesSearch for issues across repositories
create_issueCreate a new issue in a repository
update_issueUpdate an existing issue
add_issue_commentAdd a comment to an issue
list_pull_requestsList pull requests in a repository
search_pull_requestsSearch for pull requests across repositories
create_pull_requestCreate a new pull request
update_pull_requestUpdate an existing pull request
merge_pull_requestMerge a pull request
pull_request_readGet details, diff, status, or reviews of a pull request
pull_request_review_writeCreate or manage pull request reviews

Required scopes

  • repo — full access to repositories including code, issues, and pull requests
  • read:org — read organization membership and teams
  • read:user — read user profile information

Policy examples

  • Allow read-only access: tool patterns get_*, list_*, search_*, pull_request_read
  • Block repository creation and file writes: add deny rules for create_repository, create_or_update_file, push_files
  • Allow full PR workflow but block merges: allow *pull_request* tools, then deny merge_pull_request

On this page