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

Add read-only regression coverage for dynamic toolsets and deprecated aliases

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

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
github, go

Rechercherichtung

Beginne mit der dynamischen Tool-Registrierung in pkg/github/dynamic_tools.go, der Zuordnung veralteter Aliase in pkg/github/deprecated_tool_aliases.go und dem Zusammenstellen des Inventars in internal/ghmcp/server.go. Verwende die Tests zur Filterung auf Anfrageebene in pkg/http/handler_test.go als Einstiegspunkt. Die Aufgabe ist erfüllt, wenn gezielte Tests zeigen, dass dynamisch aktivierte mutierende Tools und veraltete mutierende Aliase im schreibgeschützten Modus weiterhin nicht verfügbar sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Read-only guarantees currently depend on implicit inventory behavior that is not regression-tested across dynamic toolset enablement and deprecated alias resolution.

Current behavior is insufficient because the server's read-only contract spans multiple capability surfaces (DynamicTools, inventory filtering, and deprecated alias lookup), but there is no focused test that proves mutating canonical tools and deprecated aliases stay unavailable when read-only mode is active.

Why now: --read-only is a core governance boundary for this server, so the contract should be locked in with explicit regression coverage before toolset and alias work drifts further.

Claim-to-codepath map:

  • Dynamic toolset registration in pkg/github/dynamic_tools.go
  • Deprecated alias mapping in pkg/github/deprecated_tool_aliases.go
  • Server inventory assembly in internal/ghmcp/server.go
  • Request-level filtering tests in pkg/http/handler_test.go

Requested behavior:

  • Read-only mode should continue to exclude mutating tools when a toolset is enabled dynamically.
  • Deprecated aliases for mutating tools should not re-expose write capability under read-only filtering.
  • The invariant should be covered by targeted tests.

Evidence Packet

  • Commit under test: 1da41fa6947f
  • Runtime environment:
    • OS: Darwin 25.3.0 arm64
    • Go: go1.25.7
    • golangci-lint: 2.8.0
  • Minimal repro:
    1. Build inventory/server state with read-only mode enabled.
    2. Exercise dynamic toolset enablement and deprecated alias lookup.
    3. Verify whether any mutating capability becomes available.
  • Expected behavior: no mutating canonical tool or deprecated alias becomes callable in read-only mode.
  • Actual behavior: the code path is not covered by a focused regression test today.

Acceptance Criteria

  • Add targeted tests proving read-only behavior holds for dynamic toolsets and deprecated aliases.
  • Keep the change scoped to regression coverage unless a concrete behavior bug is found.
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.