New project, script or shader from a template
godot_newCreates Godot 4.7 projects, typed GDScript or C# scripts, and shaders in the expected structure, with templates and options for C#, renderers, and input actions; existing files are preserved.
Instructions
Starts things the way Godot 4.7 expects them. op project: a new project in an empty folder (project.godot, a main scene with a typed root and its script, an icon, .gitignore and .gitattributes; kind 2d, 3d or ui; renderer forward_plus, mobile or gl_compatibility). dotnet: true makes it a C# project: it also writes .csproj (Godot.NET.Sdk, net8.0) and .sln as Godot generates them, and sets the assembly name. op script: a typed GDScript from a template that passes the review with no errors or warnings: node, character_2d, character_3d, area_trigger, state_machine, autoload, resource, ui_control, test_gut, test_gdunit4; the input actions a template reads (move_left, jump, ...) are added to project.godot with a default key when it lacks them, in the same godot_undo entry (input_actions: false leaves project.godot alone and lists them instead). A file that ends in .cs gets the C# form instead (a partial class named after the file, with [Export] and [Signal] where they fit): node, character_2d, character_3d, area_trigger, autoload, resource, ui_control. op shader: canvas_item, spatial, particles, sky or fog (default: spatial when the main scene is 3D, else canvas_item). Nothing that exists is overwritten. Scripts and shaders are written unless write is false; godot_undo takes them back.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"op": "<op>"
},
"name": "godot_new"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | what to make | |
| dir | No | project: the folder for the new project (created when missing) | |
| mcp | No | project: also write a .mcp.json that starts Godotwright | |
| base | No | script: the class it extends, when the template allows another | |
| file | No | script or shader: the res:// path of the new file (.gd, or .cs for a C# script) | |
| kind | No | project: the root of the main scene (default 2d) | |
| name | No | project: the game's name (default: the folder's name) | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| write | No | script or shader: false shows the file without writing it (default true) | |
| dotnet | No | project: a C# (.NET) project, with <Name>.csproj and <Name>.sln | |
| shader | No | shader: the shader type (default: spatial when the main scene is 3D, else canvas_item) | |
| renderer | No | project: the rendering method (default forward_plus) | |
| template | No | script: the template (default node); for a .cs file: node, character_2d, character_3d, area_trigger, autoload, resource or ui_control | |
| class_name | No | script: a class_name for it (a C# class always has the name of its file) | |
| merge_driver | No | project: also set up .gitattributes for godot_merge | |
| input_actions | No | script: add the input actions the template reads to project.godot when missing (default true) |