@godot-mcp/cli 0.0.0 → 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.
Files changed (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +105 -2
  3. package/dist/bin.d.ts +3 -0
  4. package/dist/bin.d.ts.map +1 -0
  5. package/dist/bin.js +88 -0
  6. package/dist/bin.js.map +1 -0
  7. package/dist/commands/connect.d.ts +7 -0
  8. package/dist/commands/connect.d.ts.map +1 -0
  9. package/dist/commands/connect.js +71 -0
  10. package/dist/commands/connect.js.map +1 -0
  11. package/dist/commands/disable.d.ts +2 -0
  12. package/dist/commands/disable.d.ts.map +1 -0
  13. package/dist/commands/disable.js +5 -0
  14. package/dist/commands/disable.js.map +1 -0
  15. package/dist/commands/doctor.d.ts +3 -0
  16. package/dist/commands/doctor.d.ts.map +1 -0
  17. package/dist/commands/doctor.js +5 -0
  18. package/dist/commands/doctor.js.map +1 -0
  19. package/dist/commands/editor.d.ts +7 -0
  20. package/dist/commands/editor.d.ts.map +1 -0
  21. package/dist/commands/editor.js +84 -0
  22. package/dist/commands/editor.js.map +1 -0
  23. package/dist/commands/init.d.ts +3 -0
  24. package/dist/commands/init.d.ts.map +1 -0
  25. package/dist/commands/init.js +9 -0
  26. package/dist/commands/init.js.map +1 -0
  27. package/dist/commands/uninstall.d.ts +2 -0
  28. package/dist/commands/uninstall.d.ts.map +1 -0
  29. package/dist/commands/uninstall.js +5 -0
  30. package/dist/commands/uninstall.js.map +1 -0
  31. package/dist/commands/unsafeFixture.d.ts +5 -0
  32. package/dist/commands/unsafeFixture.d.ts.map +1 -0
  33. package/dist/commands/unsafeFixture.js +14 -0
  34. package/dist/commands/unsafeFixture.js.map +1 -0
  35. package/dist/commands/upgrade.d.ts +2 -0
  36. package/dist/commands/upgrade.d.ts.map +1 -0
  37. package/dist/commands/upgrade.js +5 -0
  38. package/dist/commands/upgrade.js.map +1 -0
  39. package/dist/index.d.ts +12 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +12 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/install/addonInstaller.d.ts +10 -0
  44. package/dist/install/addonInstaller.d.ts.map +1 -0
  45. package/dist/install/addonInstaller.js +225 -0
  46. package/dist/install/addonInstaller.js.map +1 -0
  47. package/dist/install/addonManifest.d.ts +28 -0
  48. package/dist/install/addonManifest.d.ts.map +1 -0
  49. package/dist/install/addonManifest.js +95 -0
  50. package/dist/install/addonManifest.js.map +1 -0
  51. package/dist/install/doctor.d.ts +11 -0
  52. package/dist/install/doctor.d.ts.map +1 -0
  53. package/dist/install/doctor.js +86 -0
  54. package/dist/install/doctor.js.map +1 -0
  55. package/dist/install/pluginState.d.ts +12 -0
  56. package/dist/install/pluginState.d.ts.map +1 -0
  57. package/dist/install/pluginState.js +95 -0
  58. package/dist/install/pluginState.js.map +1 -0
  59. package/dist/runtime/createRuntime.d.ts +31 -0
  60. package/dist/runtime/createRuntime.d.ts.map +1 -0
  61. package/dist/runtime/createRuntime.js +301 -0
  62. package/dist/runtime/createRuntime.js.map +1 -0
  63. package/godot/plugin_state.gd +18 -0
  64. package/package.json +31 -6
  65. package/index.js +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Godot MCP contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,106 @@
1
- # @godot-mcp/cli
1
+ # Godot MCP
2
2
 
3
- Namespace bootstrap only. Install the first supported release from the `latest` tag.
3
+ Godot MCP is an open-source, security-first MCP server and Godot editor addon. Phase 7 provides reversible installation, authenticated Godot 4.7 editor attachment, six default observe-only tools, explicitly gated runtime/input surfaces, permission-scoped editor authoring, native read-only GDScript debugging, and bounded structured performance evidence.
4
+
5
+ ## Requirements
6
+
7
+ - macOS (the currently certified platform)
8
+ - Node.js 22
9
+ - pnpm 11.13.0
10
+ - Godot 4.7 stable
11
+
12
+ Compatibility is evidence-gated by `release/compatibility-matrix.json`. Godot 4.4–4.6 and Linux/Windows remain experimental until their exact matrix cells carry trusted certification receipts; pending cells are not advertised as supported.
13
+
14
+ ## Source quick start
15
+
16
+ ```bash
17
+ pnpm install --frozen-lockfile
18
+ pnpm build
19
+ node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js init --project /absolute/path/to/godot-project
20
+ node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js doctor --project /absolute/path/to/godot-project
21
+ node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js editor --project /absolute/path/to/godot-project
22
+ ```
23
+
24
+ For a verified release-to-release replacement, run `godot-mcp upgrade --project /absolute/path/to/godot-project --source /absolute/path/to/new/addons/godot_mcp`. Upgrade and rollback refuse independently modified installed files and preserve the original uninstall preimage.
25
+
26
+ Use the `editor` command for the Phase 7-certified launch. It writes a short-lived owner-only startup attestation, then starts Godot with the authenticated editor debugger and native DAP assigned to one loopback port; the debugger binds first, so unauthenticated DAP never acquires a listener. The addon consumes the attestation and connects outward only when a matching MCP runtime publishes a short-lived pairing descriptor. Opening the project through another launcher keeps earlier editor features available, but runtime debugging fails closed because secure startup cannot be proven by copied user arguments alone.
27
+
28
+ Register the source checkout with Codex using absolute paths:
29
+
30
+ ```bash
31
+ codex mcp add godot -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project
32
+ ```
33
+
34
+ The default registration remains observe-only. To opt into one MCP-owned instrumented runtime, explicitly grant both its tier and pack:
35
+
36
+ ```bash
37
+ codex mcp add godot-runtime -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project --grant runtime_control --pack runtime
38
+ ```
39
+
40
+ To launch and automate the owned runtime, grant the input pack separately:
41
+
42
+ ```bash
43
+ codex mcp add godot-runtime-input -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project --grant runtime_control --pack runtime --pack input
44
+ ```
45
+
46
+ To preview and apply bounded editor mutations, explicitly grant both the mutation tier and editor pack:
47
+
48
+ ```bash
49
+ codex mcp add godot-editor -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project --grant project_mutate --pack editor
50
+ ```
51
+
52
+ Start a fresh Codex task after registration so the newly registered MCP server is exposed. To stop using the addon while retaining its files, or remove the verified installation completely:
53
+
54
+ ```bash
55
+ node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js disable --project /absolute/path/to/godot-project
56
+ node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js uninstall --project /absolute/path/to/godot-project
57
+ ```
58
+
59
+ Uninstall refuses to remove the addon, project configuration, or `project.godot` if they changed independently after installation.
60
+
61
+ ## Implemented MCP tools
62
+
63
+ - `godot_session` — attachment, project identity, versions, and grants
64
+ - `godot_capabilities` — currently visible observe/core capabilities
65
+ - `godot_doctor` — installation, plugin, identity, and attachment diagnostics
66
+ - `godot_help` — built-in usage and security-boundary help
67
+ - `godot_query` — bounded editor state, open scene/tree/node metadata, indexed resources, approved project settings, and redacted diagnostics
68
+ - `godot_capture` — bounded PNG from the current 2D or selected 3D editor viewport, returned as MCP image content and persisted as session evidence
69
+
70
+ The default six tools are read-only and closed-world. A runtime-authorized session additionally exposes:
71
+
72
+ - `godot_runtime` — launch, bounded runtime queries/control, native GDScript breakpoints/stacks/variables/selector watches, monitor snapshots, and cancellable structured profiles for one authenticated child runtime
73
+ - `godot_runtime_capture` — one to eight ordered running-game PNG frames with verified evidence metadata
74
+ - `godot_input` — bounded events, frame-indexed sequences, non-passive recording, and deterministic replay for the owned runtime
75
+ - `godot_editor` — preview, apply, undo, and redo one bounded scene/node/resource/source authoring batch with durable idempotency and native editor history
76
+
77
+ For example:
78
+
79
+ ```json
80
+ { "operation": "scene_tree", "scenePath": "res://main.tscn", "maxDepth": 8, "maxNodes": 250 }
81
+ { "viewport": "2d", "maxWidth": 1280, "maxHeight": 720 }
82
+ { "operation": "launch", "scenePath": "res://main.tscn" }
83
+ { "operation": "debug_breakpoints_set", "handle": { "runId": "<run UUID>", "generation": 1 }, "breakpoints": [{ "sourcePath": "res://player.gd", "line": 42 }] }
84
+ { "operation": "profile_start", "handle": { "runId": "<run UUID>", "generation": 1 }, "durationMs": 1000, "intervalFrames": 1, "groups": ["frame", "memory"], "retainRaw": false }
85
+ { "operation": "sequence", "handle": { "runId": "<run UUID>", "generation": 1 }, "mode": "deterministic", "events": [{ "frameOffset": 0, "event": { "type": "action", "action": "jump", "pressed": true, "strengthMillionths": 1000000 } }, { "frameOffset": 1, "event": { "type": "action", "action": "jump", "pressed": false, "strengthMillionths": 0 } }] }
86
+ ```
87
+
88
+ Runtime control and input are off unless their explicit flags are present. Deterministic sequences/replay require a paused owned runtime; offsets are zero-based, so offsets 0–1 process across two rendered frames and leave it paused. Recording captures only MCP-injected events. Receipts and audit summaries omit raw action names, keycodes, coordinates, and trace payloads. There is no OS-global/editor input, arbitrary text, process, filesystem, network, method-call, or GDScript-evaluation primitive.
89
+
90
+ ## Development and certification
91
+
92
+ ```bash
93
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-0-1
94
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-2
95
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-3
96
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-4
97
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-5
98
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-6
99
+ GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-7
100
+ ```
101
+
102
+ The Phase 7 gate certifies secure shared-port editor startup, native-DAP inertness, authenticated editor-session debugging, breakpoints/stacks/variables/selector watches, bounded public monitor snapshots, completed and cancelled profiles, hostile-input rejection, published stdio behavior, and zero owned-state or fixture residue. Earlier gates remain required regressions. See [Phase 7 testing](docs/testing/phase-7.md), [Phase 6 testing](docs/testing/phase-6.md), the [threat model](docs/security/threat-model.md), the [bridge protocol](docs/protocol/bridge-v1.md), and the [master design](docs/superpowers/specs/2026-07-15-godot-mcp-master-design.md).
103
+
104
+ ## Roadmap
105
+
106
+ Later phases add declarative playtests, imports/builds/exports, evidence retrieval, compatibility lanes, and explicitly gated disposable-fixture unsafe mode. None of those capabilities are claimed by Phase 7.
package/dist/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
package/dist/bin.js ADDED
@@ -0,0 +1,88 @@
1
+ #!/usr/bin/env node
2
+ import { parseArgs } from "node:util";
3
+ import { resolve } from "node:path";
4
+ import { connectProject, approveUnsafeFixtureCommand, defaultUnsafeRegistryPath, disableAddon, doctorProject, initProject, launchSecureEditor, registerUnsafeFixtureCommand, stampUnsafeFixtureCopyCommand, uninstallProject, upgradeProject, } from "./index.js";
5
+ import { parseConnectGrants } from "./commands/connect.js";
6
+ async function main() {
7
+ const parsed = parseArgs({
8
+ allowPositionals: true,
9
+ options: {
10
+ project: { type: "string", short: "p", default: process.cwd() },
11
+ source: { type: "string", default: resolve(process.cwd(), "addons/godot_mcp") },
12
+ godot: { type: "string" },
13
+ grant: { type: "string", multiple: true, default: [] },
14
+ pack: { type: "string", multiple: true, default: [] },
15
+ registry: { type: "string", default: defaultUnsafeRegistryPath() },
16
+ activation: { type: "string" },
17
+ "activation-dir": { type: "string" },
18
+ confirmation: { type: "string" },
19
+ registration: { type: "string" },
20
+ "ttl-ms": { type: "string" },
21
+ extension: { type: "string", multiple: true, default: [] },
22
+ },
23
+ });
24
+ const [command, ...extra] = parsed.positionals;
25
+ if (!command || extra.length > 0 || !["init", "upgrade", "doctor", "disable", "uninstall", "connect", "editor", "unsafe-register", "unsafe-stamp-copy", "unsafe-approve"].includes(command)) {
26
+ process.stderr.write("Usage: godot-mcp <init|upgrade|doctor|disable|uninstall|connect|editor|unsafe-register|unsafe-stamp-copy|unsafe-approve> [--project PATH]\n");
27
+ return 2;
28
+ }
29
+ if (command === "init") {
30
+ const report = await initProject(parsed.values.project, parsed.values.source, parsed.values.godot);
31
+ process.stdout.write(`${JSON.stringify(report)}\n`);
32
+ return report.healthy ? 0 : 4;
33
+ }
34
+ if (command === "doctor") {
35
+ const report = await doctorProject(parsed.values.project);
36
+ process.stdout.write(`${JSON.stringify(report)}\n`);
37
+ return report.healthy ? 0 : 4;
38
+ }
39
+ if (command === "upgrade") {
40
+ const result = await upgradeProject(parsed.values.project, parsed.values.source);
41
+ process.stdout.write(`${JSON.stringify({ ok: true, command, ...result })}\n`);
42
+ return 0;
43
+ }
44
+ if (command === "editor") {
45
+ return launchSecureEditor(parsed.values.project, parsed.values.godot);
46
+ }
47
+ if (command === "connect") {
48
+ await connectProject(parsed.values.project, parseConnectGrants(parsed.values.grant, parsed.values.pack), parsed.values.godot, parsed.values.activation === undefined ? undefined : { registryPath: parsed.values.registry, leasePath: parsed.values.activation }, parsed.values.extension);
49
+ return 0;
50
+ }
51
+ if (command === "unsafe-register") {
52
+ const result = await registerUnsafeFixtureCommand(parsed.values.project, parsed.values.registry, parsed.values.confirmation ?? "");
53
+ process.stdout.write(`${JSON.stringify(result)}\n`);
54
+ return 0;
55
+ }
56
+ if (command === "unsafe-stamp-copy") {
57
+ if (!parsed.values.registration)
58
+ throw new Error("--registration is required");
59
+ const result = await stampUnsafeFixtureCopyCommand(parsed.values.project, parsed.values.registry, parsed.values.registration);
60
+ process.stdout.write(`${JSON.stringify(result)}\n`);
61
+ return 0;
62
+ }
63
+ if (command === "unsafe-approve") {
64
+ if (!parsed.values["activation-dir"])
65
+ throw new Error("--activation-dir is required");
66
+ const ttlMs = parsed.values["ttl-ms"] === undefined ? undefined : Number(parsed.values["ttl-ms"]);
67
+ const result = await approveUnsafeFixtureCommand(parsed.values.project, parsed.values.registry, parsed.values["activation-dir"], parsed.values.confirmation ?? "", ttlMs);
68
+ process.stdout.write(`${JSON.stringify(result)}\n`);
69
+ return 0;
70
+ }
71
+ if (command === "disable") {
72
+ await disableAddon(parsed.values.project, parsed.values.godot);
73
+ }
74
+ else {
75
+ await uninstallProject(parsed.values.project);
76
+ }
77
+ process.stdout.write(`${JSON.stringify({ ok: true, command })}\n`);
78
+ return 0;
79
+ }
80
+ try {
81
+ process.exitCode = await main();
82
+ }
83
+ catch (error) {
84
+ const code = error.code;
85
+ process.stderr.write(`${error.message}\n`);
86
+ process.exitCode = code === "CONFLICT" ? 3 : 4;
87
+ }
88
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,cAAc,EACd,2BAA2B,E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SAAS,EAAE,CAAC;QAC1B,MAAM,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC;SAAM,CAAC;QACN,MAAM,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;IACnE,OAAO,CAAC,CAAC;AACX,CAAC;AAED,IAAI,CAAC;IACH,OAAO,CAAC,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC;AAClC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,MAAM,IAAI,GAAI,KAA2B,CAAC,IAAI,CAAC;IAC/C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAI,KAAe,CAAC,OAAO,IAAI,CAAC,CAAC;IACtD,OAAO,CAAC,QAAQ,GAAG,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type SessionGrants } from "@godot-mcp/control-plane";
2
+ export declare function parseConnectGrants(grants: readonly string[], packs: readonly string[]): SessionGrants;
3
+ export declare function connectProject(project: string, grants?: SessionGrants, godotBin?: string, unsafeActivation?: {
4
+ registryPath: string;
5
+ leasePath: string;
6
+ }, extensionModules?: readonly string[]): Promise<void>;
7
+ //# sourceMappingURL=connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMjF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa,CAyCrG;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,aAA0C,EAClD,QAAQ,CAAC,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAC9D,gBAAgB,GAAE,SAAS,MAAM,EAAO,GACvC,OAAO,CAAC,IAAI,CAAC,CAgBf"}
@@ -0,0 +1,71 @@
1
+ import { resolve } from "node:path";
2
+ import { pathToFileURL } from "node:url";
3
+ import { ExtensionRegistry } from "@godot-mcp/control-plane";
4
+ import { connectStdio } from "@godot-mcp/mcp-server";
5
+ import { runDoctor } from "../install/doctor.js";
6
+ import { createRuntime } from "../runtime/createRuntime.js";
7
+ export function parseConnectGrants(grants, packs) {
8
+ const normalizedGrants = [...new Set(grants.flatMap((value) => value.split(",")).filter(Boolean))];
9
+ const normalizedPacks = [...new Set(packs.flatMap((value) => value.split(",")).filter(Boolean))];
10
+ for (const grant of normalizedGrants) {
11
+ if (grant !== "runtime_control" && grant !== "project_mutate" && grant !== "project_operate" && grant !== "unsafe_fixture")
12
+ throw new Error(`Unsupported connect grant: ${grant}`);
13
+ }
14
+ for (const pack of normalizedPacks) {
15
+ if (pack !== "runtime" && pack !== "input" && pack !== "editor" && pack !== "visual" && pack !== "project" && pack !== "unsafe")
16
+ throw new Error(`Unsupported connect pack: ${pack}`);
17
+ }
18
+ const hasRuntimePack = normalizedPacks.includes("runtime") || normalizedPacks.includes("input");
19
+ if (normalizedGrants.includes("runtime_control") !== hasRuntimePack) {
20
+ throw new Error("runtime_control must be granted with runtime or input packs");
21
+ }
22
+ const hasEditorPack = normalizedPacks.includes("editor");
23
+ if (normalizedGrants.includes("project_mutate") !== hasEditorPack) {
24
+ throw new Error("project_mutate must be granted with the editor pack");
25
+ }
26
+ if (normalizedPacks.includes("visual") && (!normalizedPacks.includes("runtime") || !normalizedPacks.includes("input")))
27
+ throw new Error("visual requires runtime and input packs");
28
+ const hasProjectPack = normalizedPacks.includes("project");
29
+ if (normalizedGrants.includes("project_operate") !== hasProjectPack)
30
+ throw new Error("project_operate must be granted with the project pack");
31
+ const hasUnsafePack = normalizedPacks.includes("unsafe");
32
+ if (normalizedGrants.includes("unsafe_fixture") !== hasUnsafePack)
33
+ throw new Error("unsafe_fixture must be granted with the unsafe pack");
34
+ if (!hasRuntimePack && !hasEditorPack && !hasProjectPack && !hasUnsafePack)
35
+ return { tiers: ["observe"], packs: ["core"] };
36
+ return {
37
+ tiers: [
38
+ "observe",
39
+ ...(normalizedGrants.includes("runtime_control") ? ["runtime_control"] : []),
40
+ ...(normalizedGrants.includes("project_mutate") ? ["project_mutate"] : []),
41
+ ...(normalizedGrants.includes("project_operate") ? ["project_operate"] : []),
42
+ ...(normalizedGrants.includes("unsafe_fixture") ? ["unsafe_fixture"] : []),
43
+ ],
44
+ packs: [
45
+ "core",
46
+ ...(normalizedPacks.includes("runtime") ? ["runtime"] : []),
47
+ ...(normalizedPacks.includes("input") ? ["input"] : []),
48
+ ...(normalizedPacks.includes("editor") ? ["editor"] : []),
49
+ ...(normalizedPacks.includes("visual") ? ["visual"] : []),
50
+ ...(normalizedPacks.includes("project") ? ["project"] : []),
51
+ ...(normalizedPacks.includes("unsafe") ? ["unsafe"] : []),
52
+ ],
53
+ };
54
+ }
55
+ export async function connectProject(project, grants = parseConnectGrants([], []), godotBin, unsafeActivation, extensionModules = []) {
56
+ const doctor = await runDoctor(project, godotBin);
57
+ if (!doctor.healthy) {
58
+ throw new Error("Godot MCP installation is unhealthy; run godot-mcp doctor before connect");
59
+ }
60
+ const extensions = new ExtensionRegistry();
61
+ for (const modulePath of extensionModules) {
62
+ const module = await import(pathToFileURL(resolve(modulePath)).href);
63
+ if (typeof module.registerGodotMcpExtension !== "function")
64
+ throw new Error(`Extension module does not export registerGodotMcpExtension: ${modulePath}`);
65
+ await module.registerGodotMcpExtension(extensions);
66
+ }
67
+ const runtime = await createRuntime({ project, grants, ...(godotBin === undefined ? {} : { godotBin }), ...(unsafeActivation === undefined ? {} : { unsafeRegistryPath: unsafeActivation.registryPath, unsafeActivationPath: unsafeActivation.leasePath }), ...(extensionModules.length === 0 ? {} : { extensions }) });
68
+ process.stderr.write(`Godot MCP waiting for project ${runtime.project.projectId} on loopback port ${runtime.bridge.port}\n`);
69
+ await connectStdio(runtime.mcp, () => runtime.close("stdio-closed"));
70
+ }
71
+ //# sourceMappingURL=connect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAsB,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,UAAU,kBAAkB,CAAC,MAAyB,EAAE,KAAwB;IACpF,MAAM,gBAAgB,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACnG,MAAM,eAAe,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACjG,KAAK,MAAM,KAAK,IAAI,gBAAgB,EAAE,CAAC;QACrC,I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M,MAAM,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IACxT,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,iCAAiC,OAAO,CAAC,OAAO,CAAC,SAAS,qBAAqB,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,CACvG,CAAC;IACF,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function disableAddon(project: string, godotBin?: string): Promise<void>;
2
+ //# sourceMappingURL=disable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../src/commands/disable.ts"],"names":[],"mappings":"AAEA,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpF"}
@@ -0,0 +1,5 @@
1
+ import { setPluginState } from "../install/pluginState.js";
2
+ export async function disableAddon(project, godotBin) {
3
+ await setPluginState(project, "disable", godotBin);
4
+ }
5
+ //# sourceMappingURL=disable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.js","sourceRoot":"","sources":["../../src/commands/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAe,EAAE,QAAiB;IACnE,MAAM,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACrD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type DoctorReport } from "../install/doctor.js";
2
+ export declare function doctorProject(project: string): Promise<DoctorReport>;
3
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpE,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAE1E"}
@@ -0,0 +1,5 @@
1
+ import { runDoctor } from "../install/doctor.js";
2
+ export async function doctorProject(project) {
3
+ return runDoctor(project);
4
+ }
5
+ //# sourceMappingURL=doctor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,sBAAsB,CAAC;AAEpE,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAe;IACjD,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare function secureEditorArguments(project: string, sharedPort: number, attestationPath: string): string[];
2
+ export declare function createSecureEditorLaunchAttestation(projectId: string, sharedPort: number): Promise<{
3
+ path: string;
4
+ cleanup(): Promise<void>;
5
+ }>;
6
+ export declare function launchSecureEditor(projectInput: string, explicitGodot?: string): Promise<number>;
7
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/commands/editor.ts"],"names":[],"mappings":"AAWA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,CAgB5G;AAED,wBAAsB,mCAAmC,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC,CAgBpJ;AAqBD,wBAAsB,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBtG"}
@@ -0,0 +1,84 @@
1
+ import { spawn } from "node:child_process";
2
+ import { randomUUID } from "node:crypto";
3
+ import { rm, writeFile } from "node:fs/promises";
4
+ import { createServer } from "node:net";
5
+ import { join } from "node:path";
6
+ import { discoverProject, ensureRuntimeDirectory, readProjectIdentity } from "@godot-mcp/control-plane";
7
+ import { runDoctor } from "../install/doctor.js";
8
+ import { findGodotBinary } from "../install/pluginState.js";
9
+ export function secureEditorArguments(project, sharedPort, attestationPath) {
10
+ if (!Number.isInteger(sharedPort) || sharedPort < 1 || sharedPort > 65_535) {
11
+ throw new Error("Secure editor shared port is invalid");
12
+ }
13
+ if (!attestationPath)
14
+ throw new Error("Secure editor launch attestation is required");
15
+ return [
16
+ "--editor",
17
+ "--debug-server", `tcp://127.0.0.1:${sharedPort}`,
18
+ "--dap-port", String(sharedPort),
19
+ "--path", project,
20
+ "--",
21
+ `--godot-mcp-debug-port=${sharedPort}`,
22
+ `--godot-mcp-dap-port=${sharedPort}`,
23
+ "--godot-mcp-secure-editor-launch=1",
24
+ `--godot-mcp-editor-attestation=${attestationPath}`,
25
+ ];
26
+ }
27
+ export async function createSecureEditorLaunchAttestation(projectId, sharedPort) {
28
+ if (!projectId || !Number.isInteger(sharedPort) || sharedPort < 1 || sharedPort > 65_535) {
29
+ throw new Error("Secure editor launch attestation input is invalid");
30
+ }
31
+ const directory = await ensureRuntimeDirectory();
32
+ const path = join(directory, `editor-launch-${randomUUID()}.json`);
33
+ const createdAtUnixMs = Date.now();
34
+ await writeFile(path, `${JSON.stringify({
35
+ schemaVersion: 1,
36
+ projectId,
37
+ debugPort: sharedPort,
38
+ dapPort: sharedPort,
39
+ createdAtUnixMs,
40
+ expiresAtUnixMs: createdAtUnixMs + 10_000,
41
+ })}\n`, { flag: "wx", mode: 0o600 });
42
+ return { path, cleanup: async () => { await rm(path, { force: true }); } };
43
+ }
44
+ async function reserveSharedPort() {
45
+ const server = createServer();
46
+ const port = await new Promise((resolvePromise, reject) => {
47
+ server.once("error", reject);
48
+ server.listen(0, "127.0.0.1", () => {
49
+ const address = server.address();
50
+ if (address === null || typeof address === "string") {
51
+ reject(new Error("Could not reserve a secure editor port"));
52
+ return;
53
+ }
54
+ resolvePromise(address.port);
55
+ });
56
+ });
57
+ await new Promise((resolvePromise, reject) => {
58
+ server.close((error) => error ? reject(error) : resolvePromise());
59
+ });
60
+ return port;
61
+ }
62
+ export async function launchSecureEditor(projectInput, explicitGodot) {
63
+ const project = await discoverProject(projectInput);
64
+ const godot = await findGodotBinary(explicitGodot);
65
+ const doctor = await runDoctor(project.rootRealPath, godot);
66
+ if (!doctor.healthy)
67
+ throw new Error("Godot MCP installation is unhealthy; run godot-mcp doctor before editor");
68
+ const port = await reserveSharedPort();
69
+ const identity = await readProjectIdentity(project.rootRealPath);
70
+ const attestation = await createSecureEditorLaunchAttestation(identity.projectId, port);
71
+ const child = spawn(godot, secureEditorArguments(project.rootRealPath, port, attestation.path), { stdio: "inherit", env: process.env });
72
+ return new Promise((resolvePromise, reject) => {
73
+ child.once("error", (error) => { void attestation.cleanup().finally(() => reject(error)); });
74
+ child.once("close", (code, signal) => {
75
+ void attestation.cleanup().then(() => {
76
+ if (code !== null)
77
+ resolvePromise(code);
78
+ else
79
+ reject(new Error(`Godot editor exited from signal ${signal ?? "unknown"}`));
80
+ }, reject);
81
+ });
82
+ });
83
+ }
84
+ //# sourceMappingURL=editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/commands/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAExG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,UAAU,qBAAqB,CAAC,OAAe,EAAE,UAAkB,EAAE,eAAuB;IAChG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,IAAI,UAAU,GAAG,MAAM,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,IAAI,CAAC,eAAe;QAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IACtF,OAAO;QACL,UAAU;QACV,gBAAgB,EAAE,mBAAmB,UAAU,EAAE;QACjD,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC;QAChC,QAAQ,EAAE,OAAO;QACjB,IAAI;QACJ,0BAA0B,UAAU,EAAE;QACtC,wBAAwB,UAAU,EAAE;QACpC,oCAAoC;QACpC,kCAAkC,eAA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AAE,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACxI,OAAO,IAAI,OAAO,CAAS,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE;QACpD,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7F,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE;YAAG,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3E,IAAI,IAAI,KAAK,IAAI;oBAAE,cAAc,CAAC,IAAI,CAAC,CAAC;;oBACnC,MAAM,CAAC,IAAI,KAAK,CAAC,mCAAmC,MAAM,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC;YACnF,CAAC,EAAE,MAAM,CAAC,CAAC;QAAC,CAAC,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type DoctorReport } from "../install/doctor.js";
2
+ export declare function initProject(project: string, sourceDir: string, godotBin?: string): Promise<DoctorReport>;
3
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpE,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,CAAC,CAIvB"}
@@ -0,0 +1,9 @@
1
+ import { installAddon } from "../install/addonInstaller.js";
2
+ import { runDoctor } from "../install/doctor.js";
3
+ import { setPluginState } from "../install/pluginState.js";
4
+ export async function initProject(project, sourceDir, godotBin) {
5
+ const install = await installAddon(project, sourceDir);
6
+ await setPluginState(install.projectRoot, "enable", godotBin);
7
+ return runDoctor(install.projectRoot, godotBin);
8
+ }
9
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAqB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAAe,EACf,SAAiB,EACjB,QAAiB;IAEjB,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACvD,MAAM,cAAc,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,OAAO,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function uninstallProject(project: string): Promise<void>;
2
+ //# sourceMappingURL=uninstall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAEA,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErE"}
@@ -0,0 +1,5 @@
1
+ import { uninstallAddon } from "../install/addonInstaller.js";
2
+ export async function uninstallProject(project) {
3
+ await uninstallAddon(project);
4
+ }
5
+ //# sourceMappingURL=uninstall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAAe;IACpD,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function defaultUnsafeRegistryPath(): string;
2
+ export declare function registerUnsafeFixtureCommand(project: string, registryPath: string, confirmation: string): Promise<unknown>;
3
+ export declare function stampUnsafeFixtureCopyCommand(project: string, registryPath: string, registrationId: string): Promise<unknown>;
4
+ export declare function approveUnsafeFixtureCommand(project: string, registryPath: string, activationDirectory: string, confirmation: string, ttlMs?: number): Promise<unknown>;
5
+ //# sourceMappingURL=unsafeFixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unsafeFixture.d.ts","sourceRoot":"","sources":["../../src/commands/unsafeFixture.ts"],"names":[],"mappings":"AAKA,wBAAgB,yBAAyB,IAAI,MAAM,CAA4E;AAE/H,wBAAsB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEhI;AAED,wBAAsB,6BAA6B,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEnI;AAED,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE5K"}
@@ -0,0 +1,14 @@
1
+ import { homedir } from "node:os";
2
+ import { join } from "node:path";
3
+ import { approveUnsafeFixtureCopy, registerUnsafeFixture, stampUnsafeFixtureCopy } from "@godot-mcp/control-plane";
4
+ export function defaultUnsafeRegistryPath() { return join(homedir(), ".config", "godot-mcp", "unsafe-fixtures.json"); }
5
+ export async function registerUnsafeFixtureCommand(project, registryPath, confirmation) {
6
+ return registerUnsafeFixture(registryPath, project, confirmation);
7
+ }
8
+ export async function stampUnsafeFixtureCopyCommand(project, registryPath, registrationId) {
9
+ return stampUnsafeFixtureCopy(registryPath, project, registrationId);
10
+ }
11
+ export async function approveUnsafeFixtureCommand(project, registryPath, activationDirectory, confirmation, ttlMs) {
12
+ return approveUnsafeFixtureCopy(registryPath, project, activationDirectory, confirmation, ttlMs);
13
+ }
14
+ //# sourceMappingURL=unsafeFixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unsafeFixture.js","sourceRoot":"","sources":["../../src/commands/unsafeFixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEnH,MAAM,UAAU,yBAAyB,KAAa,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAE/H,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,OAAe,EAAE,YAAoB,EAAE,YAAoB;IAC5G,OAAO,qBAAqB,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,OAAe,EAAE,YAAoB,EAAE,cAAsB;IAC/G,OAAO,sBAAsB,CAAC,YAAY,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,OAAe,EAAE,YAAoB,EAAE,mBAA2B,EAAE,YAAoB,EAAE,KAAc;IACxJ,OAAO,wBAAwB,CAAC,YAAY,EAAE,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AACnG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function upgradeProject(project: string, source: string): Promise<import("../install/addonInstaller.js").InstallAddonResult>;
2
+ //# sourceMappingURL=upgrade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AAEA,wBAAsB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,sEAEnE"}
@@ -0,0 +1,5 @@
1
+ import { upgradeAddon } from "../install/addonInstaller.js";
2
+ export async function upgradeProject(project, source) {
3
+ return upgradeAddon(project, source);
4
+ }
5
+ //# sourceMappingURL=upgrade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAe,EAAE,MAAc;IAClE,OAAO,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACvC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export { initProject } from "./commands/init.js";
2
+ export { createSecureEditorLaunchAttestation, launchSecureEditor, secureEditorArguments } from "./commands/editor.js";
3
+ export { disableAddon } from "./commands/disable.js";
4
+ export { doctorProject } from "./commands/doctor.js";
5
+ export { uninstallProject } from "./commands/uninstall.js";
6
+ export { upgradeProject } from "./commands/upgrade.js";
7
+ export { installAddon, upgradeAddon, uninstallAddon, type InstallAddonResult, } from "./install/addonInstaller.js";
8
+ export { runDoctor, type DoctorCheck, type DoctorReport } from "./install/doctor.js";
9
+ export { GodotMcpRuntime, createRuntime, type RuntimeOptions, } from "./runtime/createRuntime.js";
10
+ export { connectProject } from "./commands/connect.js";
11
+ export { approveUnsafeFixtureCommand, defaultUnsafeRegistryPath, registerUnsafeFixtureCommand, stampUnsafeFixtureCopyCommand } from "./commands/unsafeFixture.js";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,mCAAmC,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,KAAK,kBAAkB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EACL,eAAe,EACf,aAAa,EACb,KAAK,cAAc,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ export { initProject } from "./commands/init.js";
2
+ export { createSecureEditorLaunchAttestation, launchSecureEditor, secureEditorArguments } from "./commands/editor.js";
3
+ export { disableAddon } from "./commands/disable.js";
4
+ export { doctorProject } from "./commands/doctor.js";
5
+ export { uninstallProject } from "./commands/uninstall.js";
6
+ export { upgradeProject } from "./commands/upgrade.js";
7
+ export { installAddon, upgradeAddon, uninstallAddon, } from "./install/addonInstaller.js";
8
+ export { runDoctor } from "./install/doctor.js";
9
+ export { GodotMcpRuntime, createRuntime, } from "./runtime/createRuntime.js";
10
+ export { connectProject } from "./commands/connect.js";
11
+ export { approveUnsafeFixtureCommand, defaultUnsafeRegistryPath, registerUnsafeFixtureCommand, stampUnsafeFixtureCopyCommand } from "./commands/unsafeFixture.js";
12
+ //# sourceMappingURL=index.js.map