Windsurf Setup

Use the ASCII Motion MCP server with the Cascade agent in Windsurf.

Prerequisites

  • Windsurf installed.
  • Node.js 22 or 24, with npx available.
  • A desktop browser on the same computer as Windsurf.

Add the server

  1. In the Cascade panel, open the … menu and choose the option to open the MCP config file (mcp_config.json). The file location depends on your Windsurf version, so open it from the app rather than guessing the path.

  2. Add the server under mcpServers, replacing the project path:

    json
    {
      "mcpServers": {
        "ascii-motion": {
          "command": "npx",
          "args": [
            "-y",
            "ascii-motion-mcp@3",
            "--live",
            "--project-dir",
            "/absolute/path/to/ascii-motion-projects",
            "--port",
            "9876"
          ]
        }
      }
    }
  3. Save the file and refresh the MCP server list in Cascade.

Tool limit

Cascade can use a limited number of MCP tools at once (100 at the time of writing), and ascii-motion-mcp 3 lists 216 tools. List tools you don't need in a disabledTools array in the server entry. The 109 compatibility tools with 2.3.0 names (see the tool reference) duplicate canonical operations, so disabling them, plus the 11 cloud project tools if you don't use them, brings the server under the limit.

Connect the editor

Windsurf starts the server when the MCP configuration loads. Connect your browser to that server; don't also run npx ascii-motion-mcp --live in a terminal, which would start a second server with a different token on the same port.

  1. Ask Cascade:

    text
    Use ascii-motion to call get_auth_token and get_connection_status.
  2. Open ASCII Motion on the same computer, 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.

The token changes every time the server restarts. If the connection drops after Cascade restarts, repeat these steps.

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.

Example prompt

text
Using ascii-motion, add animated text "LOADING" with a typewriter effect, set the
frame rate to 10 fps and export_ansi to loading.ans.

More in Example prompts.

Troubleshooting

  • Server fails to start: desktop apps often don't load your shell PATH. Replace "command": "npx" with the full path from which npx (macOS/Linux) or where npx (Windows).
  • Port already in use: another copy of the server is running. Stop it, or change --port here and in the MCP Connection dialog.
  • More issues: see Live Sync troubleshooting.