MM

malvex/mcp-server-vscode

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

17 stars 9 forks 品質 70 トレンド 21MIT

Claudeコードは、モデルコンテキストプロトコルを介してVSコードのコードナビゲーション、エラーチェック、デバッグツールに直接アクセスします.

概要

モデルコンテキストプロトコル(MCP)サーバーを提供するVSコード拡張機能により、AIアシスタントは言語インテリジェンス、デバッグ、コード実行のためにVSコード環境とやり取りすることができます。 - : VSコードの言語サーバーの機能にアクセスする: - 定義に移動 - 参照を見つける - 診断(エラーと警告) - シンボル検索 - コール階層 - : VSコードのデバッガをプログラム的に制御: - デバッグセッションの開始/停止 - ブレイクポイントの設定と管理 - コード(into/over/out)によるステップ - 変数のインスペクトと呼び出しスタック - デバッグコンテキストにおける式の評価 リリースとインストールから.vsixファイルをダウンロード: - VSコード:エクステンション → ... メニュー → VSIXからインストールするか、コマンドラインで:コード --install-extension mcp-server-vscode-*.vsix MCP サーバーは、npx を使用して GitHub から直接実行されます。 Claude 設定に追加します。 - : ~/Library/Application Support/Claude/claude desktop config.json - : %APPDATA%\Claude\claude desktop config.json

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)サーバーを提供するVSコード拡張機能により、AIアシスタントは言語インテリジェンス、デバッグ、コード実行のためにVSコード環境とやり取りすることができます。

##特徴

-言語インテリジェンス:VSコードの言語サーバー機能にアクセスする:

  • 定義に行く
  • 参照を見つける
  • 診断(エラーと警告)
  • シンボル検索
  • コール階層

-Debugging Support:VSコードのデバッガをプログラム的に制御:

  • デバッグセッションの開始/停止
  • ブレイクポイントの設定と管理
  • コードを通るステップ(into/over/out)
  • 変数を調べ、スタックを呼び出します
  • デバッグコンテキストにおける式の評価

インストール

アルファテスト

ステップ1: VSコード拡張子をインストール

リリースから[.vsixファイルをダウンロードしてインストールします。

  • VSコード:拡張子 → ...メニュー → VSIXからインストール
  • またはコマンドライン経由で: [code --install-extension mcp-server-vscode-*.vsix]

ステップ2:Claudeデスクトップの設定

MCP サーバーは、npx を使用して GitHub から直接実行されます。 Claude 設定に追加します。

  • macOS: [~/Library/Application Support/Claude/claude_desktop_config.json] -Windows:[%APPDATA%\Claude\claude_desktop_config.json

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Server for VS Code

A VS Code extension that provides a Model Context Protocol (MCP) server, enabling AI assistants to interact with your VS Code environment for language intelligence, debugging, and code execution.

Features

  • Language Intelligence: Access VS Code’s language server features including:

    • Go to definition
    • Find references
    • Diagnostics (errors and warnings)
    • Symbol search
    • Call hierarchy
  • Debugging Support: Control VS Code’s debugger programmatically:

    • Start/stop debug sessions
    • Set and manage breakpoints
    • Step through code (into/over/out)
    • Inspect variables and call stacks
    • Evaluate expressions in debug context

Installation

Alpha Testing

Step 1: Install VS Code Extension

Download the .vsix file from Releases and install:

  • In VS Code: Extensions → ... menu → Install from VSIX
  • Or via command line: code --install-extension mcp-server-vscode-*.vsix

Step 2: Configure Claude Desktop

The MCP server runs directly from GitHub using npx. Add this to your Claude config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "vscode": {
      "command": "npx",
      "args": ["github:malvex/mcp-server-vscode"]
    }
  }
}

Step 3: Restart Claude Desktop

That’s it! The VS Code tools are now available in Claude.

Configure Claude Code (CLI)

For Claude Code users, run this one-liner:

claude mcp add-json vscode '{"type":"stdio","command":"npx","args":["github:malvex/mcp-server-vscode"]}' -s user

Usage

Once installed, the extension shows the MCP server status in the VS Code status bar (bottom right).

To start the MCP server: Click on “VS Code MCP: Stopped” in the status bar. It will change to “VS Code MCP: 8991” when running.

The status bar indicates:

  • VS Code MCP: 8991 - Server is running on port 8991
  • VS Code MCP: Stopped - Server is not running

Click the status bar item to toggle the server on/off.

How It Works

┌─────────────┐     stdio      ┌──────────────────┐     HTTP      ┌─────────────┐
│   Claude    │ ◄────────────► │  MCP Standalone  │ ◄───────────► │   VS Code   │
│   Desktop   │                │      Server      │    :8991      │  Extension  │
└─────────────┘                └──────────────────┘               └─────────────┘
  1. VS Code Extension provides an HTTP API on port 8991
  2. MCP Standalone Server acts as a bridge, converting stdio ↔ HTTP
  3. Claude Desktop communicates with the standalone server via stdio

Troubleshooting

If Claude can’t connect to VS Code:

  1. Check VS Code is running with the extension active
  2. Check the status bar shows “VS Code MCP: 8991”
  3. Test the MCP server: Run npx github:malvex/mcp-server-vscode in terminal
  4. Check firewall isn’t blocking localhost:8991
GitHub で README 全文を見る

インストール

npx github:malvex/mcp-server-vscode
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "vscode": { "command": "npx", "args": ["github:malvex/mcp-server-vscode"] } } }