更新大量官方api工具,目前已支持超过150个工具调用,支持除了预制体操作之外的所有cocos 操作。同时mcp端口更健壮,ai使用起来准确率更高。修复大量bug
This commit is contained in:
@@ -11,6 +11,10 @@ import { DebugTools } from './tools/debug-tools';
|
||||
import { PreferencesTools } from './tools/preferences-tools';
|
||||
import { ServerTools } from './tools/server-tools';
|
||||
import { BroadcastTools } from './tools/broadcast-tools';
|
||||
import { SceneAdvancedTools } from './tools/scene-advanced-tools';
|
||||
import { SceneViewTools } from './tools/scene-view-tools';
|
||||
import { ReferenceImageTools } from './tools/reference-image-tools';
|
||||
import { AssetAdvancedTools } from './tools/asset-advanced-tools';
|
||||
|
||||
export class MCPServer {
|
||||
private settings: MCPServerSettings;
|
||||
@@ -36,6 +40,10 @@ export class MCPServer {
|
||||
this.tools.preferences = new PreferencesTools();
|
||||
this.tools.server = new ServerTools();
|
||||
this.tools.broadcast = new BroadcastTools();
|
||||
this.tools.sceneAdvanced = new SceneAdvancedTools();
|
||||
this.tools.sceneView = new SceneViewTools();
|
||||
this.tools.referenceImage = new ReferenceImageTools();
|
||||
this.tools.assetAdvanced = new AssetAdvancedTools();
|
||||
console.log('[MCPServer] Tools initialized successfully');
|
||||
} catch (error) {
|
||||
console.error('[MCPServer] Error initializing tools:', error);
|
||||
|
||||
Reference in New Issue
Block a user