Skip to content

Commit 16e9da6

Browse files
authored
Task-3157794747832320: add mcp zip (#295)
1 parent 0a138d9 commit 16e9da6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/vue3/source
Binary file not shown.

packages/vue3/source/src/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import './index.css';
3434
// 注册组件库MCP JSON
3535
try {
3636
const registerTool = UIMCP.registerTool;
37-
if (typeof registerTool === 'function' && window.lcapStandardUI?.mcpToolJson) {
38-
registerTool(window.lcapStandardUI.mcpToolJson?.tools);
37+
if (typeof registerTool === 'function' && window.lcapStandardUI?.mcpToolJson?.result?.tools) {
38+
registerTool(window.lcapStandardUI.mcpToolJson?.result.tools);
3939
}
4040
} catch (error) {
4141
console.error('注册组件库MCP JSON失败:', error);

0 commit comments

Comments
 (0)