Refactor mcp_server.py into a modular gitea_tools package #65
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?
mcp_server.pyis approaching 1700 lines and currently contains MCP tool registration, config parsing, auth/profile handling, API request logic, audit helpers, issue/PR business logic, tracker hygiene, and return-payload construction.This makes the code harder to maintain, harder to test, and risky to extend as Jenkins/GlitchTip/MCP Control Plane work is considered.
Recommended target structure:
mcp_server.pyshould become a thin MCP registration layer.Acceptance criteria
mcp_server.pyno longer owns all business logic.