Create a new GDScript file
AI agents use create_script to create or update resources in Godot MCP Enhanced — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Godot MCP Enhanced environment.
The tool creates a new script file, which is a Write operation (creates data reversibly). It does not execute code, delete data permanently, or move money. Severity is medium because creating malicious scripts could introduce bugs or security issues into a game project, but the effect is limited to the local project and reversible. Confidence is high because the description clearly indicates a file creation action.
From the tool's definition Tool description states 'Create a new GDScript file' — a create operation that adds a new file to the project. This is reversible (the file can be deleted).
Attacks that exploit this kind of access
Create a new GDScript file. It is categorised as a Write tool in the Godot MCP Enhanced MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Godot MCP Enhanced MCP server in PolicyLayer and add a rule for create_script: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Godot MCP Enhanced. Nothing to install.
create_script is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the create_script rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for create_script. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
create_script is provided by the Godot MCP Enhanced MCP server (xinyuzjj/godot-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
create_script is one line of Godot MCP Enhanced's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →