From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Understand mcp.json setting
From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code
Understand mcp.json setting
The mcp.json file is the main place where we configure MCP servers. This file, shown here in VSCode, tells Copilot what servers exist, how to launch them, and how the client should connect to them. You can point to a local script, a Node or Python entry point, or even a remote endpoint. This file is in my local workspace, so it is in this .vscode folder here. There is a server section up here. And at the moment, I only have one MCP server listed in here. And that is db hub. So this is a node j s based setup. That means that Visual Studio Code will spin up node on a background process. And then node will install the db hub npm package. A quick note on the word server. In this context, don't think huge machine in a data center, hosting a website. In MCP, server just means a process that exposes capabilities over the model context protocol. Visual Studio Code acts as the client, it connects to that process, discovers what capabilities it offers, then uses those capabilities to request…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
MCP overview6m 35s
-
(Locked)
Query a database with an MCP server4m 9s
-
(Locked)
Generate TypeScript DB access code1m 23s
-
(Locked)
Understand mcp.json setting2m 13s
-
(Locked)
Enable catalog browsing in the Extensions panel1m
-
(Locked)
Install other MCP servers with the Extension panel3m 12s
-
(Locked)
Find MCP servers on GitHub2m 53s
-
(Locked)
-