@joinquest/mcp-integration 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ stdio MCP server for **game developers** integrating with JoinQuest. Exposes dev
|
|
|
16
16
|
"joinquest-integration": {
|
|
17
17
|
"type": "stdio",
|
|
18
18
|
"command": "npx",
|
|
19
|
-
"args": ["
|
|
19
|
+
"args": ["--yes", "--package", "@joinquest/mcp-integration", "joinquest-integration-mcp-cursor"],
|
|
20
20
|
"env": {
|
|
21
21
|
"JOINQUEST_API_KEY": "lq_dev_..."
|
|
22
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from 'node:child_process'
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
import { dirname, join } from 'node:path'
|
|
6
|
+
|
|
7
|
+
// Cursor injects ELECTRON_RUN_AS_NODE and a bundled node on PATH, which breaks stdio MCP.
|
|
8
|
+
delete process.env.ELECTRON_RUN_AS_NODE
|
|
9
|
+
|
|
10
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
11
|
+
const entry = join(root, 'src/index.js')
|
|
12
|
+
const node = process.env.JOINQUEST_NODE || process.execPath
|
|
13
|
+
|
|
14
|
+
const child = spawn(node, [entry], { stdio: 'inherit', env: process.env })
|
|
15
|
+
child.on('exit', (code, signal) => {
|
|
16
|
+
if (signal) {
|
|
17
|
+
process.kill(process.pid, signal)
|
|
18
|
+
return
|
|
19
|
+
}
|
|
20
|
+
process.exit(code ?? 1)
|
|
21
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joinquest/mcp-integration",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "JoinQuest integration MCP server for game developer agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"bin": {
|
|
33
|
+
"mcp-integration": "src/index.js",
|
|
33
34
|
"joinquest-integration-mcp": "src/index.js",
|
|
34
|
-
"joinquest-integration-mcp-cursor": "bin/joinquest-integration-mcp-cursor"
|
|
35
|
+
"joinquest-integration-mcp-cursor": "bin/joinquest-integration-mcp-cursor.js"
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|
|
37
38
|
"start": "node src/index.js",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Cursor injects ELECTRON_RUN_AS_NODE and a bundled node on PATH, which breaks stdio MCP.
|
|
3
|
-
set -eu
|
|
4
|
-
|
|
5
|
-
unset ELECTRON_RUN_AS_NODE
|
|
6
|
-
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:${PATH:-}"
|
|
7
|
-
|
|
8
|
-
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
9
|
-
NODE="${JOINQUEST_NODE:-$(command -v node)}"
|
|
10
|
-
|
|
11
|
-
exec "$NODE" "$DIR/../src/index.js"
|