Step 2: VS Code with GitHub Copilot
VS Code can add an MCP server for you through a short series of questions.
1. Set up Copilot
Section titled “1. Set up Copilot”Install VS Code, then sign in to GitHub Copilot from the Copilot icon in the status bar.
2. Add your Craft app
Section titled “2. Add your Craft app”-
Open the Command Palette: Ctrl+Shift+P on Windows and Linux, Cmd+Shift+P on macOS.
-
Type MCP: Add Server and press Enter.
-
Choose Command (stdio).
-
Enter the full path from Step 1, a space, and the arguments, for example:
"C:\Users\sam\AppData\Local\Programs\ArtCraft\WordCraft\wordcraft-cli.exe" mcp -
For the name, enter your app’s name in lower case, such as
wordcraft. -
Choose Global to use it in every window, or Workspace for this folder only.
VS Code saves it to a file called mcp.json and opens it, so you can check it.
3. Start it and check
Section titled “3. Start it and check”- Open the Command Palette again and run MCP: List Servers. Your app should be listed as running.
- If it isn’t running, select it and choose Start Server. The first time it starts, VS Code asks whether you trust the server; choose Trust.
- In the Copilot Chat view, switch to Agent mode, then open the tools button in the message box. Your app’s tools are listed there.
Next: Try it out.