Hide write-oriented prompts and instructions when write tools are filtered
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 50/100
調査の方向性
まず 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/mainon 2026-03-17) - Runtime: Go
1.25.7, macOSdarwin/arm64
Minimal repro
- Build an inventory in read-only mode or with write tools excluded.
- Inspect
AvailableTools,AvailablePrompts, and generated server instructions. - 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.gopkg/inventory/prompts.gopkg/github/toolset_instructions.godocs/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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/github-mcp-server のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/github-mcp-server#3235 ·
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
github/github-mcp-server#3042 · コメント 2 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/github-mcp-server#3032 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
github/github-mcp-server#2803 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/github-mcp-server#2740 ·
github/github-mcp-server の issue をすべて見る
似ている issue
-
feature-request helm
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
gravitational/teleport#69785 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
crossplane/crossplane#7859 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100