@opentiny/webmcp-cli 0.0.4 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  // webmcp-tools/www.baidu.com/index.ts
5
5
  var _baiduMcp = navigator.modelContext;
6
6
  if (!_baiduMcp || typeof _baiduMcp.registerTool !== "function") {
7
- console.warn("[webmcp-tools] www.baidu.com: navigator.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
7
+ console.warn("[webmcp-tools] www.baidu.com: document.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
8
8
  } else if (!window.__webmcptools_wwwbaiducom) {
9
9
  ;
10
10
  window.__webmcptools_wwwbaiducom = true;
@@ -262,7 +262,7 @@
262
262
  }
263
263
  });
264
264
  if (typeof mcp.listTools === "function") {
265
- mcp.listTools().then((list) => {
265
+ mcp.getTools().then((list) => {
266
266
  window.__webmcpcli_tools = list;
267
267
  }).catch(() => {
268
268
  });