Github copilot not setting bearer token on acces to tools.
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- csharp, github
- 領域
- api, authentication
調査の方向性
.mcp.json の設定から始め、動作する Postman リクエストと比較しながら、Visual Studio GitHub Copilot chat から MCP サーバーへの呼び出しを再現します。不足している bearer token の原因が C# SDK にあるのか Copilot クライアントにあるのかを特定します。完了条件は、ツールリクエストに認証済みトークンが含まれること、または責任のあるコンポーネントを絞り込めることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I have created an MCP server and I am trying to use it in visual studio 2026 with github copilot. I created an .mcp.json for the solution and I managed to authenticate using oauth using the codelens ui for that file. When saving the .mcp.json file Visual Studio supplies the bearer token to the MCP server and it is marked as online.
But when copilot chat tries to access it, the bearer token is not included in the request. But the server still shows connected in the config. I don't know if this is a problem with this library or not. If I execute the tools using the bearer token and postman it all works. But github copilot does not try to supply the token.
Do I need to add anything special in the way of attributes or such to get copilot ai to understand it needs to supply the bearer token when calling tools?
To Reproduce
- Authenticate the mcp server
- Try to use the tool in the chat. No token gets send.
Expected behavior
copilot chat should send the bearer token to the mcp server
Logs
Additional context
- 主要言語
- C#
- スター
- 4.6k
- フォーク
- 819
- 平均マージ
- 4日 23時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelcontextprotocol/csharp-sdk のほかの issue
-
ClaimsPrincipal parameter injection sample request対応中かも @utsavjain2809 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
modelcontextprotocol/csharp-sdk#1899 ·
メンテナーはふだん 5 日以内に返信
-
Document ClientOAuthOptions.ScopeSelector usage対応中かも @z0rimo が 28 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelcontextprotocol/csharp-sdk#1867 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
HTTP+SSE client: POST responses are never disposed, leaking one connection per sent message対応中かも @yalcinfu22 が 43 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
modelcontextprotocol/csharp-sdk#1840 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
stdio client never closes the server's stdin, so every client dispose burns the full ShutdownTimeout (5s by default)対応中かも @luisangelrod が 44 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
modelcontextprotocol/csharp-sdk#1836 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
enhancement needs confirmation
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
modelcontextprotocol/csharp-sdk#678 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
modelcontextprotocol/csharp-sdk の issue をすべて見る
似ている issue
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
:watch: Not Triaged dotnet-framework/svc install-deployment/subsvc
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
[Tool] DirectBenchオープンhas-image has-readme needs-attention new-tool repo-verified
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
shanselman/TinyToolTown#844 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
:watch: Not Triaged Pri3
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信