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

Github copilot not setting bearer token on acces to tools.

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

メンテナーはふだん 5 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, github

調査の方向性

.mcp.json の設定から始め、動作する Postman リクエストと比較しながら、Visual Studio GitHub Copilot chat から MCP サーバーへの呼び出しを再現します。不足している bearer token の原因が C# SDK にあるのか Copilot クライアントにあるのかを特定します。完了条件は、ツールリクエストに認証済みトークンが含まれること、または責任のあるコンポーネントを絞り込めることです。

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

説明

area-auth bug help wanted needs confirmation P3

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

  1. Authenticate the mcp server
  2. 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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

modelcontextprotocol/csharp-sdk のほかの issue

modelcontextprotocol/csharp-sdk の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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