Admin Tools
Overview
Section titled “Overview”22 administrative tools with safety controls for repository management. All admin operations are classified by risk level and protected by the 4-tier safety system.
Risk Levels
Section titled “Risk Levels”| Level | Description | Examples |
|---|---|---|
| LOW | Read-only | List collaborators, view settings |
| MEDIUM | Reversible changes | Create webhook, add collaborator |
| HIGH | Impacts collaboration | Remove collaborator, delete webhook |
| CRITICAL | Irreversible or very high impact | Delete repository, remove branch protection |
Repository Settings (4 tools)
Section titled “Repository Settings (4 tools)”github_get_repo_settings 🟢 LOW
Section titled “github_get_repo_settings 🟢 LOW”Retrieve complete repository configuration.
Parameters:
owner(required): Repository ownerrepo(required): Repository name
Example:
{ "owner": "username", "repo": "my-project"}Output:
{ "name": "my-project", "description": "A cool project", "private": false, "has_issues": true, "has_wiki": false, "has_projects": true, "default_branch": "main", "allow_merge_commit": true, "allow_squash_merge": true, "allow_rebase_merge": false, "delete_branch_on_merge": true}github_update_repo_settings 🟡 MEDIUM
Section titled “github_update_repo_settings 🟡 MEDIUM”Modify repository properties.
Parameters:
owner(required): Repository ownerrepo(required): Repository namename(optional): New repository namedescription(optional): New descriptionprivate(optional): Change visibilityhas_issues(optional): Enable/disable issueshas_wiki(optional): Enable/disable wikihas_projects(optional): Enable/disable projectsdefault_branch(optional): Change default branchallow_merge_commit(optional): Allow merge commitsallow_squash_merge(optional): Allow squash mergingallow_rebase_merge(optional): Allow rebase mergingdelete_branch_on_merge(optional): Auto-delete head branches
Example:
{ "owner": "username", "repo": "my-project", "description": "Updated description", "has_wiki": false, "delete_branch_on_merge": true}github_archive_repository 🔴 CRITICAL
Section titled “github_archive_repository 🔴 CRITICAL”Archive repository (read-only mode).
Parameters:
owner(required): Repository ownerrepo(required): Repository name
Confirmation required: YES (HIGH-risk in moderate mode)
What happens:
- Repository becomes read-only
- No new issues, PRs, or commits allowed
- Existing content remains accessible
- Can be un-archived later via GitHub web interface
Example:
{ "owner": "username", "repo": "old-project"}github_delete_repository 🔴 CRITICAL
Section titled “github_delete_repository 🔴 CRITICAL”PERMANENTLY delete repository.
Parameters:
owner(required): Repository ownerrepo(required): Repository name
Confirmation required: YES (CRITICAL-risk, always requires confirmation)
Safety features:
- Requires confirmation token
- Audit log entry created
- Recommends manual backup first
- Cannot be undone
Example:
{ "owner": "username", "repo": "obsolete-project"}Branch Protection (3 tools)
Section titled “Branch Protection (3 tools)”github_get_branch_protection 🟢 LOW
Section titled “github_get_branch_protection 🟢 LOW”View branch protection rules.
Parameters:
owner(required): Repository ownerrepo(required): Repository namebranch(required): Branch name (e.g.,main)
Output:
{ "branch": "main", "protected": true, "required_status_checks": { "strict": true, "contexts": ["ci/build", "ci/test"] }, "required_pull_request_reviews": { "required_approving_review_count": 2, "dismiss_stale_reviews": true, "require_code_owner_reviews": true }, "restrictions": { "users": ["maintainer1", "maintainer2"], "teams": ["core-team"] }, "enforce_admins": true, "allow_force_pushes": false, "allow_deletions": false}github_update_branch_protection 🟠 HIGH
Section titled “github_update_branch_protection 🟠 HIGH”Configure branch protection rules.
Parameters:
owner(required): Repository ownerrepo(required): Repository namebranch(required): Branch namerequired_status_checks(optional): CI/CD checks requiredrequired_pull_request_reviews(optional): PR review requirementsrestrictions(optional): Who can push (users/teams)enforce_admins(optional): Apply rules to adminsallow_force_pushes(optional): Allow force pushesallow_deletions(optional): Allow branch deletion
Example:
{ "owner": "username", "repo": "my-project", "branch": "main", "required_pull_request_reviews": { "required_approving_review_count": 2, "dismiss_stale_reviews": true, "require_code_owner_reviews": false }, "enforce_admins": true, "allow_force_pushes": false}github_delete_branch_protection 🔴 CRITICAL
Section titled “github_delete_branch_protection 🔴 CRITICAL”Remove all branch protection rules.
Parameters:
owner(required): Repository ownerrepo(required): Repository namebranch(required): Branch name
Confirmation required: YES (CRITICAL-risk)
Webhooks (5 tools)
Section titled “Webhooks (5 tools)”github_list_webhooks 🟢 LOW
Section titled “github_list_webhooks 🟢 LOW”List all repository webhooks.
Parameters:
owner(required): Repository ownerrepo(required): Repository name
Output:
{ "webhooks": [ { "id": 123456, "url": "https://api.example.com/webhook", "events": ["push", "pull_request"], "active": true, "created_at": "2024-01-15T10:30:00Z" } ]}github_create_webhook 🟡 MEDIUM
Section titled “github_create_webhook 🟡 MEDIUM”Create new webhook with custom configuration.
Parameters:
owner(required): Repository ownerrepo(required): Repository nameurl(required): Webhook endpoint URLevents(optional): Array of events to trigger (default:["push"])content_type(optional):jsonorform(default:json)secret(optional): Webhook secret for signature validationactive(optional): Enable immediately (default: true)
Example:
{ "owner": "username", "repo": "my-project", "url": "https://ci.example.com/github-webhook", "events": ["push", "pull_request", "release"], "content_type": "json", "secret": "your-webhook-secret", "active": true}github_update_webhook 🟡 MEDIUM
Section titled “github_update_webhook 🟡 MEDIUM”Modify existing webhook settings.
Parameters:
owner(required): Repository ownerrepo(required): Repository namehook_id(required): Webhook ID (fromgithub_list_webhooks)url(optional): New URLevents(optional): New event listactive(optional): Enable/disable
github_delete_webhook 🟠 HIGH
Section titled “github_delete_webhook 🟠 HIGH”Remove webhook.
Parameters:
owner(required): Repository ownerrepo(required): Repository namehook_id(required): Webhook ID
Confirmation required: YES (HIGH-risk in moderate mode)
github_test_webhook 🟢 LOW
Section titled “github_test_webhook 🟢 LOW”Send test delivery to webhook endpoint.
Parameters:
owner(required): Repository ownerrepo(required): Repository namehook_id(required): Webhook ID
Output:
{ "delivery_id": "abc-123-def", "status_code": 200, "response": "OK"}Collaborators (8 tools)
Section titled “Collaborators (8 tools)”github_list_collaborators 🟢 LOW
Section titled “github_list_collaborators 🟢 LOW”View all repository collaborators.
Output includes: username, permission level (pull/triage/push/maintain/admin), profile URL.
github_check_collaborator 🟢 LOW
Section titled “github_check_collaborator 🟢 LOW”Verify specific user’s access level.
Parameters:
owner,repo,username
github_add_collaborator 🟡 MEDIUM
Section titled “github_add_collaborator 🟡 MEDIUM”Invite user with specified permission.
Parameters:
owner(required): Repository ownerrepo(required): Repository nameusername(required): GitHub username to invitepermission(required):pull,triage,push,maintain, oradmin
Example:
{ "owner": "username", "repo": "my-project", "username": "new-contributor", "permission": "push"}| Permission | Can Do |
|---|---|
pull | Read, clone |
triage | Manage issues/PRs without writing code |
push | Read, clone, push |
maintain | Push + manage settings (not delete) |
admin | Full access including deletion |
github_update_collaborator_permission 🟡 MEDIUM
Section titled “github_update_collaborator_permission 🟡 MEDIUM”Change collaborator’s permission level.
github_remove_collaborator 🟠 HIGH
Section titled “github_remove_collaborator 🟠 HIGH”Revoke user access to repository.
Confirmation required: YES (HIGH-risk, impacts collaboration)
github_list_invitations 🟢 LOW
Section titled “github_list_invitations 🟢 LOW”View pending invitations.
github_accept_invitation 🟡 MEDIUM
Section titled “github_accept_invitation 🟡 MEDIUM”Accept repository invitation (for your account).
github_cancel_invitation 🟡 MEDIUM
Section titled “github_cancel_invitation 🟡 MEDIUM”Cancel pending invitation.
Teams (2 tools) — Organization Repos Only
Section titled “Teams (2 tools) — Organization Repos Only”github_list_repo_teams 🟢 LOW
Section titled “github_list_repo_teams 🟢 LOW”List teams with repository access.
Parameters:
owner(required): Organization namerepo(required): Repository name
github_add_repo_team 🟡 MEDIUM
Section titled “github_add_repo_team 🟡 MEDIUM”Grant team access with permission level.
Parameters:
owner(required): Organization namerepo(required): Repository nameteam_slug(required): Team slug (from organization)permission(required):pull,push,maintain, oradmin
Example:
{ "owner": "my-org", "repo": "backend-api", "team_slug": "backend-team", "permission": "push"}Responsible use
Section titled “Responsible use”Administrative tools can affect collaborators, automation, and security. Validate parameters, branches, and permissions before executing. We are not responsible for misuse or resulting damage.
Safety Confirmations
Section titled “Safety Confirmations”When an operation requires confirmation, you’ll receive a confirmation token:
{ "status": "confirmation_required", "token": "abc123def456", "operation": "github_delete_webhook", "risk_level": "HIGH", "expires_in": "5 minutes", "warning": "This will permanently remove the webhook..."}To proceed, include the token in your next request:
{ "owner": "username", "repo": "my-project", "hook_id": 123, "confirmation_token": "abc123def456"}See Safety System → for full details on risk classification and confirmation workflows.