VS Code + GitHub Copilot Setup
Use the ASCII Motion MCP server with GitHub Copilot in VS Code for AI-powered ASCII art creation directly in your editor.
Prerequisites
- VS Code installed
- GitHub Copilot extension installed
- GitHub Copilot subscription (Individual, Business, or Enterprise)
- Node.js 18+ installed
Installation
Step 1: Create the MCP Configuration
Create .vscode/mcp.json in your workspace:
- Open your project folder in VS Code
- Create a
.vscodefolder if it doesn't exist - Create a file named
mcp.jsoninside.vscode - Add the following configuration:
Using npx (no install required):
{
"servers": {
"ascii-motion": {
"command": "npx",
"args": [
"ascii-motion-mcp",
"--live",
"--project-dir",
"${workspaceFolder}"
],
"type": "stdio"
}
}
}Or with global install:
First install: npm install -g ascii-motion-mcp
{
"servers": {
"ascii-motion": {
"command": "ascii-motion-mcp",
"args": [
"--live",
"--project-dir",
"${workspaceFolder}"
],
"type": "stdio"
}
}
}- The
--liveflag enables real-time sync with the browser editor ${workspaceFolder}uses your current workspace as the project directory
Step 2: Restart VS Code and Start Server
Important: You must fully quit and reopen VS Code (not just reload the window) for MCP configuration changes to take effect.
Option 1: Start server in the VScode GUI:
- Start the server from the
mcp.jsonfile by pressing thestartbutton under "servers". - Click on the
morebutton and navigate toshow output. - Check the output for the auth token. Copy that auth token to your clipboard.
Option 2: Start server in the terminal:
- Run
npx ascii-motion-mcp --livein the terminal. - Copy the auth token from the terminal output onto your clipboard.
Step 3: Connect in the Browser
- Go to ascii-motion.app
- Click the hamburger menu (☰) in the top-left corner
- Select MCP Connection
- Paste the auth token and click Connect
You should see a green "Connected" status. Now Copilot's edits appear in real-time!
Example Prompts for VS Code
Create Documentation Art
"Create an ASCII art banner that says 'API Reference' for my README"
Generate Loading Spinner
"Create an 8-frame loading spinner animation and export it as a TypeScript constant"
Convert Image
"Import ./assets/logo.png and convert it to ASCII art, then save as ASCII in my docs folder"
Create CLI Component
"Create a bouncing ball animation and export it as an Ink component for my CLI app"
Troubleshooting
Tools not appearing in Copilot
- Verify your
.vscode/mcp.jsonis valid JSON - Check VS Code's Output panel (View → Output) and select "GitHub Copilot"
- Look for MCP-related messages
- Try using an absolute path:
"/usr/local/bin/ascii-motion-mcp"
"Cannot find module" errors
Ensure the command path is correct in .vscode/mcp.json:
{
"servers": {
"ascii-motion": {
"command": "/usr/local/bin/ascii-motion-mcp",
"args": [
"--live",
"--project-dir",
"${workspaceFolder}"
],
"type": "stdio"
}
}
}Permission errors
Make sure the project directory exists and is writable:
mkdir -p ~/ascii-projects
chmod 755 ~/ascii-projectsNext Steps
- Example Prompts - More prompt ideas
- Tool Reference - Complete tool documentation
- Export Formats - Learn about all export options