Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Hide write-oriented prompts and instructions when write tools are filtered

Aperta
#2,228 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github, go
Ambito
api, backend, tooling

Direzione di ricerca

Inizia leggendo pkg/inventory/instructions.go e pkg/inventory/prompts.go, quindi segui il filtraggio fino a pkg/github/toolset_instructions.go. Riproduci un inventario in sola lettura o exclude-tool e confronta AvailableTools, AvailablePrompts e le istruzioni generate. Il lavoro è completato quando gli inventari filtrati non espongono più prompt né testo delle istruzioni che implichi azioni di scrittura non disponibili; consulta docs/toolsets-and-icons.md per il comportamento documentato.

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

Descrizione

Problem

Tool filtering can remove write capabilities while prompts and server instructions continue to advertise those same actions. In read-only or explicitly filtered configurations, the server can still expose prompts that instruct the client to create issues, assign Copilot, or open pull requests.

Why now

This server builds instructions and prompts dynamically as part of its safety surface. If filtered capabilities remain documented as available, clients receive contradictory guidance and can plan actions the server has already hidden.

Version under test

  • Commit: b1575edfefde09e3cf7c805aea79a92131271659 (origin/main on 2026-03-17)
  • Runtime: Go 1.25.7, macOS darwin/arm64

Minimal repro

  1. Build an inventory in read-only mode or with write tools excluded.
  2. Inspect AvailableTools, AvailablePrompts, and generated server instructions.
  3. Compare the filtered tool set with the exposed prompts/instruction text.

Expected behavior

If a write tool is hidden by policy, related prompts and write-oriented instructions should disappear or clearly mark the capability as unavailable.

Actual behavior

Prompt availability is filtered only by toolset/feature flags, and instruction generation does not verify that the referenced write tools survived read-only or exclude-tool filtering.

Code paths

  • pkg/inventory/instructions.go
  • pkg/inventory/prompts.go
  • pkg/github/toolset_instructions.go
  • docs/toolsets-and-icons.md

Validation target

Read-only and explicitly filtered inventories should not expose prompts or instruction text that imply unavailable write actions.

Lingua principale
Go
Stelle
33.1k
Fork
5k
Merge medio
2g 1h
PR unite (30g)
25

Guida per i contributori

Apri la guida per i contributori

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 github/github-mcp-server

Tutte le issue di github/github-mcp-server

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.