[Bug] Gitea MCP branch detection uses wrong directory #231

Closed
opened 2026-01-27 22:01:35 +00:00 by lmiranda · 0 comments
Owner

Summary

The Gitea MCP server _check_branch_permissions() method runs git commands from the installed plugin directory instead of the user project directory.

Impact

  • False permission denials when user is on development but installed plugin is on main
  • Workaround required: direct API calls

Discovered

Sprint 3 planning (2026-01-27)

Remove branch restrictions for issue/wiki operations - they are repository-level, not branch-level.

Files

  • mcp-servers/gitea/src/gitea_mcp/server.py

Acceptance Criteria

  • MCP tools work regardless of installed plugin branch
  • Branch protection still applies for PR operations
  • Add test case
## Summary The Gitea MCP server _check_branch_permissions() method runs git commands from the installed plugin directory instead of the user project directory. ## Impact - False permission denials when user is on development but installed plugin is on main - Workaround required: direct API calls ## Discovered Sprint 3 planning (2026-01-27) ## Recommended Fix Remove branch restrictions for issue/wiki operations - they are repository-level, not branch-level. ## Files - mcp-servers/gitea/src/gitea_mcp/server.py ## Acceptance Criteria - [ ] MCP tools work regardless of installed plugin branch - [ ] Branch protection still applies for PR operations - [ ] Add test case
lmiranda added the Component/BackendType/BugPriority/Medium labels 2026-01-27 22:02:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#231