@opentiny/webmcp-cli 0.0.4 → 0.0.6

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.
@@ -299,7 +299,7 @@
299
299
  }
300
300
  });
301
301
  if (typeof mcp.listTools === "function") {
302
- mcp.listTools().then((list) => {
302
+ mcp.getTools().then((list) => {
303
303
  window.__webmcpcli_tools = list;
304
304
  }).catch(() => {
305
305
  });
@@ -31,7 +31,7 @@
31
31
  }
32
32
  var mcp = navigator.modelContext;
33
33
  if (!mcp || typeof mcp.registerTool !== "function") {
34
- console.warn("[webmcp-tools] editor.csdn.net: navigator.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
34
+ console.warn("[webmcp-tools] editor.csdn.net: document.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
35
35
  } else if (!window.__webmcptools_editorcsdnnet) {
36
36
  try {
37
37
  mcp.registerTool({
@@ -4,7 +4,7 @@
4
4
  // webmcp-tools/excalidraw.com/index.ts
5
5
  var _excalidrawMcp = navigator.modelContext;
6
6
  if (!_excalidrawMcp || typeof _excalidrawMcp.registerTool !== "function") {
7
- console.warn("[webmcp-tools] excalidraw.com: navigator.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
7
+ console.warn("[webmcp-tools] excalidraw.com: document.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
8
8
  } else if (!window.__webmcptools_excalidrawcom) {
9
9
  ;
10
10
  window.__webmcptools_excalidrawcom = true;
@@ -10,7 +10,7 @@
10
10
  }
11
11
  var mcp = navigator.modelContext;
12
12
  if (!mcp || typeof mcp.registerTool !== "function") {
13
- console.warn("[webmcp-tools] juejin.cn: navigator.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
13
+ console.warn("[webmcp-tools] juejin.cn: document.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
14
14
  } else if (!window.__webmcptools_juejincn) {
15
15
  try {
16
16
  window.__webmcpcli_beforeGetBrowserState = () => {
@@ -4,7 +4,7 @@
4
4
  // webmcp-tools/my.oschina.net/index.ts
5
5
  var mcp = navigator.modelContext;
6
6
  if (!mcp || typeof mcp.registerTool !== "function") {
7
- console.warn("[webmcp-tools] my.oschina.net: navigator.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
7
+ console.warn("[webmcp-tools] my.oschina.net: document.modelContext.registerTool \u672A\u5C31\u7EEA\uFF0C\u8DF3\u8FC7\u6CE8\u5165");
8
8
  } else if (!window.__webmcptools_myoschinanet) {
9
9
  ;
10
10
  window.__webmcptools_myoschinanet = true;