GitHub Copilot CLI Setup

Use the ASCII Motion MCP server from GitHub Copilot CLI in your terminal.

Prerequisites

  • GitHub Copilot CLI installed and signed in (the copilot command).
  • Node.js 22 or 24, with npx available.
  • For live sync: a desktop browser on the same computer as the CLI. Live sync does not work over SSH, in Codespaces, or from cloud agents. See Remote and cloud agents.

Add the server

Choose one method.

Run this in your terminal, replacing the project path:

bash
copilot mcp add ascii-motion -- npx -y ascii-motion-mcp@3 --live --project-dir /absolute/path/to/ascii-motion-projects --port 9876

This saves the server to your user configuration at ~/.copilot/mcp-config.json, so it's available in every directory. Check it with:

bash
copilot mcp list
copilot mcp get ascii-motion

Option 2: /mcp add inside a session

  1. Start copilot and enter /mcp add.
  2. Set Server Name to ascii-motion and Server Type to STDIO.
  3. Set Command to npx -y ascii-motion-mcp@3 --live --project-dir /absolute/path/to/ascii-motion-projects --port 9876.
  4. Leave Tools as *, and press Ctrl+S to save.

The server is available immediately; you don't need to restart the CLI.

Option 3: edit the configuration file

Add the server to ~/.copilot/mcp-config.json:

json
{
  "mcpServers": {
    "ascii-motion": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ascii-motion-mcp@3",
        "--live",
        "--project-dir",
        "/absolute/path/to/ascii-motion-projects",
        "--port",
        "9876"
      ],
      "tools": ["*"]
    }
  }
}

Per-repository configuration

To share the setup with collaborators, put the same mcpServers object in .github/mcp.json (committed) or .mcp.json (local) in the repository. Copilot CLI loads project-level servers only after you confirm folder trust for that directory.

.vscode/mcp.json is a different format

Copilot CLI does not read .vscode/mcp.json. That file uses VS Code's servers key; the CLI expects mcpServers (or bare server names) in .mcp.json, .github/mcp.json or ~/.copilot/mcp-config.json. See the VS Code guide for the VS Code format.

Avoid defining ascii-motion in more than one place with --live on the same port. Project-level definitions override the user configuration for the same name, but two different names would start two servers that compete for port 9876.

Connect the editor

Copilot CLI starts the server when the session loads. Connect your browser to that server; don't run a second npx ascii-motion-mcp in another terminal.

  1. In a copilot session, ask:

    text
    Use ascii-motion to call get_auth_token and get_connection_status.
  2. Open ASCII Motion, then ☰ → MCP Connection.

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

  4. Ask Copilot to run the reversible check from Verify the connection.

Each new CLI session starts a fresh server with a new token, so reconnect the browser when you start a new session. Only one session at a time can hold port 9876; if you run several copilot sessions, use live sync from one of them.

Manage the server

TaskIn a sessionFrom the terminal
List servers and status/mcp or /mcp listcopilot mcp list
Show tools for this server/mcp show ascii-motioncopilot mcp get ascii-motion
Edit/mcp edit ascii-motionEdit ~/.copilot/mcp-config.json
Disable or enable/mcp disable ascii-motion, /mcp enable ascii-motioncopilot mcp disable ascii-motion, copilot mcp enable ascii-motion
Remove/mcp delete ascii-motioncopilot mcp remove ascii-motion

Headless use

You can use the server without a browser, for example to generate text, ANSI or framework exports from scripts. Remove --live from the arguments, or simply don't connect a browser. Canonical operations, layers, effects, generators, and image or video import and export need a connected editor. See Headless mode.

Troubleshooting

  • Server not starting: run copilot mcp get ascii-motion to see its status, and confirm npx --version works in the same terminal.
  • Project servers not loading: confirm you trusted the folder. In prompt mode (copilot -p), untrusted project servers are skipped.
  • More issues: see Live Sync troubleshooting.