delete_group_permission
Remove a group's explicit access permission from a Bitbucket repository to control repository security and access management.
Instructions
Remove a group's explicit permission from a repository.
Args:
repo_slug: Repository slug
group_slug: Group slug
Returns:
Confirmation of removal
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| group_slug | Yes |
Implementation Reference
- src/server.py:1663-1679 (handler)MCP tool handler for 'delete_group_permission'. Registers the tool with FastMCP and delegates to BitbucketClient.delete_group_permission.@mcp.tool() @handle_bitbucket_error @formatted def delete_group_permission(repo_slug: str, group_slug: str) -> dict: """Remove a group's explicit permission from a repository. Args: repo_slug: Repository slug group_slug: Group slug Returns: Confirmation of removal """ client = get_client() client.delete_group_permission(repo_slug, group_slug) return {}
- src/bitbucket_client.py:1634-1650 (helper)Core implementation in BitbucketClient that performs the DELETE API request to remove group permissions from a repository.def delete_group_permission( self, repo_slug: str, group_slug: str ) -> bool: """Remove group permission from repository. Args: repo_slug: Repository slug group_slug: Group slug Returns: True if deleted successfully """ self._request( "DELETE", self._repo_path(repo_slug, "permissions-config", "groups", group_slug), ) return True
- src/server.py:1663-1663 (registration)FastMCP @mcp.tool() decorator registers the delete_group_permission function as an MCP tool.@mcp.tool()
- src/server.py:1676-1677 (helper)Invocation of the Bitbucket client helper within the MCP tool handler.client = get_client() client.delete_group_permission(repo_slug, group_slug)