@snopek-games/godai-mcp 0.1.0
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/LICENSE.txt +20 -0
- package/README.md +51 -0
- package/godai-mcp.js +44 -0
- package/package.json +33 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2025 David Snopek
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
20
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Godai MCP
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
An MCP server that lets AI assistants (like Claude) control the
|
|
5
|
+
[Godot Engine](https://godotengine.org/) editor: creating and editing scenes,
|
|
6
|
+
writing scripts, running projects, and more.
|
|
7
|
+
|
|
8
|
+
This package is a small launcher that runs the prebuilt `godai-mcp` binary for
|
|
9
|
+
your platform, which is installed automatically as an optional dependency.
|
|
10
|
+
|
|
11
|
+
Usage
|
|
12
|
+
-----
|
|
13
|
+
|
|
14
|
+
With Claude Code:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
claude mcp add godai -- npx -y @snopek-games/godai-mcp
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or in any MCP client that uses a JSON configuration file (Claude Desktop,
|
|
21
|
+
Cursor, etc):
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"godai": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "@snopek-games/godai-mcp"]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Run `npx -y @snopek-games/godai-mcp --help` to see the available options (path to the Godot
|
|
35
|
+
executable, base directory for your projects, etc).
|
|
36
|
+
|
|
37
|
+
Supported platforms
|
|
38
|
+
-------------------
|
|
39
|
+
|
|
40
|
+
- Linux x86_64 and arm64
|
|
41
|
+
- Windows x86_64 and arm64
|
|
42
|
+
- macOS arm64 (Apple Silicon)
|
|
43
|
+
|
|
44
|
+
Prebuilt binaries can also be downloaded directly from the
|
|
45
|
+
[releases page](https://gitlab.com/snopek-games/godai/-/releases) if you'd
|
|
46
|
+
rather not use npm.
|
|
47
|
+
|
|
48
|
+
License
|
|
49
|
+
-------
|
|
50
|
+
|
|
51
|
+
MIT
|
package/godai-mcp.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
// Launcher for the godai-mcp binary. The actual binary ships in one of the
|
|
5
|
+
// platform-specific packages listed in optionalDependencies; npm only
|
|
6
|
+
// installs the one whose "os"/"cpu" fields match the current system.
|
|
7
|
+
|
|
8
|
+
const { spawnSync } = require('node:child_process');
|
|
9
|
+
const path = require('node:path');
|
|
10
|
+
|
|
11
|
+
function fail(message) {
|
|
12
|
+
console.error(`godai-mcp: ${message}`);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const packageName = `@snopek-games/godai-mcp-${process.platform}-${process.arch}`;
|
|
17
|
+
const supported = Object.keys(require('./package.json').optionalDependencies || {});
|
|
18
|
+
|
|
19
|
+
if (!supported.includes(packageName)) {
|
|
20
|
+
fail(
|
|
21
|
+
`unsupported platform "${process.platform}-${process.arch}".\n` +
|
|
22
|
+
`Supported platforms: ${supported.map((name) => name.replace(/^.*\/godai-mcp-/, '')).join(', ')}\n` +
|
|
23
|
+
'Prebuilt binaries for other platforms are available at https://gitlab.com/snopek-games/godai/-/releases'
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const binaryName = process.platform === 'win32' ? 'godai-mcp.exe' : 'godai-mcp';
|
|
28
|
+
|
|
29
|
+
let binaryPath;
|
|
30
|
+
try {
|
|
31
|
+
binaryPath = path.join(path.dirname(require.resolve(`${packageName}/package.json`)), binaryName);
|
|
32
|
+
} catch {
|
|
33
|
+
fail(
|
|
34
|
+
`the "${packageName}" package with the binary for your platform is not installed.\n` +
|
|
35
|
+
'It should have been installed automatically as an optional dependency. If you installed\n' +
|
|
36
|
+
'with --no-optional or --omit=optional, reinstall without that flag.'
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const result = spawnSync(binaryPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
41
|
+
if (result.error) {
|
|
42
|
+
fail(`failed to run ${binaryPath}: ${result.error.message}`);
|
|
43
|
+
}
|
|
44
|
+
process.exit(result.status === null ? 1 : result.status);
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@snopek-games/godai-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for integrating AI assistants with the Godot Engine",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://gitlab.com/snopek-games/godai",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://gitlab.com/snopek-games/godai"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"godot",
|
|
13
|
+
"mcp",
|
|
14
|
+
"gamedev",
|
|
15
|
+
"game development"
|
|
16
|
+
],
|
|
17
|
+
"bin": {
|
|
18
|
+
"godai-mcp": "godai-mcp.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"godai-mcp.js"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"optionalDependencies": {
|
|
27
|
+
"@snopek-games/godai-mcp-linux-x64": "0.1.0",
|
|
28
|
+
"@snopek-games/godai-mcp-linux-arm64": "0.1.0",
|
|
29
|
+
"@snopek-games/godai-mcp-darwin-arm64": "0.1.0",
|
|
30
|
+
"@snopek-games/godai-mcp-win32-x64": "0.1.0",
|
|
31
|
+
"@snopek-games/godai-mcp-win32-arm64": "0.1.0"
|
|
32
|
+
}
|
|
33
|
+
}
|