fix: scope allowed-tools in skills

Aperta
#215 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter, shell
Ambito
devtools, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Shell
Stelle
180
Fork
25
Merge medio
1g 7h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VeryGoodOpenSource/vgv-ai-flutter-plugin

Tutte le issue di VeryGoodOpenSource/vgv-ai-flutter-plugin

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.