feat: implement team management #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Teams are the access-control mechanism inside organizations. Currently the MCP server
can only list teams. Full team management means creating teams, adding/removing members
and repositories, enabling fine-grained permissions across an organization.
Endpoints to implement
/teams/{id}get_team/teams/{id}update_team/teams/{id}delete_team/teams/{id}/memberslist_team_members/teams/{id}/members/{username}add_team_member/teams/{id}/members/{username}remove_team_member/teams/{id}/reposlist_team_repos/teams/{id}/repos/{org}/{repo}add_team_repo/teams/{id}/repos/{org}/{repo}remove_team_repo/orgs/{org}/teams/searchsearch_org_teamsAcceptance Criteria
get_team(id)returns team object withname,permission,units,members_count,repos_countupdate_team(id, name, permission, description, units)via PATCHdelete_team(id)returns{"success": true}on 204add_team_member/remove_team_memberreturn{"success": true}on 204add_team_repo/remove_team_reporeturn{"success": true}on 204search_org_teams(org, query, limit)returns matching teamsTechnical Notes
PATCH /teams/{id}body:{"name": "...", "description": "...", "permission": "write", "units": ["repo.code", "repo.issues"]}PUT /teams/{id}/members/{username}andPUT /teams/{id}/repos/{org}/{repo}have no request bodyunitscontrols which repo sections the team can access:repo.code,repo.issues,repo.pulls,repo.releases,repo.wiki,repo.projects,repo.packagesidis an integer (team ID), not a name