Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

adding repos consolidation #1261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tonytrg wants to merge 1 commit into main from tonytrg/add-repos-consolidation
Closed

Conversation

@tonytrg
Copy link
Contributor

@tonytrg tonytrg commented Oct 20, 2025
edited
Loading

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Awaiting requested review from Copilot Copilot will automatically review once the pull request is marked ready for review

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /