Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#2,228 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github, go
領域
api, backend, tooling

調査の方向性

まず pkg/inventory/instructions.go と pkg/inventory/prompts.go を読み、次に pkg/github/toolset_instructions.go までフィルタリングを追跡します。read-only または exclude-tool のインベントリを再現し、AvailableTools、AvailablePrompts、生成された指示を比較します。フィルタリングされたインベントリが、利用できない書き込みアクションを暗示するプロンプトや指示テキストを公開しなくなれば完了です。文書化された動作については docs/toolsets-and-icons.md を参照してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
33.1k
フォーク
5k
平均マージ
2日 1時間
マージ済み PR(30日)
25

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/github-mcp-server のほかの issue

github/github-mcp-server の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。