Add authenticated-user identity lookup to Gitea MCP #9
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
While using the existing Gitea MCP tool to review/merge PR #8 for issue #52, the LLM could inspect repository/PR state but could not verify the authenticated Gitea account through the MCP tool. This blocked safe approve/merge behavior because Gitea rejects self-review/self-merge when the authenticated user is also the PR author.
Problem
Review and merge workflows require the MCP server to expose the authenticated Gitea identity so the caller can verify reviewer eligibility before approving or merging a PR.
Required capability
Add a read-only Gitea MCP tool such as:
getAuthenticatedUserwhoamigetCurrentUserThe tool should return safe identity metadata only, such as:
Acceptance criteria
Security requirements
Suggested labels
mcpgiteasecuritydogfoodingread-onlyDo not implement this unless explicitly approved after the issue is created.