Skip to main content
Glama

Cocos MCP Log Bridge

by czh2774
SceneCommands.ts918 B
import { SceneService } from '../Services/SceneService'; /** * 打开场景命令处理函数 * @param params 包含 sceneUuid 的参数对象 * @returns 操作结果 */ export async function handleOpenScene(params: { sceneUuid: string }): Promise<any> { const { sceneUuid } = params; if (!sceneUuid) { return { success: false, error: 'Missing sceneUuid parameter' }; } try { const sceneService = SceneService.getInstance(); const success = await sceneService.openScene(sceneUuid); return { success, message: success ? 'Scene opened successfully' : 'Failed to open scene' }; } catch (error: any) { console.error('Error in handleOpenScene:', error); return { success: false, error: error.message || 'Unknown error occurred' }; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/czh2774/cocosMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server