Repository navigation
api | web | docs: list github installations and repositories over mcp - #26
Merged
Merged
Conversation
- list-github-installations, list-github-repositories and get-github-repository now accept API keys and are exposed as MCP tools. Agents can find the github_installation_id that create-service needs without reading the database. Connecting, sharing and removing GitHub apps still requires a browser session. - GitHub reads and service creation are now scoped to a team_id. A connection is usable in a team only when it belongs to the caller, is shared with that team or is shared with all teams. Before this, a connection shared with one of the caller's teams could build services in any of their other teams. - Installation service counts are now limited to the requested team. - The web client passes the team to these queries. - The docs and the MCP instructions explain how to pick an installation and repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves UNB-414.
create-serviceneeds agithub_installation_id, but installations couldn't be listed over the API or MCP. Until now, agents had to read the id straight from the database.What changes
list-github-installations,list-github-repositoriesandget-github-repositorynow accept API keys and are MCP tools. Agents can find the installation and repository to pass tocreate-service. Connecting, sharing and removing GitHub apps still requires a browser session.team_id. A connection can be used in a team only when it belongs to the caller, is shared with that team or is shared with all teams. Before this, a connection shared with one of the caller's teams could build services in any of their other teams.github_installation_idfield description explain how to choose an installation and repository.Breaking for API clients
list-app-installations→list-github-installations,list-repositories→list-github-repositories,repo-detail→get-github-repository.team_idis now a required query parameter on these endpoints and onrepo-watch-path-suggestions.Tests
New handler tests cover:
A new repository test covers
TeamAppVisibility. Existing GitHub handler tests now pass ateam_id.