Skip to content

Instantly share code, notes, and snippets.

@AlexMerzlikin
AlexMerzlikin / GamePlayTool.cs
Created April 22, 2026 22:06
Sample of MCP custom tool that lets an LLM control gameplay
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MCPForUnity.Editor.Helpers;
using MCPForUnity.Editor.Tools;
using Newtonsoft.Json.Linq;
using UnityEditor;
using UnityEngine;
namespace HumanFactory.Editor