Skip to main content
Glama

MCP Server for Unity

by zabaglione

asset_create_script

Generates and saves a new C# script in a Unity project. Specify the file name, content, and optional folder path to organize scripts efficiently within the Assets/Scripts directory.

Instructions

Create a new C# script in the Unity project

Input Schema

NameRequiredDescriptionDefault
contentYesContent of the script
fileNameYesName of the script file (without .cs extension)
folderNoFolder path relative to Assets/Scripts (optional)

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content of the script", "type": "string" }, "fileName": { "description": "Name of the script file (without .cs extension)", "type": "string" }, "folder": { "description": "Folder path relative to Assets/Scripts (optional)", "type": "string" } }, "required": [ "fileName", "content" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zabaglione/mcp-server-unity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server