Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#2,228 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
50/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
github, go
Bereich
api, backend, tooling

Rechercherichtung

Beginne mit dem Lesen von pkg/inventory/instructions.go und pkg/inventory/prompts.go und verfolge anschließend die Filterung bis in pkg/github/toolset_instructions.go. Erstelle ein schreibgeschütztes oder exclude-tool-Inventar und vergleiche AvailableTools, AvailablePrompts und die generierten Anweisungen. Als erledigt gilt die Aufgabe, wenn gefilterte Inventare keine Prompts oder keinen Anleitungstext mehr offenlegen, der nicht verfügbare Schreibaktionen impliziert; sieh für das dokumentierte Verhalten in docs/toolsets-and-icons.md nach.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Go
Sterne
33.1k
Forks
5k
Ø Merge
2 T. 1 Std.
Gemergte PRs (30 T.)
25

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/github-mcp-server

Alle Issues in github/github-mcp-server

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.