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

Leave: CancelLeave MCP tool over a shared LeaveCancelService

Đang mở
#96 0 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/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ệ
csharp
Lĩnh vực
api, cli

Hướng nghiên cứu

Start with Features/Leave/CancelCommand.cs and compare its checks with LeaveUpdateService and the UpdateLeave tool. Review LeaveCancelWaiter for the CLI-only wait behavior, then inspect the tool catalog and tools/list goldens. Done means the CLI adapter, CancelLeave MCP tool with dryRun, parity row, and additive goldens all work after confirming the default MCP surface.

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

Mô tả

Priority: P2 Type: Feature

Why

tp leave cancel is CLI-only. Its GUID check, the LeaveStatusRules.IsTerminal gate and the "PendingCancellation is not Cancelled" semantics all live in Features/Leave/CancelCommand.cs, so an agent on MCP can create and update leave but cannot cancel it, and a future tool would have to copy the command. MCP Apps #83 already assumes a cancel tool.

Migrate

  • LeaveCancelService with PrepareAsync (lookup, GUID and terminal-status checks, no writes) and ApplyAsync (the cancel call).
  • leave cancel becomes an adapter over it; --wait stays a CLI concern (LeaveCancelWaiter).
  • CancelLeave MCP tool on the default leave surface, returning PendingCancellation plus the same "completes asynchronously" note the CLI prints; dryRun support.
  • Parity row, goldens (tool catalog + tools/list), CommandCatalog unchanged.

How

Mirror LeaveUpdateService (prepare/apply, terminal gate) and the UpdateLeave tool. Adding a tool changes the tools/list goldens; the change is additive. Confirm the default MCP surface with the maintainer before adding a write tool.

Part of #38.

Ngôn ngữ chính
C#
Star
3
Fork
0
Merge trung bình
28 phút
Pull request đã merge (30 ngày)
31

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 SSWConsulting/TimePro.Tools

Tất cả issue của SSWConsulting/TimePro.Tools

Issue tương tự

Thêm issue về C#

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.