git: README should state plainly that without --repository every reachable repository is in scope
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 84/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc src/git/README.md, đặc biệt là phần Configuration và ghi chú hiện có ở dòng 137 về các repository bao chứa. Thêm một phát biểu ngắn, nổi bật, đề cập đến quyền truy cập khi không có --repository, vai trò là giới hạn duy nhất, Client Roots và thời điểm cần đặt giá trị này, đồng thời liên kết đến ghi chú hiện có. Hoàn tất khi các điểm đó được nêu rõ trong README và không có thay đổi hành vi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 91.4k
- Fork
- 11.8k
- Merge trung bình
- 7 giờ 26 phút
- Pull request đã merge (30 ngày)
- 130
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/servers
-
chore v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
modelcontextprotocol/servers#5223 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
modelcontextprotocol/servers#5217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
filesystem: search_files does not expand non-wildcard excludePatterns like directory_tree doesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
modelcontextprotocol/servers#5216 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
modelcontextprotocol/servers#5215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation server-git server-time v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
modelcontextprotocol/servers#5213 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/servers
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
db-ux-design-system/core-web#8613 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
foxglove/mcap#1907 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug internal-plugin pr-welcome upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dsh-tauri-desk/deepseek-harness-desktop#1225 · 1 bình luận ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
unjs/unhead#1027 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày