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

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