UNPKG

@akiojin/unity-mcp-server

Version:

MCP server and Unity Editor bridge — enables AI assistants to control Unity for AI-assisted workflows

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); } }