Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

chore: add MCP server publish workflow for GitHub Packages

esengine46262c49c6fa
diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml
new file mode 100644
index 000000000..70caa77f8
--- /dev/null
+++ b/.github/workflows/publish-mcp.yml
@@ -0,0 +1,38 @@
+name: Publish MCP Server
+
+on:
+ push:
+ tags:
+ - 'mcp-v*'
+ workflow_dispatch:
+
+jobs:
+ publish:
+ name: Publish to GitHub Packages
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+ registry-url: 'https://npm.pkg.github.com'
+
+ - name: Install dependencies
+ working-directory: tools/mcp-server
+ run: npm install
+
+ - name: Build
+ working-directory: tools/mcp-server
+ run: npm run build
+
+ - name: Publish
+ working-directory: tools/mcp-server
+ run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/tools/mcp-server/package.json b/tools/mcp-server/package.json
index 35d58a09b..acb133adf 100644
--- a/tools/mcp-server/package.json
+++ b/tools/mcp-server/package.json
@@ -1,12 +1,27 @@
{
"name": "@esengine/mcp-server",
"version": "0.1.0",
- "private": true,
"type": "module",
+ "description": "MCP server for AI-assisted editing in the Estella game engine editor",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/esengine/estella.git",
+ "directory": "tools/mcp-server"
+ },
+ "publishConfig": {
+ "registry": "https://npm.pkg.github.com"
+ },
"main": "dist/index.js",
+ "bin": {
+ "estella-mcp-server": "dist/index.js"
+ },
+ "files": [
+ "dist"
+ ],
"scripts": {
"build": "tsc",
- "dev": "tsc --watch"
+ "dev": "tsc --watch",
+ "prepublishOnly": "tsc"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.1",