We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a138d9 commit 16e9da6Copy full SHA for 16e9da6
2 files changed
packages/vue3/source/lcap_modules/@lcap/ui-libraries-mcp@0.0.3/zip.tgz
64 Bytes
packages/vue3/source/src/init.ts
@@ -34,8 +34,8 @@ import './index.css';
34
// 注册组件库MCP JSON
35
try {
36
const registerTool = UIMCP.registerTool;
37
- if (typeof registerTool === 'function' && window.lcapStandardUI?.mcpToolJson) {
38
- registerTool(window.lcapStandardUI.mcpToolJson?.tools);
+ if (typeof registerTool === 'function' && window.lcapStandardUI?.mcpToolJson?.result?.tools) {
+ registerTool(window.lcapStandardUI.mcpToolJson?.result.tools);
39
}
40
} catch (error) {
41
console.error('注册组件库MCP JSON失败:', error);
0 commit comments