feat(git): agregar git_push, git_fetch y git_pull al MCP server#3787
Closed
gedarufi wants to merge 1 commit intomodelcontextprotocol:mainfrom
Closed
feat(git): agregar git_push, git_fetch y git_pull al MCP server#3787gedarufi wants to merge 1 commit intomodelcontextprotocol:mainfrom
gedarufi wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
- Agrega GitPush, GitFetch, GitPull como modelos Pydantic - Implementa git_push() con soporte de remote, branch y force - Implementa git_fetch() con soporte de remote y prune - Implementa git_pull() con soporte de remote, branch y rebase - Registra las tres herramientas en list_tools() con annotations correctas - Agrega los tres casos en call_tool() siguiendo el patrón existente - Aplica defensa en profundidad: rechaza argumentos que empiezan con '-' - git_push y git_pull usan el branch activo cuando no se especifica uno
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.
Descripción
Extiende el MCP server de Git con tres nuevas herramientas para
operaciones con remotos que faltaban: git_push, git_fetch y git_pull.
Tipo de cambio
feature— nueva funcionalidadCambios
git_push— push a un remote con soporte de branch específico y forcegit_fetch— fetch de un remote con opción de prunegit_pull— pull con opción de rebase en lugar de mergeSeguridad
Los tres métodos rechazan argumentos que empiezan con '-' para prevenir
flag injection, siguiendo el mismo patrón de defensa en profundidad del
código existente.
Notas