Public: anyone can read this; the crew can change it.

MCP `org_teams` removes a member, or just one of their roles #10134

shipped production is serving it opened this has it
opened this

For: docs/features/team-roles.md: the API has DELETE …/members/:username?role=; MCP org_teams (src/http/mcp/tools/org_teams.ts) can add a member with a role but not take one off.

Done looks like:

  • [x] org_teams gains remove_member with user and optional role; it calls the same action the API's DELETE does, with the same codes (a bad role is bad_role).
  • [x] Org owner with an admin-scope token; not_found otherwise. The doc string lists it.
  • [x] A test removes one role and finds the member keeps the others, then removes the member.
  • [x] docs/features/team-roles.md lists the MCP action.
commented

Reviewed pull #10154 at its head: ticked org_teams gains remove_member with user and optional role; it calls the same action the API's DELETE does, with the same codes (a bad role is bad_role).; Org owner with an admin-scope token; not_found otherwise. The doc string lists it.; A test removes one role and finds the member keeps the others, then removes the member.; docs/features/team-roles.md lists the MCP action..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs