Expose and serialize allowAllMcpServerInstructions in TypeScript SDK
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- api, testing-qa
調査の方向性
dist/types.d.ts と dist/client.js から始め、生成された RPC 型と CopilotClient.createSession() のリクエストパスを追跡します。resume または update の処理も含めてください。サイドバイサイドテストとワイヤーレベルのアサーションには、同じ allowlist にない MCP サーバー fixture を使用します。省略および false の場合は canary が非表示のままになり、true の場合は canary が公開され、どの場合でもツールが利用可能になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
The Copilot runtime protocol supports allowAllMcpServerInstructions, but TypeScript SDK 1.0.11 does not provide a working SessionConfig path for it.
The generated RPC types contain the field, and the runtime describes it as including instructions from every MCP server instead of only allowlisted servers. However:
dist/types.d.tsdoes not expose it onSessionConfigBase.CopilotClient.createSession()indist/client.jsdoes not serialize it into thesession.createrequest.- A consumer adding the property at runtime therefore has no effect.
This prevents evaluation harnesses and other SDK consumers from explicitly testing or enabling instructions from a non-allowlisted MCP server.
Controlled reproduction
A one-turn probe used a temporary MCP server whose unique canary existed only in server-level initialization instructions. The tool description did not contain the canary, and the prompt prohibited tool calls.
- Stock SDK: agent returned
NO_MCP_INSTRUCTION_CANARY(18,924 tokens, 1 turn, 0 tool calls). - Consumer supplied
allowAllMcpServerInstructions: truewithout changing SDK serialization: same negative result. - Temporary SDK wiring that serialized the field into
session.create, together with the consumer option: agent returned the exact instruction canary (19,028 tokens, 1 turn, 0 tool calls).
This isolates the missing SDK forwarding from model variance and MCP tool selection.
Requested behavior
- Add
allowAllMcpServerInstructions?: booleanto the public TypeScript session configuration shared by create/resume paths as appropriate. - Serialize it to the runtime request and ensure resumed or updated sessions honor the same policy.
- Preserve the secure default: omitted or
falsemust continue to exclude instructions from non-allowlisted servers.
Required side-by-side tests
Please cover both policy states using the same non-allowlisted MCP server fixture:
- Disallowed: omitted and explicit
falsedo not expose the server instruction canary. - Allowed: explicit
trueexposes the exact canary. - The server's tools remain available in both states, proving the assertion concerns instruction visibility rather than MCP startup.
- Wire-level tests assert both
falseandtrueare serialized correctly where supplied.
The allow/disallow behavior should remain explicit rather than changing the default globally.
- 主要言語
- Java
- スター
- 10.5k
- フォーク
- 1.5k
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 130
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-sdk のほかの issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2760 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2759 ·
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
github/copilot-sdk#2758 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/copilot-sdk#2709 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
github/copilot-sdk#2673 ·
github/copilot-sdk の issue をすべて見る
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/flink-agents#1152 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jenkinsci/blueocean-plugin#5417 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·