Animated icons with GitHub Copilot
VS Code
Section titled “VS Code”Create .vscode/mcp.json in your project:
{ "servers": { "magic-glyphs": { "type": "stdio", "command": "npx", "args": ["-y", "magic-glyphs-mcp"] } }}Or use the portable format that other Copilot tools read too: .mcp.json at the root of your project, with the same server under mcpServers.
Start the server from the file, open Copilot Chat, switch to Agent, and paste the prompt below.
Copilot CLI
Section titled “Copilot CLI”copilot mcp add magic-glyphs -- npx -y magic-glyphs-mcpThe prompt
Section titled “The prompt”Prompt
Use Magic Glyphs to animate the icons in this project. Read https://magicglyphs.com/llms.txt first. 1. Find every static icon: inline SVGs, icon fonts, and imports from icon packages such as lucide, heroicons or react-icons. 2. For each one, pick the closest Magic Glyphs icon. Use the magic-glyphs MCP tools if you have them, or run: npx magic-glyphs search <words> 3. Add the icons you picked with: npx magic-glyphs add <names> --format react --out <icons folder> 4. Swap them in. Keep each icon's size and colour. 5. Add `sound` to icons inside buttons people click. For icons that react to an action (like, add to cart, send), set trigger="none" and call play() when it happens. 6. Add one sound toggle so visitors can mute every icon. 7. List any icon you could not match.
More things to ask
Section titled “More things to ask”“Switch this project from Lucide to Magic Glyphs”, “Add an icon and a sound to every button on this page”, or “Animate our logo: the outer star bounces and the inner star spins” (local server and a licence). See more things to ask.