スキル一覧に戻る
samelhousseini

vscode-mcp-servers

by samelhousseini

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: vscode-mcp-servers description: Configure and use MCP (Model Context Protocol) servers in VS Code. Use when setting up MCP servers, configuring mcp.json, using MCP tools in chat, managing server trust, or troubleshooting MCP connections.

MCP Servers in VS Code

Model Context Protocol (MCP) is an open standard that lets AI models use external tools and services through a unified interface. MCP servers provide tools for file operations, databases, APIs, and more.

Add MCP Servers

From GitHub MCP Server Registry

  1. Enable chat.mcp.gallery.enabled setting
  2. Open Extensions view (Ctrl+Shift+X)
  3. Search @mcp or run MCP: Browse Servers
  4. Select Install (user profile) or Install in Workspace

Configuration Locations

ScopeLocation
Workspace.vscode/mcp.json
UserSettings via MCP: Open User Configuration
Dev Containerdevcontainer.json

Configuration Format

Basic Structure

{
  "servers": {
    "server-name": {
      // Server configuration
    }
  },
  "inputs": [
    // Optional input variables for sensitive data
  ]
}

Standard I/O (stdio) Servers

For locally-run servers communicating via stdin/stdout:

{
  "servers": {
    "my-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem"],
      "env": {
        "API_KEY": "${input:api-key}"
      },
      "envFile": "${workspaceFolder}/.env"
    }
  }
}
FieldRequiredDescription
typeYes"stdio"
commandYesExecutable command
argsNoCommand arguments array
envNoEnvironment variables
envFileNoPath to .env file

HTTP/SSE Servers

For remote servers over HTTP:

{
  "servers": {
    "remote-server": {
      "type": "http",
      "url": "https://api.example.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:api-token}"
      }
    }
  }
}
FieldRequiredDescription
typeYes"http" or "sse"
urlYesServer URL
headersNoHTTP headers

Unix sockets: unix:///path/to/server.sock Windows pipes: pipe:///pipe/named-pipe

Input Variables

Securely store sensitive data:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "api-key",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ],
  "servers": {
    "github": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "${input:api-key}"
      }
    }
  }
}

Use MCP Tools in Chat

Automatic Invocation

  1. Open Chat view (Ctrl+Alt+I)
  2. Use tool picker to enable MCP tools (grouped by server)
  3. Ask naturally: "List my GitHub issues"
  4. Review and approve tool invocations when prompted

Explicit Tool Reference

Type # followed by tool name to reference directly.

In Custom Prompts/Agents

Reference MCP tools in frontmatter:

tools: ['github/*', 'filesystem/*']

Use <server>/* format to include all tools from a server.

MCP Resources

Access server-provided resources as context:

  1. In Chat view, select Add Context > MCP Resources
  2. Select resource type and provide parameters
  3. Resources returned by tools can be saved via Save or drag-and-drop

MCP Prompts

Invoke preconfigured prompts with slash commands:

/mcp.servername.promptname

Server Management

Commands

CommandAction
MCP: List ServersView all servers with actions
MCP: Browse ServersBrowse GitHub registry
MCP: Reset Cached ToolsClear tool cache
MCP: Reset TrustReset server trust
MCP: Open User ConfigurationEdit user mcp.json
MCP: Open Workspace Folder ConfigurationEdit workspace mcp.json

Auto-Start

Enable chat.mcp.autostart (experimental) to automatically restart servers on configuration changes.

Server Naming Conventions

  • Use camelCase: uiTesting, githubIntegration
  • No whitespace or special characters
  • Unique names per server
  • Descriptive names reflecting functionality

Development Mode

Enable debugging in server configuration:

{
  "servers": {
    "my-server": {
      "type": "stdio",
      "command": "node",
      "args": ["server.js"],
      "dev": {
        "watch": "**/*.js",
        "debug": true
      }
    }
  }
}

Troubleshooting

IssueSolution
Server not startingCheck command/args, verify not using Docker -d flag
Error indicator in ChatSelect error → Show Output for logs
"Cannot have more than 128 tools"Reduce enabled tools in picker or enable github.copilot.chat.virtualTools.threshold
Trust prompt not appearingStarting from mcp.json bypasses trust prompt

View Server Logs

  1. MCP: List Servers → Select server → Show Output
  2. Or click error notification → Show Output

Security

  • Only add servers from trusted sources
  • Review configuration before starting
  • Trust confirmation required on first start
  • Use MCP: Reset Trust to revoke trust

Settings Sync

Synchronize MCP servers across devices:

  1. Run Settings Sync: Configure
  2. Ensure MCP Servers is included

Example: GitHub MCP Server

{
  "inputs": [
    {
      "type": "promptString",
      "id": "github-token",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ],
  "servers": {
    "github": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "${input:github-token}"
      }
    }
  }
}

Then in chat: "List my GitHub issues" or "Create a new issue in repo X"

スコア

総合スコア

45/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です