gsap-mcp

gsap-mcp

A local/global MCP server that enables AI agents to generate GSAP v3 animation code, search documentation, validate CSS selectors, and provide best practice guidance.

Category
访问服务器

README

<img src="https://api.iconify.design/simple-icons:javascript.svg?color=%23ffffff" width="28" height="28" align="center" /> GSAP MCP Server (Model Context Protocol)

GSAP MCP Server adalah server MCP lokal & global yang dirancang khusus untuk mempermudah AI Agent (seperti OpenCode, Claude Code, Cursor, dll.) dalam membuat kode animasi GSAP v3, mencari dokumentasi, memvalidasi sintaks selektor CSS, dan memberikan panduan praktik terbaik (best practices).


<img src="https://api.iconify.design/lucide:star.svg?color=%23ffffff" width="22" height="22" align="center" /> Fitur Utama

  • Pencarian Dokumentasi Hibrida: Pencarian dokumentasi instan secara offline dan fallback pencarian realtime (live fetch) langsung ke situs resmi gsap.com.
  • Generasi Kode Animasi: Menghasilkan kode GSAP untuk to, from, fromTo, timeline, stagger, dan scrollTrigger.
  • Validasi Selektor CSS: Memeriksa potensi bug sintaksis selector DOM dan masalah kompatibilitas cross-browser (seperti :has() atau kurung unclosed).
  • Panduan Best Practices & Debugging: Pembantu otomatis untuk mengatasi masalah animasi seperti animasi tidak jalan, ScrollTrigger macet, atau optimasi React/Vue/Svelte.
  • Efisiensi Token AI: Output teks yang sudah disanitasi dari HTML junk tag (<nav>, <style>, <script>) untuk menghemat context window AI.

<img src="https://api.iconify.design/lucide:cpu.svg?color=%23ffffff" width="22" height="22" align="center" /> Stack Teknologi

  • Runtime: Node.js (v18.0.0+) ES Modules
  • Protocol: @modelcontextprotocol/sdk (StdioServerTransport)
  • Validation: zod v3

<img src="https://api.iconify.design/lucide:package.svg?color=%23ffffff" width="22" height="22" align="center" /> Cara Instalasi & Konfigurasi

1. Instalasi Dependensi Lokal

git clone https://github.com/itzd-dev/gsap-mcp.git
cd gsap-mcp
npm install

2. Konfigurasi Global di OpenCode

Tambahkan konfigurasi berikut ke file konfigurasi global OpenCode Anda di ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "gsap": {
      "type": "local",
      "command": [
        "node",
        "/Users/odi/Documents/gsap-mcp/src/index.js"
      ],
      "enabled": true
    }
  }
}

3. Konfigurasi di Antigravity IDE / Claude Desktop

Tambahkan ke konfigurasi MCP Server Antigravity IDE (mcp_config.json):

{
  "mcpServers": {
    "gsap": {
      "command": "node",
      "args": [
        "/Users/odi/Documents/gsap-mcp/src/index.js"
      ]
    }
  }
}

<img src="https://api.iconify.design/lucide:wrench.svg?color=%23ffffff" width="22" height="22" align="center" /> Daftar Tools MCP (10 Tools)

Tool Deskripsi Argumen Utama
generate-animation Menghasilkan kode animasi GSAP presisi. type, target, duration, props, scrollTrigger, stagger, ease
validate-target Memvalidasi sintaks CSS selector sebelum animasi dibuat. target (string selector)
search Mencari dokumentasi GSAP v3 offline di memori lokal. query, category, limit
fetch-live-docs Mengambil dokumentasi realtime dari situs web resmi GSAP. path, maxCharacters
api Mendapatkan referensi API detail untuk metode/properti GSAP. name, includeExamples
best-practices Mengambil panduan praktik terbaik (performa, React, ScrollTrigger). topic
debug Memberikan solusi untuk masalah animasi yang sering terjadi. issue, context
setup Menghasilkan kode boilerplate setup GSAP per framework. framework, features
plugins Menampilkan daftar seluruh plugin GSAP (Free & Club). filter
easing Referensi lengkap fungsi easing GSAP beserta deskripsinya. type

<img src="https://api.iconify.design/lucide:flask-conical.svg?color=%23ffffff" width="22" height="22" align="center" /> Pengujian & Verifikasi (Test Suite)

Server ini dilengkapi dengan test suite otomatis untuk memverifikasi keabsahan sintaksis dan tool handler.

Jalankan perintah pengujian:

npm test

Output Pengujian:

📊 TEST SUMMARY
✅ Tools: 10/10
✅ Helpers: 12/12
✅ Imports: OK
🎉 ALL TESTS PASSED! Server ready to use.

<img src="https://api.iconify.design/lucide:file-text.svg?color=%23ffffff" width="22" height="22" align="center" /> Lisensi

MIT License - Bebas digunakan dan dikembangkan untuk proyek komersial maupun non-komersial.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选