npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

spine-mcp-server

v0.1.1

Published

AI-driven Spine 3.8.75 animation workflow server - 55 MCP tools for Trae, Cursor, Claude Desktop, Codex, Windsurf, Cline and any MCP-compatible AI client

Readme

🦴 Spine MCP Server

中文 EN

AI 驱动的 Spine 3.8.75 动画工作流服务 · 供 Trae / Cursor / Claude Desktop / Codex / Windsurf / Cline 等 AI 客户端直接调用 Spine 编辑器能力

Node Spine License


📖 简介

Spine MCP Server 是一个基于 MCP(Model Context Protocol) 的服务器,把 Spine 3.8.75 Professional 的编辑器能力封装成 55 个工具,让 AI 可以直接:

  • 读取 Spine 项目(骨骼 / 插槽 / 皮肤 / 动画 / 事件 / 约束)
  • 修改动画关键帧(旋转 / 位移 / 缩放 / 切变 / 曲线)
  • 编辑骨架结构(增删骨骼 / 插槽 / 附件 / 皮肤 / 换装)
  • 操作约束(IK / 变换 / 路径)与网格(FFD 变形)
  • 图集拆分(立绘拆部件)、自动绑骨、图集重打包
  • JS 运行时渲染动画预览帧
  • 通过 Cocos Creator 扩展面板一键配置 / 启停服务 / 生成 AI 客户端配置

✨ 特性

| 能力 | 说明 | |---|---| | 55 个 MCP 工具 | 覆盖 Spine 全部功能域(信息/骨架/附件/约束/动画/图集/项目) | | Round-Trip 修改 | 导出 JSON → 修改 → 原地导入,自动备份.bak) | | 版本兼容 | 锁定 Spine 3.8.75,非 3.8.75 友好提示 | | Cocos 扩展 | Cocos Creator 3.8+ 可视化面板 + .ccx 打包 | | 安装向导 | 一键检测环境 + 写入配置 |

🔧 环境要求

  • Node.js ≥ 20(开发机实测 v22)
  • Spine.com(3.8.75 Professional,位于 D:\cocos\SpinePro3.8.75\Spine.com
  • 可选:Cocos Creator 3.8+(扩展面板)

🚀 快速开始

# 1. 安装依赖 + 构建
npm install
npm run build

# 2. 配置 Spine 路径(或直接运行安装向导)
npm run installer        # 自动检测 Spine/Cocos/Node 并写 .env

# 3. 验证
node dist/index.js check
node dist/index.js info "D:/cocos/SpinePro3.8.75/examples/hero/hero-pro.spine"

🤖 配置到 AI 客户端

把以下配置加入 Trae / Cursor / Claude Desktop 的 MCP 服务器配置:

{
  "mcpServers": {
    "spine-mcp": {
      "command": "node",
      "args": ["D:/cocos/spine-mcp-server/dist/index.js", "mcp"],
      "env": { "SPINE_EXE": "D:/cocos/SpinePro3.8.75/Spine.com" }
    }
  }
}

⚠️ 若 MCP 连接后显示 "No tools yet",请重启 AI 客户端让服务器进程重新拉起。

🧩 工具一览(55 个)

| 分类 | 工具 | |---|---| | 信息查询 (8) | get_project_info · inspect_json · list_animations · list_events · list_constraints · get_attachments · get_animation_detail · render_preview | | 骨架结构 (9) | control_bone · add_bone · delete_bone · set_bone · add_slot · delete_slot · set_slot · rename_slot · batch_rename | | 附件与皮肤 (6) | set_attachment · add_attachment · delete_attachment · set_attachment_transform · edit_mesh · set_skin | | 约束 (9) | add/set/delete × {ik, transform, path} | | 动画 (11) | add_simple_animation · duplicate/delete/rename_animation · set_animation_settings · control_slot · control_constraint · add_event_keyframe · set_draw_order · set_curve · export_video | | 图集与项目 (9) | split_atlas · repack_atlas · import_image · export · import · clean · create_project · scale_project · rollback | | Cocos 工具链 (3) | list_cocos_assets · validate_references · build_skeleton |

🎮 Cocos 扩展

cocos-extension/ 提供 Cocos Creator 3.8+ 面板:

  • 安装:扩展管理器 → 本地扩展 → 添加 cocos-extension 目录(或 npm run package:ccx 生成 .ccx 导入)
  • 功能:启动 MCP 服务 / 扫描项目 / 生成 AI 配置 / 服务状态
  • 详见 docs/cocos-extension-README.md

🧪 测试

npm run test:all     # 全部套件一键跑(单元 + 集成 + MCP 协议 + 扩展桥接)
npm run test:unit    # 单元测试(node:test)

测试矩阵:单元 20/20 · Phase 3 37/37 · Phase 4 45/45 · Phase 5 13/13 · MCP 协议 10/10(55 工具)· 扩展桥接 12/12

📚 文档

🗂 项目结构

├── src/                  # 源码(TS)
│   ├── server.ts         # MCP stdio 服务器
│   ├── spine/            # 核心:cli-executor / json-handler / export / import / render / split ...
│   ├── tools/            # 55 个工具(registry.ts 注册)
│   └── utils/            # 配置 / 日志 / 错误码 / 文件工具
├── cocos-extension/      # Cocos Creator 扩展(面板)
├── scripts/              # 安装向导 / .ccx 打包
├── tests/                # 全部测试套件
└── docs/                 # 文档

💰 购买支持

Swarms Marketplace 购买支持本项目

📄 License

MIT