VS Code + GitHub Copilot Setup

Use the ASCII Motion MCP server with GitHub Copilot Chat in Visual Studio Code.

Prerequisites

  • VS Code with GitHub Copilot Chat enabled.
  • Node.js 22 or 24, with npx available.
  • For live sync: a desktop browser on the same computer as VS Code. When VS Code is connected to a remote host (Remote SSH, a dev container or Codespaces), the server runs on that host and the browser can't reach it. See Remote and cloud agents.

Add the server

Create .vscode/mcp.json in your workspace:

json
{
  "servers": {
    "ascii-motion": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ascii-motion-mcp@3",
        "--live",
        "--project-dir",
        "${workspaceFolder}/ascii-motion",
        "--port",
        "9876"
      ]
    }
  }
}

VS Code uses a top-level servers key, and supports variables such as ${workspaceFolder}. To make the server available in every workspace, run MCP: Open User Configuration from the Command Palette and add the same entry there instead.

Different from Copilot CLI and the Copilot app

.vscode/mcp.json is only read by VS Code. GitHub Copilot CLI and the GitHub Copilot app use mcpServers in ~/.copilot/mcp-config.json, .mcp.json or .github/mcp.json. See the Copilot CLI guide.

Start the server

When you save mcp.json, VS Code shows a Start action above the server entry. Click it, or open Copilot Chat in Agent mode, where VS Code starts the server when it's needed. You don't need to restart VS Code.

Use the Tools button in the Chat view to confirm the ascii-motion tools are enabled. You can also run MCP: List Servers to check the server status and open its output log.

Don't start a second server in a terminal

VS Code already runs the server. Running npx ascii-motion-mcp --live in a terminal starts a second instance with a different token, and it competes for port 9876. Connect the browser to the instance VS Code started.

Connect the editor

  1. In Copilot Chat (Agent mode), ask:

    text
    Use ascii-motion to call get_auth_token and get_connection_status.

    Version 3 doesn't print the token in the server's output log, so always get it with get_auth_token.

  2. Open ASCII Motion, then ☰ → MCP Connection.

  3. Paste the token into Auth Token, confirm Port is 9876, and click Connect.

  4. Run the reversible check from Verify the connection.

If you restart the server from VS Code, it gets a new token; reconnect the browser.

Example prompts

text
Create a 40×8 ASCII banner that says "DOCS" with paste_ascii_block,
then export it with export_text to banner.txt.
text
Add a rain-drops generator layer and set the frame rate to 15 fps.
Then export_video to rain.webm at 2x size.

More in Example prompts.

Troubleshooting

  • Tools don't appear: check that mcp.json is valid JSON, the server is started, and its tools are enabled in the Tools picker.
  • npx not found: use the full path to npx (which npx or where npx) as command, or launch VS Code from a terminal so it inherits your PATH.
  • More issues: see Live Sync troubleshooting.