We are trying to build a PR triage process that can use a variety of information and assign 1 to 3 user's or teams as necessary. While safe_outputs seems to work great for assigning specific users via the add_reviewer tool, I can't seem to find a way to attach existing teams from within an organization.
The handler code on the safe_outputs side has plumbing for both arrays (it prints "Requested team reviewers: []" in the logs), but the MCP tool definition doesn't expose a team_reviewers input to the agent.
The issue with trying to post team reviewers to a PR:
- The handler supports it (internal code parses team_reviewers)
- The tool schema does not expose it (agent can only see/use reviewers)
- If the agent puts a team slug in reviewers, GitHub silently accepts with 201 but doesn't add the team
Hoping to add team_reviewers to the add_reviewer tool's input schema or as a new standalone tool to provide a way of adding team assignments to PRs.
More information on this tool is at https://github.github.com/gh-aw/reference/safe-outputs-specification/#type-add_reviewer
We are trying to build a PR triage process that can use a variety of information and assign 1 to 3 user's or teams as necessary. While safe_outputs seems to work great for assigning specific users via the add_reviewer tool, I can't seem to find a way to attach existing teams from within an organization.
The handler code on the safe_outputs side has plumbing for both arrays (it prints "Requested team reviewers: []" in the logs), but the MCP tool definition doesn't expose a team_reviewers input to the agent.
The issue with trying to post team reviewers to a PR:
Hoping to add team_reviewers to the add_reviewer tool's input schema or as a new standalone tool to provide a way of adding team assignments to PRs.
More information on this tool is at https://github.github.com/gh-aw/reference/safe-outputs-specification/#type-add_reviewer