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
copilotcommand). - Node.js 22 or 24, with
npxavailable. - 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.
Option 1: copilot mcp add (recommended)
Run this in your terminal, replacing the project path:
copilot mcp add ascii-motion -- npx -y ascii-motion-mcp@3 --live --project-dir /absolute/path/to/ascii-motion-projects --port 9876This saves the server to your user configuration at ~/.copilot/mcp-config.json, so it's available in every directory. Check it with:
copilot mcp list
copilot mcp get ascii-motionOption 2: /mcp add inside a session
- Start
copilotand enter/mcp add. - Set Server Name to
ascii-motionand Server Type to STDIO. - Set Command to
npx -y ascii-motion-mcp@3 --live --project-dir /absolute/path/to/ascii-motion-projects --port 9876. - 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:
{
"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.
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.
-
In a
copilotsession, ask:textUse ascii-motion to call get_auth_token and get_connection_status. -
Open ASCII Motion, then ☰ → MCP Connection.
-
Paste the token into Auth Token, confirm Port is
9876, and click Connect. -
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
| Task | In a session | From the terminal |
|---|---|---|
| List servers and status | /mcp or /mcp list | copilot mcp list |
| Show tools for this server | /mcp show ascii-motion | copilot mcp get ascii-motion |
| Edit | /mcp edit ascii-motion | Edit ~/.copilot/mcp-config.json |
| Disable or enable | /mcp disable ascii-motion, /mcp enable ascii-motion | copilot mcp disable ascii-motion, copilot mcp enable ascii-motion |
| Remove | /mcp delete ascii-motion | copilot 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-motionto see its status, and confirmnpx --versionworks 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.