@satelliteoflove/godot-mcp 2.1.0 → 2.2.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/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/scene3d.d.ts +138 -0
- package/dist/tools/scene3d.d.ts.map +1 -0
- package/dist/tools/scene3d.js +116 -0
- package/dist/tools/scene3d.js.map +1 -0
- package/package.json +1 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export { projectTools } from './project.js';
|
|
|
6
6
|
export { animationTools } from './animation.js';
|
|
7
7
|
export { tilemapTools } from './tilemap.js';
|
|
8
8
|
export { resourceTools } from './resource.js';
|
|
9
|
+
export { scene3dTools } from './scene3d.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAUA,wBAAgB,gBAAgB,IAAI,IAAI,CASvC;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { projectTools } from './project.js';
|
|
|
6
6
|
import { animationTools } from './animation.js';
|
|
7
7
|
import { tilemapTools } from './tilemap.js';
|
|
8
8
|
import { resourceTools } from './resource.js';
|
|
9
|
+
import { scene3dTools } from './scene3d.js';
|
|
9
10
|
export function registerAllTools() {
|
|
10
11
|
registry.registerTools(sceneTools);
|
|
11
12
|
registry.registerTools(nodeTools);
|
|
@@ -14,6 +15,7 @@ export function registerAllTools() {
|
|
|
14
15
|
registry.registerTools(animationTools);
|
|
15
16
|
registry.registerTools(tilemapTools);
|
|
16
17
|
registry.registerTools(resourceTools);
|
|
18
|
+
registry.registerTools(scene3dTools);
|
|
17
19
|
}
|
|
18
20
|
export { sceneTools } from './scene.js';
|
|
19
21
|
export { nodeTools } from './node.js';
|
|
@@ -22,4 +24,5 @@ export { projectTools } from './project.js';
|
|
|
22
24
|
export { animationTools } from './animation.js';
|
|
23
25
|
export { tilemapTools } from './tilemap.js';
|
|
24
26
|
export { resourceTools } from './resource.js';
|
|
27
|
+
export { scene3dTools } from './scene3d.js';
|
|
25
28
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","source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,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AnyToolDefinition } from '../core/types.js';
|
|
3
|
+
export declare const scene3d: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
4
|
+
action: z.ZodEnum<["get_spatial_info", "get_bounds"]>;
|
|
5
|
+
node_path: z.ZodOptional<z.ZodString>;
|
|
6
|
+
root_path: z.ZodOptional<z.ZodString>;
|
|
7
|
+
include_children: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
type_filter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
max_results: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
within_aabb: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
position: z.ZodObject<{
|
|
12
|
+
x: z.ZodNumber;
|
|
13
|
+
y: z.ZodNumber;
|
|
14
|
+
z: z.ZodNumber;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
z: number;
|
|
19
|
+
}, {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
z: number;
|
|
23
|
+
}>;
|
|
24
|
+
size: z.ZodObject<{
|
|
25
|
+
x: z.ZodNumber;
|
|
26
|
+
y: z.ZodNumber;
|
|
27
|
+
z: z.ZodNumber;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
z: number;
|
|
32
|
+
}, {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
z: number;
|
|
36
|
+
}>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
position: {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
z: number;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
z: number;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
position: {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
z: number;
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
z: number;
|
|
58
|
+
};
|
|
59
|
+
}>>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
action: "get_spatial_info" | "get_bounds";
|
|
62
|
+
include_children: boolean;
|
|
63
|
+
node_path?: string | undefined;
|
|
64
|
+
root_path?: string | undefined;
|
|
65
|
+
type_filter?: string | undefined;
|
|
66
|
+
max_results?: number | undefined;
|
|
67
|
+
within_aabb?: {
|
|
68
|
+
position: {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
z: number;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
z: number;
|
|
77
|
+
};
|
|
78
|
+
} | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
action: "get_spatial_info" | "get_bounds";
|
|
81
|
+
node_path?: string | undefined;
|
|
82
|
+
root_path?: string | undefined;
|
|
83
|
+
include_children?: boolean | undefined;
|
|
84
|
+
type_filter?: string | undefined;
|
|
85
|
+
max_results?: number | undefined;
|
|
86
|
+
within_aabb?: {
|
|
87
|
+
position: {
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
z: number;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
z: number;
|
|
96
|
+
};
|
|
97
|
+
} | undefined;
|
|
98
|
+
}>, {
|
|
99
|
+
action: "get_spatial_info" | "get_bounds";
|
|
100
|
+
include_children: boolean;
|
|
101
|
+
node_path?: string | undefined;
|
|
102
|
+
root_path?: string | undefined;
|
|
103
|
+
type_filter?: string | undefined;
|
|
104
|
+
max_results?: number | undefined;
|
|
105
|
+
within_aabb?: {
|
|
106
|
+
position: {
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
109
|
+
z: number;
|
|
110
|
+
};
|
|
111
|
+
size: {
|
|
112
|
+
x: number;
|
|
113
|
+
y: number;
|
|
114
|
+
z: number;
|
|
115
|
+
};
|
|
116
|
+
} | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
action: "get_spatial_info" | "get_bounds";
|
|
119
|
+
node_path?: string | undefined;
|
|
120
|
+
root_path?: string | undefined;
|
|
121
|
+
include_children?: boolean | undefined;
|
|
122
|
+
type_filter?: string | undefined;
|
|
123
|
+
max_results?: number | undefined;
|
|
124
|
+
within_aabb?: {
|
|
125
|
+
position: {
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
z: number;
|
|
129
|
+
};
|
|
130
|
+
size: {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
z: number;
|
|
134
|
+
};
|
|
135
|
+
} | undefined;
|
|
136
|
+
}>>;
|
|
137
|
+
export declare const scene3dTools: AnyToolDefinition[];
|
|
138
|
+
//# sourceMappingURL=scene3d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene3d.d.ts","sourceRoot":"","sources":["../../src/tools/scene3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAiG1D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyElB,CAAC;AAEH,eAAO,MAAM,YAAY,EAAgB,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineTool } from '../core/define-tool.js';
|
|
3
|
+
const Vector3Schema = z.object({
|
|
4
|
+
x: z.number(),
|
|
5
|
+
y: z.number(),
|
|
6
|
+
z: z.number(),
|
|
7
|
+
});
|
|
8
|
+
const AABBInputSchema = z.object({
|
|
9
|
+
position: Vector3Schema.describe('Min corner of the AABB'),
|
|
10
|
+
size: Vector3Schema.describe('Size of the AABB'),
|
|
11
|
+
});
|
|
12
|
+
const Scene3DSchema = z
|
|
13
|
+
.object({
|
|
14
|
+
action: z
|
|
15
|
+
.enum(['get_spatial_info', 'get_bounds'])
|
|
16
|
+
.describe('Action: get_spatial_info (node spatial data), get_bounds (combined AABB)'),
|
|
17
|
+
node_path: z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('Path to the Node3D (required for get_spatial_info)'),
|
|
21
|
+
root_path: z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('Path to search root (get_bounds only, defaults to scene root)'),
|
|
25
|
+
include_children: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.optional()
|
|
28
|
+
.default(false)
|
|
29
|
+
.describe('Include child nodes (get_spatial_info only)'),
|
|
30
|
+
type_filter: z
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('Filter by node type, e.g. "MeshInstance3D" (get_spatial_info only)'),
|
|
34
|
+
max_results: z
|
|
35
|
+
.number()
|
|
36
|
+
.int()
|
|
37
|
+
.positive()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Limit number of results (get_spatial_info only). Defaults to 50 when include_children=true. Set higher (e.g., 500) if needed.'),
|
|
40
|
+
within_aabb: AABBInputSchema.optional().describe('Only include nodes whose global position is within this AABB (get_spatial_info only)'),
|
|
41
|
+
})
|
|
42
|
+
.refine((data) => {
|
|
43
|
+
switch (data.action) {
|
|
44
|
+
case 'get_spatial_info':
|
|
45
|
+
return !!data.node_path;
|
|
46
|
+
case 'get_bounds':
|
|
47
|
+
return true;
|
|
48
|
+
default:
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
message: 'Missing required fields for action. get_spatial_info requires node_path.',
|
|
53
|
+
});
|
|
54
|
+
function formatVector3(v) {
|
|
55
|
+
return `(${v.x.toFixed(3)}, ${v.y.toFixed(3)}, ${v.z.toFixed(3)})`;
|
|
56
|
+
}
|
|
57
|
+
function formatAABB(aabb) {
|
|
58
|
+
return `pos: ${formatVector3(aabb.position)}, size: ${formatVector3(aabb.size)}`;
|
|
59
|
+
}
|
|
60
|
+
export const scene3d = defineTool({
|
|
61
|
+
name: 'scene3d',
|
|
62
|
+
description: 'Get spatial information for 3D nodes: global transforms, bounding boxes, visibility. Use get_spatial_info for node details, get_bounds for combined AABB of a subtree.',
|
|
63
|
+
schema: Scene3DSchema,
|
|
64
|
+
async execute(args, { godot }) {
|
|
65
|
+
switch (args.action) {
|
|
66
|
+
case 'get_spatial_info': {
|
|
67
|
+
const DEFAULT_LIMIT = 50;
|
|
68
|
+
let effectiveLimit = args.max_results;
|
|
69
|
+
if (effectiveLimit === undefined && args.include_children) {
|
|
70
|
+
effectiveLimit = DEFAULT_LIMIT;
|
|
71
|
+
}
|
|
72
|
+
const result = await godot.sendCommand('get_spatial_info', {
|
|
73
|
+
node_path: args.node_path,
|
|
74
|
+
include_children: args.include_children,
|
|
75
|
+
type_filter: args.type_filter,
|
|
76
|
+
max_results: effectiveLimit,
|
|
77
|
+
within_aabb: args.within_aabb,
|
|
78
|
+
});
|
|
79
|
+
if (result.count === 0) {
|
|
80
|
+
return 'No matching Node3D nodes found';
|
|
81
|
+
}
|
|
82
|
+
const lines = result.nodes.map((n) => {
|
|
83
|
+
let line = `${n.path} (${n.type})\n`;
|
|
84
|
+
line += ` position: ${formatVector3(n.global_position)}\n`;
|
|
85
|
+
line += ` rotation: ${formatVector3(n.global_rotation)} rad\n`;
|
|
86
|
+
line += ` scale: ${formatVector3(n.global_scale)}\n`;
|
|
87
|
+
line += ` visible: ${n.visible}`;
|
|
88
|
+
if (n.global_aabb) {
|
|
89
|
+
line += `\n global_aabb: ${formatAABB(n.global_aabb)}`;
|
|
90
|
+
}
|
|
91
|
+
return line;
|
|
92
|
+
});
|
|
93
|
+
let output = `Found ${result.count} Node3D node(s):\n\n${lines.join('\n\n')}`;
|
|
94
|
+
if (result.truncated) {
|
|
95
|
+
const limitNote = args.max_results === undefined
|
|
96
|
+
? ` Set max_results higher (e.g., 100 or 500) to see more.`
|
|
97
|
+
: '';
|
|
98
|
+
output += `\n\n(Results truncated at ${result.max_results}.${limitNote})`;
|
|
99
|
+
}
|
|
100
|
+
return output;
|
|
101
|
+
}
|
|
102
|
+
case 'get_bounds': {
|
|
103
|
+
const result = await godot.sendCommand('get_scene_bounds', {
|
|
104
|
+
root_path: args.root_path,
|
|
105
|
+
});
|
|
106
|
+
return (`Scene bounds for ${result.root_path}:\n` +
|
|
107
|
+
` Visual nodes: ${result.node_count}\n` +
|
|
108
|
+
` Combined AABB: ${formatAABB(result.combined_aabb)}\n` +
|
|
109
|
+
` Min: ${formatVector3(result.combined_aabb.position)}\n` +
|
|
110
|
+
` Max: ${formatVector3(result.combined_aabb.end)}`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
export const scene3dTools = [scene3d];
|
|
116
|
+
//# sourceMappingURL=scene3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene3d.js","sourceRoot":"","sources":["../../src/tools/scene3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA0BpD,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,C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