fix(mcp): implement documented issue title/body editing capability #781
Closed
opened 2026-07-21 14:10:54 -05:00 by jcwalker3
·
1 comment
No Branch/Tag Specified
Labels
Clear labels
allocator
anti-stomp
architecture
bug
chore
codex
concurrency
contamination
control-plane
dashboard
database
design
documentation
enhancement
gitea
glitchtip
important
incident
incident-bridge
integration
jenkins
labels
leases
mcp
mcp-health
mcp-menu
multi-project
mutating
nice-to-have
observability
portability
preflight
protected-branch
queue
read-only
reconnect
recovery
refactor
release
reliability
resumable-review
reviewer
roadmap
safety
security
self-hosted
sentry
stale-runtime
status:blocked
status:in-progress
status:pr-open
status:ready
terminal-lock
testing
tracker
type:bug
type:feature
type:feature
type:guardrail
visibility
workflow
workflow-hardening
workflow-hardening
Controller-owned work allocator
Prevent concurrent LLM session stomping
Architecture / structural design
OpenAI Codex client / workflow session surface
Concurrent session safety
Workflow or session contamination incident
MCP control-plane coordination and allocation authority
MCP operational dashboard/queue view
Internal coordination storage (SQLite/Postgres)
Design / investigation, no implementation
Docs / runbooks
New feature or improvement
Gitea MCP workflow
GlitchTip integration
Operational or process incident requiring durable audit trail
Sentry-to-Gitea incident bridging
Integration testing
Jenkins integration
Label taxonomy management
Lease adopt/release/expire lifecycle
MCP server / tooling
MCP namespace and runtime health
MCP menu surface
Work spanning multiple monitoring projects or Gitea repos
Mutating action; requires gating
Observability, metrics, traces, error reporting
Cross-platform / portability
Shared preflight gates before mutation
Protected branch / stable-branch policy concern
Work queue visibility and allocation
Read-only, no mutation
MCP client reconnect/reload recovery path
Recovery paths for stale/foreign leases
Code refactor / restructure
Release / versioning
Reliability / failure handling
Persist and resume prepared review verdicts across sessions
Reviewer workflow tooling
Roadmap / umbrella issue
Safety rails and fail-closed mutation guards
Security / trust boundary
Self-hosted infrastructure integration
Sentry error monitoring integration
Stale backend daemon / runtime-vs-master parity failures
Issue is blocked
Issue is being worked on
Issue has an open pull request
Issue is ready for work
Terminal review lock (#332) path
Tests / test coverage
Issue tracker hygiene / meta
Bug or defect
Feature or enhancement
Feature or enhancement
Safety gate or guardrail
Workflow state visibility for LLMs/operators
Cross-tool workflow
LLM workflow coordination hardening
LLM workflow coordination hardening
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Scaled-Tech-Consulting/Gitea-Tools#781
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The
gitea-workflowskill documents agitea_edit_issuetool for editing issues, but no such tool is registered on the MCP server. There is currently no sanctioned MCP path to change an issue's title or body.Evidence at master
df3167488c5451f802549b40463ad59cbaad6109:gitea_edit_issueis absent from every namespace (gitea-tools,gitea-reviewer,gitea-merger,gitea-reconciler).gitea_mcp_server.pyaregitea_create_issue,gitea_lock_issue,gitea_close_issue,gitea_create_issue_comment,gitea_mark_issue,gitea_reconcile_issue_claims, andgitea_set_issue_labels. None edits a title or body.gitea_edit_pr, which PATCHes the pull-request endpoint and cannot target an issue.PATCHrequest to the issues endpoint anywhere in the codebase.Consequence: a required body correction on Issue #780 could not be performed through the sanctioned workflow. The relationship had to be recorded as a discussion comment instead, and any real body edit would require the web UI or a forbidden CLI/direct-API substitute.
Documentation and the registered tool inventory have drifted, so an actor can plan a mutation against a tool that does not exist and only discover it at execution time.
Expected behavior
Provide a sanctioned author-role
gitea_edit_issuetool that:PATCH /issues/{number}through the MCP server.branches/worktree validation, capability-stamp consumption, and audit logging.Scope
gitea_edit_prto accept issue numbers; issue and pull-request edit paths must stay separate.gitea-workflowdocumentation so the documented tool inventory matches the registered inventory, and add a check that prevents the two from drifting again.Acceptance criteria
gitea_edit_issuetool exists and is reachable from thegitea-toolsnamespace.gitea_edit_prremains pull-request-only.Evidence
Discovered while attempting an authorized body update on Issue #780. The tool lookup returned no match in any namespace, and a source inventory confirmed no issue title/body edit path exists. The relationship was recorded as a comment on #780 as the sanctioned fallback; no CLI, curl, direct API, raw Git, or database access was used.
Issue claim heartbeat