[claude] Break up _build_gitea_tools() into per-operation helpers (#1134) #1147
Reference in New Issue
Block a user
Delete Branch "claude/issue-1134"
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?
Fixes #1134
Extracted each Gitea tool builder into its own top-level function:
_build_list_issues_tool(base_url, token, owner, repo)_build_create_issue_tool(base_url, token, owner, repo)_build_read_issue_tool(base_url, token, owner, repo)_build_gitea_tools()is now 12 lines (was 137) — just assembles the three helpers with shared connection params. Each helper is fully self-contained with its handler closure andMCPToolDefdefinition.All unit tests pass.