Movatterモバイル変換


[0]ホーム

URL:


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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
tonytrg wants to merge1 commit intomainfromtonytrg/add-repos-consolidation

Conversation

@tonytrg
Copy link
Contributor

@tonytrgtonytrg commentedOct 20, 2025
edited
Loading

Summary

This PR consolidates multiple repository tools in the repos toolset into unified tools with amethod 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 withmethod: "create" ormethod: "update"
  • push_filesfile_write withmethod: "push_files"
  • delete_filefile_write withmethod: "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 withmethod: "list_tags"
  • get_tagrelease_read withmethod: "get_tag"
  • list_releasesrelease_read withmethod: "list_releases"
  • get_latest_releaserelease_read withmethod: "get_latest_release"
  • get_release_by_tagrelease_read withmethod: "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 withmethod: "get"
  • list_commitscommit_read withmethod: "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)

@tonytrgtonytrgforce-pushed thetonytrg/add-repos-consolidation branch from9c2d08f toac89626CompareOctober 22, 2025 18:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotAwaiting requested review from CopilotCopilot 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

@tonytrg

[8]ページ先頭

©2009-2025 Movatter.jp