Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DaxianLee/cocos-mcp-server
/ functions
Functions
464 in github.com/DaxianLee/cocos-mcp-server
⨍
Functions
464
◇
Types & classes
64
↓ 13 callers
Method
runTest
(tool: string, method: string, params: any)
source/test/tool-tester.ts:15
↓ 11 callers
Method
getComponentPropertyValue
(componentData: any, propertyName: string, defaultValue?: any)
source/tools/prefab-tools.ts:2761
↓ 10 callers
Method
callTool
(tool: string, args: any = {})
source/test/mcp-tool-tester.ts:45
↓ 9 callers
Method
getComponents
(nodeUuid: string)
source/tools/component-tools.ts:321
↓ 7 callers
Method
saveSettings
()
source/tools/tool-manager.ts:420
↓ 6 callers
Method
createColorObject
(data: any)
source/tools/prefab-tools.ts:2734
↓ 6 callers
Method
execute
(toolName: string, args: any)
source/types/index.ts:126
↓ 6 callers
Method
getEnabledTools
()
source/tools/tool-manager.ts:401
↓ 6 callers
Method
getNodeInfo
(uuid: string)
source/tools/node-tools.ts:500
↓ 5 callers
Method
start
()
source/mcp-server.ts:57
↓ 5 callers
Method
updateEnabledTools
(enabledTools: any[])
source/mcp-server.ts:156
↓ 4 callers
Function
ensureSettingsDir
()
source/settings.ts:27
↓ 4 callers
Method
generateFileId
()
source/tools/prefab-tools.ts:1254
↓ 4 callers
Method
getCurrentConfiguration
()
source/tools/tool-manager.ts:246
↓ 4 callers
Method
getTools
()
source/types/index.ts:125
↓ 4 callers
Method
processComponentProperty
* 处理组件属性值,确保格式与手动创建的预制体一致
source/tools/prefab-tools.ts:2018
↓ 4 callers
Function
readSettings
()
source/settings.ts:34
↓ 4 callers
Method
stop
()
source/mcp-server.ts:316
↓ 3 callers
Method
extractComponentProperties
(component: any)
source/tools/component-tools.ts:426
↓ 3 callers
Method
extractValue
(data: any)
source/tools/prefab-tools.ts:2782
↓ 3 callers
Method
getAssetInfo
(assetPath: string)
source/tools/project-tools.ts:587
↓ 3 callers
Method
getComponentInfo
(nodeUuid: string, componentType: string)
source/tools/component-tools.ts:367
↓ 3 callers
Method
getSettings
()
source/mcp-server.ts:162
↓ 3 callers
Function
getSettingsPath
()
source/settings.ts:19
↓ 3 callers
Method
getToolManagerSettingsPath
()
source/tools/tool-manager.ts:21
↓ 3 callers
Method
normalizeTransformValue
(value: any, type: 'position' | 'rotation' | 'scale', is2D: boolean)
source/tools/node-tools.ts:914
↓ 3 callers
Function
processNode
(node: any)
source/scene.ts:297
↓ 3 callers
Method
queryServerIPList
()
source/tools/server-tools.ts:82
↓ 3 callers
Function
saveChanges
()
source/panels/default/index.ts:221
↓ 2 callers
Method
addBroadcastListener
(messageType: string)
source/tools/broadcast-tools.ts:116
↓ 2 callers
Method
addComponent
(nodeUuid: string, componentType: string)
source/tools/component-tools.ts:206
↓ 2 callers
Method
changeGizmoCoordinate
(type: string)
source/tools/scene-view-tools.ts:346
↓ 2 callers
Method
changeGizmoPivot
(name: string)
source/tools/scene-view-tools.ts:301
↓ 2 callers
Method
changeGizmoTool
(name: string)
source/tools/scene-view-tools.ts:272
↓ 2 callers
Method
changeViewMode2D3D
(is2D: boolean)
source/tools/scene-view-tools.ts:375
↓ 2 callers
Method
convertNodeToPrefabInstance
* 尝试将原始节点转换为预制体实例
source/tools/prefab-tools.ts:2346
↓ 2 callers
Method
createConfiguration
(name: string, description?: string)
source/tools/tool-manager.ts:253
↓ 2 callers
Method
createPrefab
(args: any)
source/tools/prefab-tools.ts:761
↓ 2 callers
Method
createStandardPrefabContent
* 创建符合 Cocos Creator 标准的预制体内容 * 完整实现递归节点树处理,匹配引擎标准格式
source/tools/prefab-tools.ts:1652
↓ 2 callers
Method
createVec2Object
(data: any)
source/tools/prefab-tools.ts:2706
↓ 2 callers
Method
ensureSettingsDir
()
source/tools/tool-manager.ts:25
↓ 2 callers
Method
executeToolCall
(toolName: string, args: any)
source/mcp-server.ts:137
↓ 2 callers
Method
fixCommonJsonIssues
(jsonStr: string)
source/mcp-server.ts:295
↓ 2 callers
Method
generateUUID
()
source/tools/prefab-tools.ts:1117
↓ 2 callers
Method
getAllPreferences
()
source/tools/preferences-tools.ts:219
↓ 2 callers
Method
getAssets
(type: string = 'all', folder: string = 'db://assets')
source/tools/project-tools.ts:617
↓ 2 callers
Method
getAvailableTools
()
source/mcp-server.ts:152
↓ 2 callers
Method
getChildrenToProcess
(nodeData: any)
source/tools/prefab-tools.ts:1095
↓ 2 callers
Method
getNodeData
(nodeUuid: string)
source/tools/prefab-tools.ts:896
↓ 2 callers
Method
getNodePath
(node: any)
source/tools/node-tools.ts:687
↓ 2 callers
Method
getPrefabInfo
(prefabPath: string)
source/tools/prefab-tools.ts:1366
↓ 2 callers
Method
getSceneList
()
source/tools/scene-tools.ts:159
↓ 2 callers
Function
getToolManagerSettingsPath
()
source/settings.ts:23
↓ 2 callers
Method
is2DNode
(nodeInfo: any)
source/tools/node-tools.ts:867
↓ 2 callers
Method
isValidPropertyDescriptor
(propData: any)
source/tools/component-tools.ts:1201
↓ 2 callers
Function
loadToolManagerState
()
source/panels/default/index.ts:148
↓ 2 callers
Method
parseColorString
(colorStr: string)
source/tools/component-tools.ts:1510
↓ 2 callers
Method
queryGizmoCoordinate
()
source/tools/scene-view-tools.ts:359
↓ 2 callers
Method
queryGizmoPivot
()
source/tools/scene-view-tools.ts:314
↓ 2 callers
Method
queryGizmoToolName
()
source/tools/scene-view-tools.ts:285
↓ 2 callers
Method
queryGridVisible
()
source/tools/scene-view-tools.ts:418
↓ 2 callers
Method
queryIconGizmo3D
()
source/tools/scene-view-tools.ts:447
↓ 2 callers
Method
queryIconGizmoSize
()
source/tools/scene-view-tools.ts:477
↓ 2 callers
Method
queryServerPort
()
source/tools/server-tools.ts:116
↓ 2 callers
Method
queryViewMode2D3D
()
source/tools/scene-view-tools.ts:388
↓ 2 callers
Method
removeComponent
(nodeUuid: string, componentType: string)
source/tools/component-tools.ts:283
↓ 2 callers
Method
saveAssetFile
(filePath: string, content: string)
source/tools/prefab-tools.ts:1303
↓ 2 callers
Method
setGridVisible
(visible: boolean)
source/tools/scene-view-tools.ts:405
↓ 2 callers
Method
setIconGizmo3D
(is3D: boolean)
source/tools/scene-view-tools.ts:434
↓ 2 callers
Method
setIconGizmoSize
(size: number)
source/tools/scene-view-tools.ts:464
↓ 2 callers
Method
setNodeTransform
(args: any)
source/tools/node-tools.ts:749
↓ 2 callers
Method
setupTools
()
source/mcp-server.ts:91
↓ 2 callers
Method
updateToolStatus
(configId: string, category: string, toolName: string, enabled: boolean)
source/tools/tool-manager.ts:321
↓ 2 callers
Method
uuidToCompressedId
* 将UUID转换为Cocos Creator的压缩格式 * 基于真实Cocos Creator编辑器的压缩算法实现 * 前5个hex字符保持不变,剩余27个字符压缩成18个字符
source/tools/prefab-tools.ts:1837
↓ 1 callers
Method
addButtonProperties
(component: any, componentData: any)
source/tools/prefab-tools.ts:2678
↓ 1 callers
Method
addComponentSpecificProperties
(component: any, componentData: any, componentType: string)
source/tools/prefab-tools.ts:2598
↓ 1 callers
Method
addGenericProperties
(component: any, componentData: any)
source/tools/prefab-tools.ts:2691
↓ 1 callers
Method
addLabelProperties
(component: any, componentData: any)
source/tools/prefab-tools.ts:2651
↓ 1 callers
Method
addReferenceImage
(paths: string[])
source/tools/reference-image-tools.ts:201
↓ 1 callers
Method
addSpriteProperties
(component: any, componentData: any)
source/tools/prefab-tools.ts:2630
↓ 1 callers
Method
addUITransformProperties
(component: any, componentData: any)
source/tools/prefab-tools.ts:2620
↓ 1 callers
Method
alignCameraWithView
()
source/tools/scene-view-tools.ts:509
↓ 1 callers
Method
alignViewWithNode
()
source/tools/scene-view-tools.ts:522
↓ 1 callers
Method
analyzeProperty
(component: any, propertyName: string)
source/tools/component-tools.ts:1246
↓ 1 callers
Method
applyPrefabToNode
(nodeUuid: string, prefabUuid: string)
source/tools/prefab-tools.ts:643
↓ 1 callers
Method
attachScript
(nodeUuid: string, scriptPath: string)
source/tools/component-tools.ts:1091
↓ 1 callers
Method
batchDeleteAssets
(urls: string[])
source/tools/asset-advanced-tools.ts:400
↓ 1 callers
Method
batchImportAssets
(args: any)
source/tools/asset-advanced-tools.ts:312
↓ 1 callers
Method
beginUndoRecording
(nodeUuid: string)
source/tools/scene-advanced-tools.ts:617
↓ 1 callers
Method
buildHierarchy
(node: any, includeComponents: boolean)
source/tools/scene-tools.ts:428
↓ 1 callers
Method
buildProject
(args: any)
source/tools/project-tools.ts:469
↓ 1 callers
Method
cancelUndoRecording
(undoId: string)
source/tools/scene-advanced-tools.ts:646
↓ 1 callers
Method
checkAndRedirectNodeProperties
* 检测是否为节点属性,如果是则重定向到对应的节点方法
source/tools/component-tools.ts:1653
↓ 1 callers
Method
checkBuilderStatus
()
source/tools/project-tools.ts:703
↓ 1 callers
Function
checkCreatorTypesVersion
(version)
scripts/preinstall.js:9
↓ 1 callers
Method
checkServerConnectivity
(timeout: number = 5000)
source/tools/server-tools.ts:182
↓ 1 callers
Method
clearAllReferenceImages
()
source/tools/reference-image-tools.ts:384
↓ 1 callers
Method
clearBroadcastLog
()
source/tools/broadcast-tools.ts:233
↓ 1 callers
Method
clearConsole
()
source/tools/debug-tools.ts:240
↓ 1 callers
Method
closeScene
()
source/tools/scene-tools.ts:470
next →
1–100 of 464, ranked by callers