Add MCP operator guide tool for Gitea workflow/profile instructions #128
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?
Problem
New LLM sessions are being brought into the MCP Control Plane / Gitea-Tools project without enough built-in context. This forces long prompts that repeat the same operational rules: identity verification, profile switching, author/reviewer separation, fail-closed behavior, merge gates, redaction rules, and exact review/merge flow.
This should be exposed directly by the MCP server so an LLM can call one read-only tool and receive the current workflow instructions instead of guessing or relying on verbose handoff prompts.
Proposed Tool
Expose a new read-only MCP tool:
gitea_get_operator_guide(or alternativemcp_get_control_plane_guide).Requirements
prgs-author, it must clearly say authoring is allowed but review/approve/merge is forbidden.prgs-reviewer, it must clearly say review/merge may proceed only after eligibility and pinned-head checks pass.GITEA_MCP_REVEAL_ENDPOINTS=1is enabledAcceptance Criteria
Scope update (2026-07-03): project skills / capability discovery
New LLM sessions need more than basic workflow instructions — they also need to discover what project workflows ("skills") exist and when to use them. This issue's scope now covers three read-only tools:
Required tools
mcp_get_control_plane_guide— the structured operator guide described above (supersedes thegitea_get_operator_guidename; keep naming consistent with the project convention).mcp_list_project_skills— read-only registry of available project skills/workflows, each with a name, one-line description, when-to-use guidance, required profile/operations, and gating notes.mcp_get_skill_guide(skill_name)(optional) — returns the detailed step-by-step guide for one named skill from the registry; unknown skill names fail closed with the list of valid names.Guide/skill tool content requirements
The guide and skill tools must explain:
Skill registry contents
The registry must include workflows such as:
Jenkins/GlitchTip/release entries may be marked as designed-but-not-implemented where the corresponding MCP servers/tools do not exist yet; the registry should say so rather than omit them.
Additional testing coverage
In addition to the tests above:
mcp_get_skill_guidefails closed on unknown skill names