0
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?

【動画つき】VSCodeにMCPサーバを最も簡単に設定する方法

Last updated at Posted at 2025-09-18

はじめに

VSCode上のCopilotからMCPサーバを呼び出したいなと思い、試行錯誤したところボタンポチポチで簡単に設定できたのでご紹介します。
VSCodeのMCPサーバ設定方法を検索するとsetting.jsonに設定追記する方法がヒットしますが、執筆時点でmcp.jsonに記載する方法に変わったようです。※Visual Studio公式サイト

前提

  • Visual Studio Code(バージョン1.104.1) ※2025/9/18時点最新
  • VSCode拡張機能 GitHub Copilot

本記事ではVSCodeのGitHub Copilot設定が一通り完了しているものとして進めます。

設定方法

1. GitHub Copilotを開く

open.gif

2. GitHub CopilotをAgentモードに変更

3. Agentモードの「設定アイコン」→「MCPアイコン」の順でクリック

click.gif

4. 利用したいMCPサーバにあわせて「コマンド」や「HTTP」を選択

「コマンド」を選択し、playwrightのMCPサーバを設定する例

4.1. 起動コマンドを入力

image.png

4.2. 任意のサーバ名を入力

image.png

5. 自動でmcp.jsonが作成される

image.png
※starage-stateの設定値が不正のため起動に失敗しています

おわりに

mcpサーバの起動や再起動もこのmcp.json上で行うことができるので便利ですね~
皆さんの生成AI活用の一助になれば幸いです。

参考文献

0
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
0
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?