@baixfeng/godot-mcp-cli 1.0.11
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 +187 -0
- package/addons/godot_mcp/command_handler.gd +161 -0
- package/addons/godot_mcp/command_handler.gd.uid +1 -0
- package/addons/godot_mcp/commands/base_command_processor.gd +221 -0
- package/addons/godot_mcp/commands/base_command_processor.gd.uid +1 -0
- package/addons/godot_mcp/commands/debugger_commands.gd +221 -0
- package/addons/godot_mcp/commands/debugger_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/editor_commands.gd +237 -0
- package/addons/godot_mcp/commands/editor_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/editor_script_commands.gd +365 -0
- package/addons/godot_mcp/commands/editor_script_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/input_commands.gd +337 -0
- package/addons/godot_mcp/commands/input_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/node_commands.gd +222 -0
- package/addons/godot_mcp/commands/node_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/project_commands.gd +298 -0
- package/addons/godot_mcp/commands/project_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/scene_commands.gd +337 -0
- package/addons/godot_mcp/commands/scene_commands.gd.uid +1 -0
- package/addons/godot_mcp/commands/script_commands.gd +349 -0
- package/addons/godot_mcp/commands/script_commands.gd.uid +1 -0
- package/addons/godot_mcp/mcp_asset_commands.gd +153 -0
- package/addons/godot_mcp/mcp_asset_commands.gd.uid +1 -0
- package/addons/godot_mcp/mcp_debug_output_publisher.gd +1669 -0
- package/addons/godot_mcp/mcp_debug_output_publisher.gd.uid +1 -0
- package/addons/godot_mcp/mcp_debugger_bridge.gd +1455 -0
- package/addons/godot_mcp/mcp_debugger_bridge.gd.uid +1 -0
- package/addons/godot_mcp/mcp_enhanced_commands.gd +1083 -0
- package/addons/godot_mcp/mcp_enhanced_commands.gd.uid +1 -0
- package/addons/godot_mcp/mcp_input_handler.gd +545 -0
- package/addons/godot_mcp/mcp_input_handler.gd.uid +1 -0
- package/addons/godot_mcp/mcp_runtime_debugger_bridge.gd +464 -0
- package/addons/godot_mcp/mcp_runtime_debugger_bridge.gd.uid +1 -0
- package/addons/godot_mcp/mcp_script_resource_commands.gd +165 -0
- package/addons/godot_mcp/mcp_script_resource_commands.gd.uid +1 -0
- package/addons/godot_mcp/mcp_server.gd +260 -0
- package/addons/godot_mcp/mcp_server.gd.uid +1 -0
- package/addons/godot_mcp/plugin.cfg +7 -0
- package/addons/godot_mcp/runtime_debugger.gd +81 -0
- package/addons/godot_mcp/runtime_debugger.gd.uid +1 -0
- package/addons/godot_mcp/ui/mcp_panel.gd +94 -0
- package/addons/godot_mcp/ui/mcp_panel.gd.uid +1 -0
- package/addons/godot_mcp/ui/mcp_panel.tscn +96 -0
- package/addons/godot_mcp/utils/node_utils.gd +82 -0
- package/addons/godot_mcp/utils/node_utils.gd.uid +1 -0
- package/addons/godot_mcp/utils/resource_utils.gd +81 -0
- package/addons/godot_mcp/utils/resource_utils.gd.uid +1 -0
- package/addons/godot_mcp/utils/script_utils.gd +114 -0
- package/addons/godot_mcp/utils/script_utils.gd.uid +1 -0
- package/addons/godot_mcp/websocket_server.gd +197 -0
- package/addons/godot_mcp/websocket_server.gd.uid +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +561 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +156 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/asset_resources.d.ts +29 -0
- package/dist/resources/asset_resources.js +145 -0
- package/dist/resources/asset_resources.js.map +1 -0
- package/dist/resources/debug_resources.d.ts +11 -0
- package/dist/resources/debug_resources.js +106 -0
- package/dist/resources/debug_resources.js.map +1 -0
- package/dist/resources/debugger_resources.d.ts +62 -0
- package/dist/resources/debugger_resources.js +201 -0
- package/dist/resources/debugger_resources.js.map +1 -0
- package/dist/resources/editor_resources.d.ts +47 -0
- package/dist/resources/editor_resources.js +155 -0
- package/dist/resources/editor_resources.js.map +1 -0
- package/dist/resources/project_resources.d.ts +33 -0
- package/dist/resources/project_resources.js +137 -0
- package/dist/resources/project_resources.js.map +1 -0
- package/dist/resources/scene_resources.d.ts +33 -0
- package/dist/resources/scene_resources.js +160 -0
- package/dist/resources/scene_resources.js.map +1 -0
- package/dist/resources/script_resources.d.ts +51 -0
- package/dist/resources/script_resources.js +203 -0
- package/dist/resources/script_resources.js.map +1 -0
- package/dist/tools/asset_tools.d.ts +5 -0
- package/dist/tools/asset_tools.js +125 -0
- package/dist/tools/asset_tools.js.map +1 -0
- package/dist/tools/debugger_tools.d.ts +2 -0
- package/dist/tools/debugger_tools.js +342 -0
- package/dist/tools/debugger_tools.js.map +1 -0
- package/dist/tools/editor_tools.d.ts +2 -0
- package/dist/tools/editor_tools.js +165 -0
- package/dist/tools/editor_tools.js.map +1 -0
- package/dist/tools/enhanced_tools.d.ts +5 -0
- package/dist/tools/enhanced_tools.js +706 -0
- package/dist/tools/enhanced_tools.js.map +1 -0
- package/dist/tools/input_tools.d.ts +2 -0
- package/dist/tools/input_tools.js +408 -0
- package/dist/tools/input_tools.js.map +1 -0
- package/dist/tools/node_tools.d.ts +5 -0
- package/dist/tools/node_tools.js +217 -0
- package/dist/tools/node_tools.js.map +1 -0
- package/dist/tools/project_tools.d.ts +5 -0
- package/dist/tools/project_tools.js +162 -0
- package/dist/tools/project_tools.js.map +1 -0
- package/dist/tools/scene_tools.d.ts +5 -0
- package/dist/tools/scene_tools.js +260 -0
- package/dist/tools/scene_tools.js.map +1 -0
- package/dist/tools/script_resource_tools.d.ts +5 -0
- package/dist/tools/script_resource_tools.js +5 -0
- package/dist/tools/script_resource_tools.js.map +1 -0
- package/dist/tools/script_tools.d.ts +5 -0
- package/dist/tools/script_tools.js +154 -0
- package/dist/tools/script_tools.js.map +1 -0
- package/dist/utils/godot_connection.d.ts +30 -0
- package/dist/utils/godot_connection.js +285 -0
- package/dist/utils/godot_connection.js.map +1 -0
- package/dist/utils/types.d.ts +16 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.js.map +1 -0
- package/package.json +58 -0
package/dist/cli.js
ADDED
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
39
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
40
|
+
if (ar || !(i in from)) {
|
|
41
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
42
|
+
ar[i] = from[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
|
+
};
|
|
47
|
+
import path from 'node:path';
|
|
48
|
+
import process from 'node:process';
|
|
49
|
+
import { fileURLToPath } from 'node:url';
|
|
50
|
+
import { createRequire } from 'node:module';
|
|
51
|
+
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
52
|
+
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
53
|
+
import { McpError } from '@modelcontextprotocol/sdk/types.js';
|
|
54
|
+
import fs from 'node:fs/promises';
|
|
55
|
+
import { constants as fsConstants } from 'node:fs';
|
|
56
|
+
var require = createRequire(import.meta.url);
|
|
57
|
+
var pkg = require('../package.json');
|
|
58
|
+
var DEFAULT_CLIENT_INFO = { name: pkg.name, version: pkg.version };
|
|
59
|
+
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
60
|
+
var DEFAULT_SERVER_ENTRY = path.join(__dirname, 'index.js');
|
|
61
|
+
function toToolSummary(tool) {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
var name = typeof tool.name === 'string'
|
|
64
|
+
? tool.name
|
|
65
|
+
: tool.name !== undefined
|
|
66
|
+
? String(tool.name)
|
|
67
|
+
: 'unknown';
|
|
68
|
+
var rawProps = typeof tool.inputSchema === 'object'
|
|
69
|
+
? (_a = tool.inputSchema) === null || _a === void 0 ? void 0 : _a.properties
|
|
70
|
+
: undefined;
|
|
71
|
+
var properties = rawProps && typeof rawProps === 'object'
|
|
72
|
+
? rawProps
|
|
73
|
+
: undefined;
|
|
74
|
+
var rawRequired = typeof tool.inputSchema === 'object'
|
|
75
|
+
? (_b = tool.inputSchema) === null || _b === void 0 ? void 0 : _b.required
|
|
76
|
+
: undefined;
|
|
77
|
+
var required = Array.isArray(rawRequired)
|
|
78
|
+
? rawRequired.filter(function (value) { return typeof value === 'string'; })
|
|
79
|
+
: undefined;
|
|
80
|
+
return {
|
|
81
|
+
name: name,
|
|
82
|
+
description: typeof tool.description === 'string' ? tool.description : undefined,
|
|
83
|
+
inputSchema: properties || required ? { properties: properties, required: required } : undefined,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function kebabToSnake(value) {
|
|
87
|
+
return value.replace(/-/g, '_');
|
|
88
|
+
}
|
|
89
|
+
function parseValue(value) {
|
|
90
|
+
if (value === 'true')
|
|
91
|
+
return true;
|
|
92
|
+
if (value === 'false')
|
|
93
|
+
return false;
|
|
94
|
+
if (!Number.isNaN(Number(value)) && value.trim() !== '') {
|
|
95
|
+
return Number(value);
|
|
96
|
+
}
|
|
97
|
+
try {
|
|
98
|
+
return JSON.parse(value);
|
|
99
|
+
}
|
|
100
|
+
catch (_a) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function parseArgs(argv) {
|
|
105
|
+
var args = __spreadArray([], argv, true);
|
|
106
|
+
if (args.length === 0) {
|
|
107
|
+
printUsage();
|
|
108
|
+
process.exit(1);
|
|
109
|
+
}
|
|
110
|
+
var action = 'call';
|
|
111
|
+
var toolName;
|
|
112
|
+
var params = {};
|
|
113
|
+
var paramsJson;
|
|
114
|
+
var raw = false;
|
|
115
|
+
var quiet = true; // default to no progress
|
|
116
|
+
var verbose = false;
|
|
117
|
+
var timeoutMs;
|
|
118
|
+
var serverCommand = process.execPath;
|
|
119
|
+
var serverArgs = [DEFAULT_SERVER_ENTRY];
|
|
120
|
+
var installTarget;
|
|
121
|
+
// Command detection
|
|
122
|
+
if (args[0] === '--list-tools') {
|
|
123
|
+
action = 'list';
|
|
124
|
+
args.shift();
|
|
125
|
+
}
|
|
126
|
+
else if (args[0] === 'install-addon') {
|
|
127
|
+
action = 'install';
|
|
128
|
+
if (!args[1]) {
|
|
129
|
+
console.error('Missing target path for install-addon');
|
|
130
|
+
process.exit(1);
|
|
131
|
+
}
|
|
132
|
+
installTarget = args[1];
|
|
133
|
+
args.splice(0, 2);
|
|
134
|
+
}
|
|
135
|
+
else if (args[0] === '--help') {
|
|
136
|
+
if (!args[1]) {
|
|
137
|
+
console.error('Missing tool name for --help');
|
|
138
|
+
process.exit(1);
|
|
139
|
+
}
|
|
140
|
+
action = 'help';
|
|
141
|
+
toolName = args[1];
|
|
142
|
+
args.splice(0, 2);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
toolName = args.shift();
|
|
146
|
+
if (!toolName) {
|
|
147
|
+
console.error('Tool name is required');
|
|
148
|
+
process.exit(1);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
for (var i = 0; i < args.length; i += 1) {
|
|
152
|
+
var current = args[i];
|
|
153
|
+
if (!current.startsWith('--')) {
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
var key = current.slice(2);
|
|
157
|
+
var next = args[i + 1];
|
|
158
|
+
switch (key) {
|
|
159
|
+
case 'raw':
|
|
160
|
+
raw = true;
|
|
161
|
+
break;
|
|
162
|
+
case 'verbose':
|
|
163
|
+
verbose = true;
|
|
164
|
+
quiet = false; // verbose implies progress
|
|
165
|
+
break;
|
|
166
|
+
case 'timeout':
|
|
167
|
+
if (next === undefined) {
|
|
168
|
+
console.error('--timeout requires a value (ms)');
|
|
169
|
+
process.exit(1);
|
|
170
|
+
}
|
|
171
|
+
timeoutMs = Number(next);
|
|
172
|
+
i += 1;
|
|
173
|
+
break;
|
|
174
|
+
case 'params-json':
|
|
175
|
+
if (next === undefined) {
|
|
176
|
+
console.error('--params-json requires a JSON object');
|
|
177
|
+
process.exit(1);
|
|
178
|
+
}
|
|
179
|
+
try {
|
|
180
|
+
var parsedJson = JSON.parse(next);
|
|
181
|
+
if (!parsedJson || typeof parsedJson !== 'object' || Array.isArray(parsedJson)) {
|
|
182
|
+
console.error('--params-json must be a JSON object');
|
|
183
|
+
process.exit(1);
|
|
184
|
+
}
|
|
185
|
+
paramsJson = parsedJson;
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
console.error("Invalid JSON for --params-json: ".concat(error.message));
|
|
189
|
+
process.exit(1);
|
|
190
|
+
}
|
|
191
|
+
i += 1;
|
|
192
|
+
break;
|
|
193
|
+
case 'server-cmd':
|
|
194
|
+
if (next === undefined) {
|
|
195
|
+
console.error('--server-cmd requires a value');
|
|
196
|
+
process.exit(1);
|
|
197
|
+
}
|
|
198
|
+
serverCommand = next;
|
|
199
|
+
i += 1;
|
|
200
|
+
break;
|
|
201
|
+
case 'server-args':
|
|
202
|
+
if (next === undefined) {
|
|
203
|
+
console.error('--server-args requires a value');
|
|
204
|
+
process.exit(1);
|
|
205
|
+
}
|
|
206
|
+
try {
|
|
207
|
+
var parsedArgs = JSON.parse(next);
|
|
208
|
+
if (Array.isArray(parsedArgs)) {
|
|
209
|
+
serverArgs = parsedArgs.map(function (arg) { return String(arg); });
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
serverArgs = [String(parsedArgs)];
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
catch (_a) {
|
|
216
|
+
serverArgs = [next];
|
|
217
|
+
}
|
|
218
|
+
i += 1;
|
|
219
|
+
break;
|
|
220
|
+
default: {
|
|
221
|
+
// Parameter flag
|
|
222
|
+
if (next === undefined || next.startsWith('--')) {
|
|
223
|
+
params[kebabToSnake(key)] = true;
|
|
224
|
+
i += 0;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
params[kebabToSnake(key)] = parseValue(next);
|
|
228
|
+
i += 1;
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
action: action,
|
|
236
|
+
toolName: toolName,
|
|
237
|
+
raw: raw,
|
|
238
|
+
verbose: verbose,
|
|
239
|
+
installTarget: installTarget,
|
|
240
|
+
params: params,
|
|
241
|
+
paramsJson: paramsJson,
|
|
242
|
+
timeoutMs: timeoutMs,
|
|
243
|
+
serverCommand: serverCommand,
|
|
244
|
+
serverArgs: serverArgs,
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function pathExists(target) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
var _a;
|
|
250
|
+
return __generator(this, function (_b) {
|
|
251
|
+
switch (_b.label) {
|
|
252
|
+
case 0:
|
|
253
|
+
_b.trys.push([0, 2, , 3]);
|
|
254
|
+
return [4 /*yield*/, fs.access(target, fsConstants.F_OK)];
|
|
255
|
+
case 1:
|
|
256
|
+
_b.sent();
|
|
257
|
+
return [2 /*return*/, true];
|
|
258
|
+
case 2:
|
|
259
|
+
_a = _b.sent();
|
|
260
|
+
return [2 /*return*/, false];
|
|
261
|
+
case 3: return [2 /*return*/];
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
function copyAddon(targetProjectPath) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
268
|
+
var projectPath, projectFile, addonCandidates, sourceAddon, _i, addonCandidates_1, candidate, targetAddonDir;
|
|
269
|
+
return __generator(this, function (_a) {
|
|
270
|
+
switch (_a.label) {
|
|
271
|
+
case 0:
|
|
272
|
+
projectPath = path.resolve(targetProjectPath);
|
|
273
|
+
projectFile = path.join(projectPath, 'project.godot');
|
|
274
|
+
return [4 /*yield*/, pathExists(projectFile)];
|
|
275
|
+
case 1:
|
|
276
|
+
if (!(_a.sent())) {
|
|
277
|
+
throw new Error("Not a Godot project (project.godot not found at ".concat(projectPath, ")"));
|
|
278
|
+
}
|
|
279
|
+
addonCandidates = [
|
|
280
|
+
path.resolve(__dirname, '..', 'addons', 'godot_mcp'),
|
|
281
|
+
path.resolve(__dirname, '..', '..', 'addons', 'godot_mcp'),
|
|
282
|
+
];
|
|
283
|
+
_i = 0, addonCandidates_1 = addonCandidates;
|
|
284
|
+
_a.label = 2;
|
|
285
|
+
case 2:
|
|
286
|
+
if (!(_i < addonCandidates_1.length)) return [3 /*break*/, 5];
|
|
287
|
+
candidate = addonCandidates_1[_i];
|
|
288
|
+
return [4 /*yield*/, pathExists(candidate)];
|
|
289
|
+
case 3:
|
|
290
|
+
if (_a.sent()) {
|
|
291
|
+
sourceAddon = candidate;
|
|
292
|
+
return [3 /*break*/, 5];
|
|
293
|
+
}
|
|
294
|
+
_a.label = 4;
|
|
295
|
+
case 4:
|
|
296
|
+
_i++;
|
|
297
|
+
return [3 /*break*/, 2];
|
|
298
|
+
case 5:
|
|
299
|
+
if (!sourceAddon) {
|
|
300
|
+
throw new Error("Source addon not found. Tried: ".concat(addonCandidates.join(', ')));
|
|
301
|
+
}
|
|
302
|
+
targetAddonDir = path.join(projectPath, 'addons', 'godot_mcp');
|
|
303
|
+
return [4 /*yield*/, fs.mkdir(path.dirname(targetAddonDir), { recursive: true })];
|
|
304
|
+
case 6:
|
|
305
|
+
_a.sent();
|
|
306
|
+
return [4 /*yield*/, pathExists(targetAddonDir)];
|
|
307
|
+
case 7:
|
|
308
|
+
if (!_a.sent()) return [3 /*break*/, 9];
|
|
309
|
+
return [4 /*yield*/, fs.rm(targetAddonDir, { recursive: true, force: true })];
|
|
310
|
+
case 8:
|
|
311
|
+
_a.sent();
|
|
312
|
+
_a.label = 9;
|
|
313
|
+
case 9: return [4 /*yield*/, fs.cp(sourceAddon, targetAddonDir, { recursive: true })];
|
|
314
|
+
case 10:
|
|
315
|
+
_a.sent();
|
|
316
|
+
console.log("Installed addon to ".concat(targetAddonDir));
|
|
317
|
+
return [2 /*return*/];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function connectClient(command, args, timeoutMs, verbose) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
324
|
+
var transport, client, timedOut, timeout, cleanup;
|
|
325
|
+
var _this = this;
|
|
326
|
+
return __generator(this, function (_a) {
|
|
327
|
+
switch (_a.label) {
|
|
328
|
+
case 0:
|
|
329
|
+
transport = new StdioClientTransport({
|
|
330
|
+
command: command,
|
|
331
|
+
args: args,
|
|
332
|
+
stderr: verbose ? 'inherit' : 'pipe',
|
|
333
|
+
env: process.env,
|
|
334
|
+
});
|
|
335
|
+
client = new Client(DEFAULT_CLIENT_INFO, {
|
|
336
|
+
capabilities: {},
|
|
337
|
+
});
|
|
338
|
+
timedOut = false;
|
|
339
|
+
timeout = timeoutMs
|
|
340
|
+
? setTimeout(function () {
|
|
341
|
+
timedOut = true;
|
|
342
|
+
void transport.close();
|
|
343
|
+
}, timeoutMs)
|
|
344
|
+
: undefined;
|
|
345
|
+
return [4 /*yield*/, client.connect(transport)];
|
|
346
|
+
case 1:
|
|
347
|
+
_a.sent();
|
|
348
|
+
cleanup = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
349
|
+
return __generator(this, function (_a) {
|
|
350
|
+
switch (_a.label) {
|
|
351
|
+
case 0:
|
|
352
|
+
if (timeout) {
|
|
353
|
+
clearTimeout(timeout);
|
|
354
|
+
}
|
|
355
|
+
return [4 /*yield*/, client.close()];
|
|
356
|
+
case 1:
|
|
357
|
+
_a.sent();
|
|
358
|
+
return [4 /*yield*/, transport.close()];
|
|
359
|
+
case 2:
|
|
360
|
+
_a.sent();
|
|
361
|
+
return [2 /*return*/];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}); };
|
|
365
|
+
if (timedOut) {
|
|
366
|
+
throw new Error('Connection to MCP server timed out');
|
|
367
|
+
}
|
|
368
|
+
return [2 /*return*/, { client: client, cleanup: cleanup }];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
function printUsage() {
|
|
374
|
+
console.error('Usage:');
|
|
375
|
+
console.error(' godot-mcp --list-tools');
|
|
376
|
+
console.error(' godot-mcp --help <tool>');
|
|
377
|
+
console.error(' godot-mcp <tool> [--flag value] [--params-json JSON]');
|
|
378
|
+
console.error(' godot-mcp install-addon <path-to-godot-project>');
|
|
379
|
+
console.error('');
|
|
380
|
+
console.error('Common flags:');
|
|
381
|
+
console.error(' --raw Print raw JSON responses');
|
|
382
|
+
console.error(' --verbose Show progress logs and server stderr diagnostics');
|
|
383
|
+
console.error(' --timeout <ms> Timeout for connecting and running the tool');
|
|
384
|
+
console.error(' --server-cmd Override server executable (default: node)');
|
|
385
|
+
console.error(' --server-args Override server args (default: dist/index.js)');
|
|
386
|
+
}
|
|
387
|
+
var color = {
|
|
388
|
+
green: function (text) { return (process.stdout.isTTY ? "\u001B[32m".concat(text, "\u001B[0m") : text); },
|
|
389
|
+
cyan: function (text) { return (process.stdout.isTTY ? "\u001B[36m".concat(text, "\u001B[0m") : text); },
|
|
390
|
+
dim: function (text) { return (process.stdout.isTTY ? "\u001B[2m".concat(text, "\u001B[0m") : text); },
|
|
391
|
+
yellow: function (text) { return (process.stdout.isTTY ? "\u001B[33m".concat(text, "\u001B[0m") : text); },
|
|
392
|
+
};
|
|
393
|
+
function printToolList(tools) {
|
|
394
|
+
if (tools.length === 0) {
|
|
395
|
+
console.log('No tools available');
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
var nameWidth = Math.min(Math.max.apply(Math, __spreadArray(__spreadArray([], tools.map(function (t) { return t.name.length; }), false), ['Tool'.length], false)) + 2, 40);
|
|
399
|
+
console.log("".concat(color.cyan('Tool'.padEnd(nameWidth)), "Description"));
|
|
400
|
+
tools.forEach(function (tool) {
|
|
401
|
+
var name = tool.name.padEnd(nameWidth);
|
|
402
|
+
var desc = tool.description ? tool.description : '';
|
|
403
|
+
console.log("".concat(color.green(name)).concat(desc));
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
function printToolHelp(tool) {
|
|
407
|
+
var _a, _b;
|
|
408
|
+
console.log("Tool: ".concat(tool.name));
|
|
409
|
+
if (tool.description) {
|
|
410
|
+
console.log("Description: ".concat(tool.description));
|
|
411
|
+
}
|
|
412
|
+
var properties = (_b = (_a = tool.inputSchema) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {};
|
|
413
|
+
var keys = Object.keys(properties);
|
|
414
|
+
if (keys.length === 0) {
|
|
415
|
+
console.log('Parameters: none');
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
console.log('Parameters:');
|
|
419
|
+
keys.forEach(function (key) {
|
|
420
|
+
var _a, _b;
|
|
421
|
+
var prop = (_a = properties[key]) !== null && _a !== void 0 ? _a : {};
|
|
422
|
+
var type = (_b = prop.type) !== null && _b !== void 0 ? _b : 'unknown';
|
|
423
|
+
var desc = prop.description ? " - ".concat(prop.description) : '';
|
|
424
|
+
console.log(" --".concat(key, " (").concat(type, ")").concat(desc));
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
function printContent(result, raw) {
|
|
428
|
+
if (raw) {
|
|
429
|
+
console.log(JSON.stringify(result, null, 2));
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (typeof result === 'object' &&
|
|
433
|
+
result !== null &&
|
|
434
|
+
'content' in result) {
|
|
435
|
+
var content = result.content;
|
|
436
|
+
if (!content || content.length === 0) {
|
|
437
|
+
console.log('(no content)');
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
content.forEach(function (item) {
|
|
441
|
+
var _a, _b, _c;
|
|
442
|
+
if (item.type === 'text') {
|
|
443
|
+
console.log("- ".concat(String((_a = item.text) !== null && _a !== void 0 ? _a : '')));
|
|
444
|
+
}
|
|
445
|
+
else if (item.type === 'image') {
|
|
446
|
+
console.log("- ".concat(color.cyan('[image]'), " mime=").concat((_b = item.mimeType) !== null && _b !== void 0 ? _b : 'unknown', " (").concat((_c = item.data) === null || _c === void 0 ? void 0 : _c.length, " bytes)"));
|
|
447
|
+
}
|
|
448
|
+
else if (item.type === 'resource') {
|
|
449
|
+
console.log("- ".concat(color.cyan('[resource]'), " ").concat(JSON.stringify(item.resource)));
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
console.log(JSON.stringify(item));
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
console.log(JSON.stringify(result, null, 2));
|
|
458
|
+
}
|
|
459
|
+
function main() {
|
|
460
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
461
|
+
var parsed, error_1, err, _a, client, cleanup, tools_1, summaries_1, tools, summaries, target, argumentsPayload_1, requiredParams, missing, label, result, error_2;
|
|
462
|
+
var _b, _c, _d;
|
|
463
|
+
return __generator(this, function (_e) {
|
|
464
|
+
switch (_e.label) {
|
|
465
|
+
case 0:
|
|
466
|
+
parsed = parseArgs(process.argv.slice(2));
|
|
467
|
+
if (!(parsed.action === 'install')) return [3 /*break*/, 4];
|
|
468
|
+
_e.label = 1;
|
|
469
|
+
case 1:
|
|
470
|
+
_e.trys.push([1, 3, , 4]);
|
|
471
|
+
return [4 /*yield*/, copyAddon(parsed.installTarget)];
|
|
472
|
+
case 2:
|
|
473
|
+
_e.sent();
|
|
474
|
+
return [2 /*return*/];
|
|
475
|
+
case 3:
|
|
476
|
+
error_1 = _e.sent();
|
|
477
|
+
err = error_1;
|
|
478
|
+
console.error("Error: ".concat(err.message));
|
|
479
|
+
process.exit(1);
|
|
480
|
+
return [3 /*break*/, 4];
|
|
481
|
+
case 4: return [4 /*yield*/, connectClient(parsed.serverCommand, parsed.serverArgs, parsed.timeoutMs, parsed.verbose)];
|
|
482
|
+
case 5:
|
|
483
|
+
_a = _e.sent(), client = _a.client, cleanup = _a.cleanup;
|
|
484
|
+
_e.label = 6;
|
|
485
|
+
case 6:
|
|
486
|
+
_e.trys.push([6, 11, 12, 14]);
|
|
487
|
+
if (!(parsed.action === 'list')) return [3 /*break*/, 8];
|
|
488
|
+
return [4 /*yield*/, client.listTools()];
|
|
489
|
+
case 7:
|
|
490
|
+
tools_1 = (_e.sent()).tools;
|
|
491
|
+
summaries_1 = tools_1.map(function (tool) { return toToolSummary(tool); });
|
|
492
|
+
printToolList(summaries_1);
|
|
493
|
+
return [2 /*return*/];
|
|
494
|
+
case 8: return [4 /*yield*/, client.listTools()];
|
|
495
|
+
case 9:
|
|
496
|
+
tools = (_e.sent()).tools;
|
|
497
|
+
summaries = tools.map(function (tool) { return toToolSummary(tool); });
|
|
498
|
+
target = summaries.find(function (tool) { return tool.name === parsed.toolName; });
|
|
499
|
+
if (!target) {
|
|
500
|
+
throw new Error("Tool not found: ".concat(parsed.toolName));
|
|
501
|
+
}
|
|
502
|
+
if (parsed.action === 'help') {
|
|
503
|
+
printToolHelp(target);
|
|
504
|
+
return [2 /*return*/];
|
|
505
|
+
}
|
|
506
|
+
argumentsPayload_1 = (_b = parsed.paramsJson) !== null && _b !== void 0 ? _b : parsed.params;
|
|
507
|
+
requiredParams = (_d = (_c = target.inputSchema) === null || _c === void 0 ? void 0 : _c.required) !== null && _d !== void 0 ? _d : [];
|
|
508
|
+
if (requiredParams.length > 0) {
|
|
509
|
+
missing = requiredParams.filter(function (key) {
|
|
510
|
+
return !Object.prototype.hasOwnProperty.call(argumentsPayload_1, key) ||
|
|
511
|
+
argumentsPayload_1[key] === undefined;
|
|
512
|
+
});
|
|
513
|
+
if (missing.length > 0) {
|
|
514
|
+
label = missing.length === 1 ? 'parameter' : 'parameters';
|
|
515
|
+
throw new Error("Invalid parameters: missing required ".concat(label, ": ").concat(missing.join(', ')));
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return [4 /*yield*/, client.callTool({
|
|
519
|
+
name: parsed.toolName,
|
|
520
|
+
arguments: argumentsPayload_1,
|
|
521
|
+
}, undefined, parsed.verbose
|
|
522
|
+
? {
|
|
523
|
+
onprogress: function (progress) {
|
|
524
|
+
var progressText = progress.total !== undefined
|
|
525
|
+
? "progress ".concat(progress.progress, "/").concat(progress.total)
|
|
526
|
+
: "progress ".concat(progress.progress);
|
|
527
|
+
console.error("[progress] ".concat(parsed.toolName, ": ").concat(progressText));
|
|
528
|
+
},
|
|
529
|
+
}
|
|
530
|
+
: undefined)];
|
|
531
|
+
case 10:
|
|
532
|
+
result = _e.sent();
|
|
533
|
+
printContent(result, parsed.raw);
|
|
534
|
+
return [3 /*break*/, 14];
|
|
535
|
+
case 11:
|
|
536
|
+
error_2 = _e.sent();
|
|
537
|
+
if (error_2 instanceof McpError) {
|
|
538
|
+
console.error("MCP error: ".concat(error_2.message));
|
|
539
|
+
}
|
|
540
|
+
else if (error_2 instanceof Error) {
|
|
541
|
+
console.error("Error: ".concat(error_2.message));
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
console.error('Unknown error');
|
|
545
|
+
}
|
|
546
|
+
process.exitCode = 1;
|
|
547
|
+
return [3 /*break*/, 14];
|
|
548
|
+
case 12: return [4 /*yield*/, cleanup()];
|
|
549
|
+
case 13:
|
|
550
|
+
_e.sent();
|
|
551
|
+
return [7 /*endfinally*/];
|
|
552
|
+
case 14: return [2 /*return*/];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
main().catch(function (error) {
|
|
558
|
+
console.error('CLI failed:', error);
|
|
559
|
+
process.exit(1);
|
|
560
|
+
});
|
|
561
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AAEnD,IAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,IAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAgCvC,IAAM,mBAAmB,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;AAErE,IAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,IAAM,oBAAoB,GAAG,IAAI,CAAC,IAA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