git: README should state plainly that without --repository every reachable repository is in scope
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 84/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- documentation
Direção de pesquisa
Leia src/git/README.md, especialmente a seção Configuration e a nota existente na linha 137 sobre repositórios que contêm outros repositórios. Adicione uma declaração curta e em destaque que aborde o acesso sem --repository, seu papel como única restrição, Client Roots e quando defini-lo, com um link para a nota existente. O trabalho estará concluído quando esses pontos estiverem claros no README e não houver mudança de comportamento.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The git server's README does not say plainly what running without --repository means for access.
Problem
Without --repository, mcp-server-git acts on whatever repo_path each tool call names, so every Git repository the server process can reach is open to every tool, including the writing ones (git_add, git_commit, git_reset, git_checkout, git_create_branch). That is the intended behavior, and --repository is the confinement the server offers and enforces.
The README only says this in passing, in the protocol-eras paragraph (src/git/README.md:107: "repository access comes from --repository alone, or, with no --repository, from each tool call's repo_path"). The configuration examples all pass --repository without saying why, and the Configuration section does not mention what leaving it out does. A reader setting the server up has no clear statement that the flag is the only boundary, and that the server never consults the client's Roots.
Related public discussion: #4550.
Expected
A short, prominent statement in the README, near the Configuration section, that:
- without
--repository, the server reads and writes any Git repository the process can reach, per call; --repositoryis the only confinement, and the server never asks the client for Roots;--repositoryshould be set whenever the server is used with prompts or content that are not fully trusted;--repositoryadmits the whole enclosing repository, not only the subdirectory given (already described at line 137; link to it).
Documentation only; no behavior change.
- Linguagem predominante
- TypeScript
- Estrelas
- 91.6k
- Forks
- 11.9k
- Merge médio
- 4h 14min
- PRs com merge (30d)
- 228
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de modelcontextprotocol/servers
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 82/100
modelcontextprotocol/servers#5420 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
modelcontextprotocol/servers#5419 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
modelcontextprotocol/servers#5418 ·
Mantenedores costumam responder em até 1 dia
-
enhancement v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
modelcontextprotocol/servers#5416 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement v2
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
modelcontextprotocol/servers#5415 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de modelcontextprotocol/servers
Issues semelhantes
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster maturity:stable no-stale P1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
openclaw/openclaw#190772 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
flisk-sh/run-my-agents#61 ·
-
Dificuldade 2/5 3-5 dias Facilidade para iniciantes 62/100
career-ops-hq/career-ops#6399 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
BoardGamesEmpire/board-games-empire-backend#1027 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
johnfrog76/connected-deck#21 ·