Add Gitea issue comment list/create MCP tools #126
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?
Summary
Add first-class Gitea MCP tools for listing and creating issue discussion comments.
Current workflows can read Gitea issues and submit PR reviews, but discussion/design workflows need to post normal issue comments. Operators are currently forced to use direct API scripts as a workaround.
Problem
For mcp-control-plane issue #24, external LLM design-review comments needed to be posted to the issue discussion thread.
The active Gitea MCP profiles exposed issue read tools and PR review tools, but not issue-comment tools.
This caused LLMs to correctly block with:
BLOCKED: Gitea issue-comment tool unavailable in the active MCP profile.One comment was eventually posted through a local scratch script and direct Gitea API/auth helper, proving Gitea supports the action but the MCP server does not expose it as a controlled tool.
Required Tools
Add tools equivalent to:
Names may follow the existing project naming convention.
Required Behavior
gitea_list_issue_commentsInputs:
remoteownerrepoissue_numberBehavior:
gitea_create_issue_commentInputs:
remoteownerrepoissue_numberbodyBehavior:
Permissions
The tools should be permission-gated separately from PR review/merge permissions.
Suggested permissions:
or equivalent names consistent with the existing profile permission model.
Safety Requirements
Acceptance Criteria
gitea_list_issue_commentscan list comments for a Gitea issue.gitea_create_issue_commentcan post a markdown comment to a Gitea issue.Non-Goals