UNPKG

unity-editor-mcp

Version:

MCP server for Unity Editor integration - enables AI assistants to control Unity Editor

20 lines (18 loc) 631 B
import { BaseToolHandler } from '../base/BaseToolHandler.js'; import { getSceneInfoToolDefinition, getSceneInfoHandler } from '../../tools/scene/getSceneInfo.js'; /** * Handler for get_scene_info tool */ export class GetSceneInfoToolHandler extends BaseToolHandler { constructor(unityConnection) { super( getSceneInfoToolDefinition.name, getSceneInfoToolDefinition.description, getSceneInfoToolDefinition.inputSchema ); this.unityConnection = unityConnection; } async execute(args) { return getSceneInfoHandler(this.unityConnection, args); } }