-
Book Overview & Buying
-
Table Of Contents
Ship an MCP Server in Python - Fast
By :
If you’re using VS Code with GitHub Copilot, you can register your server in mcp.json so the agent can discover and call your tools. If you’re using Claude Desktop, skip over to the next section.
Once mcp.json is in place, you can wire it to VS Code’s agent mode. You’ll use the built-in chat paired with GitHub Copilot in agent mode to route natural prompts to your tools. The host takes care of listing capabilities, picking tools, and asking permission before execution. Your job is to give it a clean launch path and sensible tool descriptions.
Open your workspace in VS Code. Ensure .vscode/mcp.json lists your server under servers with the correct command and args. In the mcp.json code window, start the server entry from the embedded control.

Figure 4-1: Starting a server via the embedded control in VS Code.
The host spawns your process over stdio, completes the handshake, and shows the server as...
Change the font size
Change margin width
Change background colour