Animated icons with Gemini CLI
Install the extension
Section titled “Install the extension”gemini extensions install https://github.com/lewisjohnvillamor/magicglyphsThe extension starts the Magic Glyphs MCP server (npx -y magic-glyphs-mcp, which needs Node.js) and gives Gemini a short guide to when each tool fits. Start Gemini CLI in your project and type /mcp: magic-glyphs should be listed with its 13 tools.
It will also be listed in the Gemini CLI extensions gallery, which adds extensions by itself.
Update it with gemini extensions update magic-glyphs.
Without the extension
Section titled “Without the extension”Add the server to ~/.gemini/settings.json (or .gemini/settings.json in your project) yourself:
{ "mcpServers": { "magic-glyphs": { "command": "npx", "args": ["-y", "magic-glyphs-mcp"] } }}The prompt
Section titled “The prompt”Paste this into Gemini CLI from your project folder:
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” (needs a licence). See more things to ask.
The free 120 icons work without a key. For the whole library, run npx magic-glyphs login YOUR-LICENCE-KEY once in your own terminal. Gemini never needs your key.