Skip to main content
Glama

MCP Server for Unity

by zabaglione

script_apply_diff

Apply unified diffs to C# scripts in Unity projects, supporting previews via dry-run mode. Integrates with the MCP Server for efficient script updates and version control.

Instructions

Apply a unified diff to a C# script

Input Schema

NameRequiredDescriptionDefault
diffYesUnified diff content to apply
optionsNoOptional diff application settings
pathYesPath to the script file

Input Schema (JSON Schema)

{ "properties": { "diff": { "description": "Unified diff content to apply", "type": "string" }, "options": { "description": "Optional diff application settings", "properties": { "dryRun": { "description": "Preview changes without applying (default: false)", "type": "boolean" } }, "type": "object" }, "path": { "description": "Path to the script file", "type": "string" } }, "required": [ "path", "diff" ], "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