fix: scope allowed-tools in skills

Đang mở
#215 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
68/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter, shell
Lĩnh vực
devtools, tooling

Hướng nghiên cứu

Start by reading the allowed-tools declarations in the green-gate, dart-flutter-sdk-upgrade, very-good-analysis-upgrade, and ui-package skills, along with the flutter-reviewer agent's tools list. Check the commands each skill runs and the plugin-scoped MCP names used by marketplace installs. Update the grants and run the three skills' eval cases; done when all requirements pass and Validate no longer reports broad shell access.

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

Mô tả

bug p1

Description

Validate refuses the version with "Pre-approves broad shell access in allowed-tools" (3 findings). Three skills grant bare Bash:

  • green-gate
  • dart-flutter-sdk-upgrade
  • very-good-analysis-upgrade

It also reports, without blocking:

  • "Allowed tools unscoped write" (3): bare Edit and Write in green-gate, dart-flutter-sdk-upgrade and ui-package.
  • "Mcp tool name missing plugin scope" (13): allowed-tools name mcp__very-good-cli__* and mcp__dart__*. A marketplace install names them mcp__plugin_vgv-ai-flutter-plugin_<server>__<tool>, so today's grants match nothing there.

The proposal is to replace bare Bash with the commands each skill runs, for example Bash(dart pub get:*), and to use the plugin-scoped MCP names.

Requirements

  • No skill grants bare Bash
  • Edit and Write are scoped or removed
  • MCP tool names in allowed-tools use the plugin-scoped form
  • Eval cases for the three skills still pass
  • Validate no longer reports "Pre-approves broad shell access in allowed-tools"
  • All CI/CD checks are passing

Additional Context

  • Check the flutter-reviewer agent tools list too. It names mcp__dart__analyze_files.
Ngôn ngữ chính
Shell
Star
180
Fork
25
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
17

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 VeryGoodOpenSource/vgv-ai-flutter-plugin

Tất cả issue của VeryGoodOpenSource/vgv-ai-flutter-plugin

Issue tương tự

Thêm issue về Shell/Bash

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.