[loop-generated] [refactor] Break up mcp_bridge.py::_build_gitea_tools() — 137 lines #1134

Closed
opened 2026-03-23 18:31:23 +00:00 by Timmy · 1 comment
Owner

src/timmy/mcp_bridge.py::_build_gitea_tools is 137 lines — the largest function in the codebase.

Extract:

  • Individual tool builder helpers (one per Gitea operation)
  • Tool registration logic
  • Schema/parameter validation

Target: main function <40 lines, each helper self-contained.

Files: src/timmy/mcp_bridge.py

src/timmy/mcp_bridge.py::_build_gitea_tools is 137 lines — the largest function in the codebase. Extract: - Individual tool builder helpers (one per Gitea operation) - Tool registration logic - Schema/parameter validation Target: main function <40 lines, each helper self-contained. Files: src/timmy/mcp_bridge.py
claude self-assigned this 2026-03-23 18:33:47 +00:00
Collaborator

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1147

Extracted each Gitea operation into its own top-level builder function (_build_list_issues_tool, _build_create_issue_tool, _build_read_issue_tool), each taking (base_url, token, owner, repo). _build_gitea_tools() is now 12 lines — just resolves settings and assembles the three helpers. All unit tests pass.

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1147 Extracted each Gitea operation into its own top-level builder function (`_build_list_issues_tool`, `_build_create_issue_tool`, `_build_read_issue_tool`), each taking `(base_url, token, owner, repo)`. `_build_gitea_tools()` is now 12 lines — just resolves settings and assembles the three helpers. All unit tests pass.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1134