MCPVault

set_node_transform

MCP tool from Cocos MCP Server by caravanglory

设置节点变换(位置/旋转/缩放)/ Set node position, rotation, and scale

How to use it

set_node_transform is exposed by the Cocos MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the set_node_transform tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Cocos MCP Server

$claude mcp add --transport http cocos-creator http://127.0.0.1:3000/mcp
FULL COCOS MCP SERVER LISTING

Other tools in Cocos MCP Server (39)

add_component

添加组件 / Add a component to a node

apply_prefab

将节点变更应用到预制体 / Apply node changes back to the prefab asset

close_scene

关闭当前场景 / Close the current scene

copy_asset

复制资源 / Copy an asset to a new path

create_asset

创建新资源 / Create a new asset

create_node

创建新节点 / Create a new node

create_prefab

从节点创建预制体 / Create a prefab asset from a node

create_scene

创建新场景 / Create a new scene

delete_node

删除节点 / Delete a node

detect_node_type

检测节点类型 / Detect the type of a node

duplicate_node

复制节点 / Duplicate a node

edit_prefab

进入预制体编辑模式 / Enter prefab editing mode

execute_component_method

执行组件方法 / Call a method on a component

exit_prefab_edit

退出预制体编辑模式 / Exit prefab editing mode

find_node_by_name

按名称查找节点 / Find a node by name

find_nodes

按条件查找节点 / Find nodes by filter criteria

get_all_nodes

获取场景所有节点 / Get all nodes in the scene

get_asset_info

获取资源信息 / Get information about an asset

get_assets

获取资源列表 / List assets in the project

get_component_info

获取组件信息 / Get component information

get_components

获取节点所有组件 / Get all components on a node

get_current_scene

获取当前场景信息 / Get current scene information

get_node_info

获取节点详细信息 / Get detailed information about a node

get_scene_hierarchy

获取场景层级结构 / Get the full scene node hierarchy

get_scene_list

获取项目场景列表 / List all scenes in the project

import_asset

导入资源文件 / Import an asset file

instantiate_prefab

实例化预制体 / Instantiate a prefab into the scene

move_asset

移动资源 / Move an asset to a new path

move_node

移动节点到新父节点 / Move a node to a new parent

open_scene

打开指定场景 / Open a scene by path

remove_component

移除组件 / Remove a component from a node

reset_component

重置组件属性 / Reset a component to its default values

reset_node_property

重置节点属性 / Reset a node property to its default

revert_prefab

从预制体还原节点 / Revert a prefab instance to the asset

save_prefab

保存预制体 / Save the current prefab

save_scene

保存当前场景 / Save the current scene

save_scene_as

场景另存为 / Save the current scene to a new path

set_component_property

设置组件属性 / Set a component property value

set_node_property

设置节点属性 / Set a property on a node