GitHub · Capability
GitHub Repos API — Restrictions
GitHub Repos API — Restrictions. 11 operations. Lead operation: Get Access Restrictions. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
GET
Getaccessrestrictions
— Get Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions
DELETE
Deleteaccessrestrictions
— Delete Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions
POST
Addappaccessrestrictions
— Add App Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
PUT
Setappaccessrestrictions
— Set App Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
DELETE
Removeappaccessrestrictions
— Remove App Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
POST
Addteamaccessrestrictions
— Add Team Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
PUT
Setteamaccessrestrictions
— Set Team Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
DELETE
Removeteamaccessrestrictions
— Remove Team Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
POST
Adduseraccessrestrictions
— Add User Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
PUT
Setuseraccessrestrictions
— Set User Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
DELETE
Removeuseraccessrestrictions
— Remove User Access Restrictions
/v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
MCP Tools
get-access-restrictions
Get Access Restrictions
read-only
idempotent
delete-access-restrictions
Delete Access Restrictions
idempotent
add-app-access-restrictions
Add App Access Restrictions
set-app-access-restrictions
Set App Access Restrictions
idempotent
remove-app-access-restrictions
Remove App Access Restrictions
idempotent
add-team-access-restrictions
Add Team Access Restrictions
set-team-access-restrictions
Set Team Access Restrictions
idempotent
remove-team-access-restrictions
Remove Team Access Restrictions
idempotent
add-user-access-restrictions
Add User Access Restrictions
set-user-access-restrictions
Set User Access Restrictions
idempotent
remove-user-access-restrictions
Remove User Access Restrictions
idempotent