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

[W9.3] Enforce and expose confirmation requirements for MCP mutations

Đã đóng
#169 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
48/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ệ
ruby
Lĩnh vực
cli, security, testing

Hướng nghiên cứu

Start by reading the MCP tool discovery and execution paths, then trace how the confirmed argument is handled and where filesystem or manifest mutations occur. Classify tools by read behavior, generated file writes, and manifest changes; add confirmation metadata and enforce the gate before side effects. Add temporary-fixture regression tests for refused calls and the exact effects of confirmed calls, and run them through the W9.1 CI infrastructure.

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

Mô tả

area: cli bug

Context

The server accepts a confirmed argument, but tools/list does not declare it in tool schemas or expose the catalog confirmation requirement. Once tools execute operations, clients need an explicit and testable confirmation contract.

Scope

  • Classify the supported tools by read behavior, file writes, and manifest mutations.

  • Declare confirmed as a boolean where required and describe the confirmation requirement in host-visible metadata.

  • Require the host to obtain explicit user confirmation before setting confirmed; do not treat a model-generated value as independent proof of consent.

  • Enforce the gate before any side effects, consistently across execution paths.

  • Document the scope and limitations of confirmation and add regression coverage.

  • Add confirmation tests in the same PR as enforcement: assert filesystem state is unchanged for missing/false/invalid confirmation and that confirmed calls on temporary fixtures perform only the requested mutation. Run the tests through the W9.1 CI infrastructure.

Acceptance criteria

  • Discovery makes confirmation requirements visible to clients.

  • Missing, false, or invalid confirmation values block gated tools before filesystem changes.

  • A confirmed operation on a temporary fixture performs only the requested mutation.

  • Descriptions and tests distinguish reading data, writing generated artifacts, and modifying manifests.

  • The enforcement PR includes passing tests proving refusal before side effects and the exact effects of a confirmed operation; confirmation coverage is not deferred to W9.6.

Related

Parent: #166.

Ngôn ngữ chính
Ruby
Star
0
Fork
0
Merge trung bình
11 giờ 37 phút
Pull request đã merge (30 ngày)
35

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 opsd-io/opsd-cli

Tất cả issue của opsd-io/opsd-cli

Issue tương tự

Thêm issue về Ruby

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.