Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

git: add prompts to demonstrate the Prompts feature

Đang mở
#5,195 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with src/git/src/mcp_server_git/server.py and read CONTRIBUTING.md for how reference servers demonstrate protocol features. Inspect the existing helpers and their tests to understand repository confinement and flag-injection guards, then determine how prompts can reuse them for staged diffs or working-tree changes. Done means adding a small number of data-backed prompts that follow those constraints; the specific prompts are a maintainer decision.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement server-git v2
Problem

The git server registers tools only (src/git/src/mcp_server_git/server.py). CONTRIBUTING.md asks the reference servers to demonstrate protocol features beyond Tools, and Prompts are a natural fit here.

Proposal

Add a small number of data-backed prompts, for example one that embeds the staged diff and asks for a commit message, and one that summarizes working-tree changes. They should reuse the existing helpers so the --repository confinement and flag-injection guards apply unchanged. Whether and which prompts to add is a maintainer's call.

Prior work
  • #4297 by @Ewertonslv

The PR(s) above targeted the pre-refactor code and are closed as part of the backlog triage in #4875; this issue is where the work continues, with the PR(s) as a prototype. Thank you to their authors.

Ngôn ngữ chính
TypeScript
Star
91.6k
Fork
11.9k
Merge trung bình
6 giờ 37 phút
Pull request đã merge (30 ngày)
147

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/servers

Tất cả issue của modelcontextprotocol/servers

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.