@akiojin/unity-editor-mcp
Version:
MCP server for Unity Editor integration - enables AI assistants to control Unity Editor
20 lines (18 loc) • 650 B
JavaScript
import { BaseToolHandler } from '../base/BaseToolHandler.js';
import { getComponentValuesToolDefinition, getComponentValuesHandler } from '../../tools/analysis/getComponentValues.js';
/**
* Handler for the get_component_values tool
*/
export class GetComponentValuesToolHandler extends BaseToolHandler {
constructor(unityConnection) {
super(
getComponentValuesToolDefinition.name,
getComponentValuesToolDefinition.description,
getComponentValuesToolDefinition.inputSchema
);
this.unityConnection = unityConnection;
}
async execute(args) {
return getComponentValuesHandler(this.unityConnection, args);
}
}