GitHub Copilot App Setup

Add the ASCII Motion MCP server to the GitHub Copilot app, so Copilot sessions can draw, animate and export in an ASCII Motion editor open on the same computer.

Prerequisites

  • The GitHub Copilot app installed and signed in.

  • Node.js 22 or 24, with npx available.

  • A desktop browser on the same computer as the Copilot app. Live sync uses a local loopback connection, so it does not work with cloud or remote sessions. See Remote and cloud agents.

  • An existing folder for MCP file output. Create one in a terminal and print its absolute path:

    bash
    mkdir -p ~/ascii-motion-projects && cd ~/ascii-motion-projects && pwd

    On macOS this prints something like /Users/yourname/ascii-motion-projects. You'll paste that path into the server arguments.

Add the server

  1. Click Customize in the app sidebar.

  2. Click MCP.

  3. Choose to add a custom server, and enter:

    FieldValue
    Server nameascii-motion
    Server typeLocal
    Commandnpx
    Arguments-y ascii-motion-mcp@3 --live --project-dir /Users/yourname/ascii-motion-projects --port 9876

    Replace /Users/yourname/ascii-motion-projects with the path pwd printed. The folder must already exist, and the app doesn't expand ~, so use the full path.

    Don't repeat npx in Arguments

    npx goes only in Command. Arguments start at -y. If Arguments also starts with npx, the server fails to start.

  4. Save the server. It now appears under Customize → Installed, where you can check its status, edit it, or remove it later.

Why pin a major version?

ascii-motion-mcp@3 runs the latest 3.x release, which these docs and the tool reference describe (verified with 3.0.1). Use 3.0.1 or later in the Copilot app: 3.0.0 crashes when more than one session has the server enabled. To check which version npx runs, use npx -y ascii-motion-mcp@3 --version. It won't jump to a future major version that could change tools. For an ASCII Motion app older than 2.2.6, use the legacy ascii-motion-mcp@2.3.0 instead.

Already set up in Copilot CLI?

The Copilot app automatically picks up MCP servers configured for Copilot CLI and for your repositories. If you followed the Copilot CLI guide, the server is already available in the app; don't add it twice, or the two copies will compete for the same port.

If the server doesn't start

The Copilot app is a desktop application, so it may not see the PATH from your shell profile. This is common when Node.js is installed with nvm, fnm, Volta or Homebrew. If the server shows as failed under Installed:

  1. Find the full path to npx in a terminal: run which npx on macOS or Linux, or where npx on Windows.
  2. Edit the server and replace the npx command with that full path, for example /opt/homebrew/bin/npx.
  3. If the error mentions node not found, add a PATH environment variable to the server that includes the folder containing node.

If the error says ENOENT with syscall: 'stat' and a path, the --project-dir folder doesn't exist. Create it, or edit the server to use a folder that does, for example the pwd output from Prerequisites.

Connect the editor

The Copilot app starts the server when a session needs it. Connect your browser to that server; don't start another one in a terminal.

  1. In a Copilot session, ask:

    text
    Use the ascii-motion MCP server to call get_auth_token and get_connection_status.
  2. Open ASCII Motion in your browser.

  3. Open ☰ → MCP Connection, paste the token into Auth Token, confirm Port is 9876, and click Connect.

  4. When the status shows Connected, ask Copilot to run the reversible check from Verify the connection.

The token changes whenever the server restarts. If the connection drops after you restart the app or edit the server, repeat these steps.

One live session at a time

Each Copilot session that has the server enabled starts its own server process, but only one of them can listen on port 9876. A server claims the port the first time that session uses an ASCII Motion tool, so sessions that never use it don't block anyone. If another session already holds the port, ASCII Motion tools return PORT_IN_USE instead of working. Keep using the session that holds the port, or close it; the next ASCII Motion tool call in your session then claims the port, and you reconnect the editor with the new token.

Try it

text
Using ascii-motion, add a digital-rain generator layer, then add animated text
that says "HELLO" with a typewriter effect starting at frame 0. Set the frame
rate to 12 fps and show me get_canvas_preview.

For more ideas, see Example prompts and the task guides in the sidebar.

What to expect

Version 3 needs ASCII Motion 2.2.6 or later, which ascii-motion.app already runs. While connected, tools go through the open editor: layers, groups, content frames, keyframes, effects, shaders, generators, selection, palettes, import, export and undo. Changes appear immediately, and each one can be undone in the app. Signed-in cloud project tools are still untested; see Cloud projects are untested signed in.

The server lists 216 tools. If your client limits or slows down with many tools, see Discover before you edit.

Troubleshooting

  • Server not listed or failed: check Customize → Installed and see If the server doesn't start.
  • PORT_IN_USE from a tool: another Copilot session, terminal or client already used its server on that port. Use ASCII Motion from that session, or close it and retry the tool here. To run both at once, change --port for one of them and use the same port in the MCP Connection dialog.
  • Server crashes with EADDRINUSE on port 9876: you're running 3.0.0. Edit the server so the arguments use ascii-motion-mcp@3, then restart it. If npx -y ascii-motion-mcp@3 --version still prints 3.0.0, npx is reusing an older copy: run npm install -g ascii-motion-mcp@latest if you installed it globally, or npm cache npx rm to clear the npx cache, and restart the server.
  • More issues: see Live Sync troubleshooting.