1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Visual Studio 2022のGithub Copilot Chat(Agent)でMicrosoft Learn MCP Serverを利用可能にする

Last updated at Posted at 2025-07-23

自分用のメモとして。

手順

(1) Visual Studio 2022を最新バージョンにする(17.14以下の場合)
(2) %USERPROFILE%.mcp.jsonを作成する
参考: https://qiita.com/nak1104/items/486710cdf0cca733a2bd

.mcp.json
{
  "servers": {
    "learn_docs": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp"
    }
  }
}

(3) Visual Studio 2022のGithub CopilotをAgentモードにし、歯車アイコンから learn_docs が選択可能になっていることを確認する
image.png

(4) learn_docsにチェックを入れ、Microsoft Learnを参照する質問をしてみる
image.png
image.png

感想

  • Copilotへの技術的質問の回答には基本的に公式ドキュメントの裏付けを求めることが多いので、それが効率化されるのはありがたい
  • 質問に含まれるキーワードから勝手にMicrosoft Learnを参照してくれるのかと思いきや、そうでもないっぽい
  • いちいち「Microsoft Learnを参照」とか付けないといけないのはちょい面倒かも?

追記

公式にまとまってました。サービス名の推奨は microsoft.docs.mcp みたいです。

.mcp.json
{
  "microsoft.docs.mcp": {
    "type": "http",
    "url": "https://learn.microsoft.com/api/mcp"
  }
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?