npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@andrebuzeli/git-mcp

v15.8.1

Published

MCP server para Git com operações locais e sincronização paralela GitHub/Gitea

Readme

@andrebuzeli/git-mcp

Servidor MCP (Model Context Protocol) para operações Git locais sem git instalado, com sincronização paralela para GitHub e Gitea.

Melhorias Implementadas (v15.3.0)

🔴 Correções Críticas

  • Métodos Faltantes: getMergeStatus, abortMerge, resetHardClean implementados
  • Paralelização runBoth: GitHub e Gitea executados em paralelo (2x mais rápido)
  • withRetry Integrado: Operações remotas com retry automático

🔒 Segurança

  • Validação de Path: Prevenção de path traversal e validação rigorosa
  • Logging Configurável: Debug logging controlado por DEBUG_AGENT_LOG
  • Limite de Comprimento: Paths limitados a 260 caracteres (MAX_PATH)

⚡ Performance

  • Timeout Configurável: GIT_TIMEOUT_MS (default: 60s) para operações Git
  • Cache de URLs: URLs de remotes cacheadas por 10 minutos
  • Paginação listAllRepos: Suporta contas com milhares de repositórios
  • Rate Limit Handling: Backoff automático com Retry-After header

🧪 Testabilidade & Desenvolvimento

  • Dry Run Mode: Todas as operações suportam simulação
  • Testes Unitários: Suite Jest com 13 testes passando
  • Suporte .env File: Carrega variáveis de .env automaticamente
  • Métricas/Telemetria: Opt-in via ENABLE_METRICS=true

🔧 Novas Funcionalidades

  • Git LFS: Suporte completo (track, pull, push, status)
  • Sistema de Hooks: Pre/post hooks customizáveis
  • Consistência Naming: camelCase em todas as respostas

📊 Variáveis de Ambiente

| Variável | Descrição | Default | |----------|-----------|---------| | GITHUB_TOKEN | Token de autenticação GitHub | - | | GITEA_URL | URL do servidor Gitea | - | | GITEA_TOKEN | Token de autenticação Gitea | - | | GIT_TIMEOUT_MS | Timeout para operações Git | 60000 | | DEBUG_AGENT_LOG | Habilita logging de debug | false | | ENABLE_METRICS | Habilita métricas | false |

Status dos Testes

Test Suites: 2 passed, 2 total
Tests:       13 passed, 13 total
{
  "mcpServers": {
    "git-mcp": {
      "command": "npx",
      "args": ["@andrebuzeli/git-mcp@latest"],
      "env": {
        "GITEA_URL": "https://seu-gitea",
        "GITEA_TOKEN": "...",
        "GITHUB_TOKEN": "..."
      }
    }
  }
}

Tools

  • git-workflow: init, status, add, remove, commit, ensure-remotes, push
  • git-remote: list, ensure
  • git-branches: list, create, delete, rename, checkout
  • git-tags: list, create, delete, push
  • git-stash: list, save, apply, pop, drop, clear
  • git-reset: soft, mixed, hard
  • git-config: get, set, unset, list
  • git-ignore: list, create, add, remove
  • git-files: list, read
  • git-history: log
  • git-sync: fetch, pull
  • git-issues: create, list, comment
  • git-pulls: create, list, files

Todas as tools exigem projectPath e operam com derivação automática do nome do repositório a partir do caminho.