Skip to content

Conversation

@tonytrg
Copy link
Contributor

@tonytrg tonytrg commented Oct 20, 2025

Summary

This PR consolidates multiple repository tools in the repos toolset into unified tools with a method parameter. This aims to reduce tool count/context size bloat by using the github mcp server.

Consolidations

1. file_write (3 → 1 tool)

Consolidates file write operations:

  • create_or_update_filefile_write with method: "create" or method: "update"
  • push_filesfile_write with method: "push_files"
  • delete_filefile_write with method: "delete"

Logic: All three tools perform file modifications in a repository and share the same required parameters (owner, repo, branch, message).

2. release_read (5 → 1 tool)

Consolidates release and tag read operations:

  • list_tagsrelease_read with method: "list_tags"
  • get_tagrelease_read with method: "get_tag"
  • list_releasesrelease_read with method: "list_releases"
  • get_latest_releaserelease_read with method: "get_latest_release"
  • get_release_by_tagrelease_read with method: "get_release_by_tag"

Logic: These tools all read release/tag information from a repository and share the same required parameters (owner, repo).

3. commit_read (2 → 1 tool)

Consolidates commit read operations:

  • get_commitcommit_read with method: "get"
  • list_commitscommit_read with method: "list"

Logic: Both tools read commit data from a repository and share the same required parameters (owner, repo).

Not Consolidated

The following tools were kept separate as they operate on different entities or lack shared parameters:

  • search_repositories, search_code - Search tools with distinct use cases
  • get_file_contents - Requires special raw client handling
  • list_branches - No natural pairing with other tools
  • create_repository, fork_repository, create_branch - Different entities (repos vs branches), minimal parameter overlap

Results

  • Tool count reduction: 17 tools → 10 tools (41% reduction in repos read/write tools)

@tonytrg tonytrg force-pushed the tonytrg/add-repos-consolidation branch from 9c2d08f to ac89626 Compare October 22, 2025 18:26
@tonytrg tonytrg closed this Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants