@mcp-use/cli 2.19.0-canary.1 → 2.19.0-canary.2
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.
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -530,6 +530,7 @@ var import_node_fs10 = require("fs");
|
|
|
530
530
|
var import_promises7 = require("fs/promises");
|
|
531
531
|
var import_node_module2 = require("module");
|
|
532
532
|
var import_node_path8 = __toESM(require("path"), 1);
|
|
533
|
+
var import_node_url2 = require("url");
|
|
533
534
|
|
|
534
535
|
// ../../node_modules/.pnpm/open@11.0.0/node_modules/open/index.js
|
|
535
536
|
var import_node_process8 = __toESM(require("process"), 1);
|
|
@@ -4980,7 +4981,7 @@ async function generateToolRegistryTypesForServer(projectPath, serverFileRelativ
|
|
|
4980
4981
|
globalThis.__mcpUseHmrMode = true;
|
|
4981
4982
|
globalThis.__mcpUseLastServer = void 0;
|
|
4982
4983
|
const { tsImport } = await import("tsx/esm/api");
|
|
4983
|
-
await tsImport(serverFile, {
|
|
4984
|
+
await tsImport((0, import_node_url2.pathToFileURL)(serverFile).href, {
|
|
4984
4985
|
parentURL: importMetaUrl,
|
|
4985
4986
|
tsconfig: import_node_path8.default.join(projectPath, "tsconfig.json")
|
|
4986
4987
|
});
|
|
@@ -5868,7 +5869,7 @@ program.command("dev").description("Run development server with auto-reload and
|
|
|
5868
5869
|
);
|
|
5869
5870
|
const chokidarModule = await import("chokidar");
|
|
5870
5871
|
const chokidar = chokidarModule.default || chokidarModule;
|
|
5871
|
-
const {
|
|
5872
|
+
const { fileURLToPath: fileURLToPath2 } = await import("url");
|
|
5872
5873
|
const { createRequire: createRequire3 } = await import("module");
|
|
5873
5874
|
let tsImport = null;
|
|
5874
5875
|
try {
|
|
@@ -5876,7 +5877,7 @@ program.command("dev").description("Run development server with auto-reload and
|
|
|
5876
5877
|
import_node_path8.default.join(projectPath, "package.json")
|
|
5877
5878
|
);
|
|
5878
5879
|
const tsxApiPath = projectRequire.resolve("tsx/esm/api");
|
|
5879
|
-
const tsxApi = await import(pathToFileURL(tsxApiPath).href);
|
|
5880
|
+
const tsxApi = await import((0, import_node_url2.pathToFileURL)(tsxApiPath).href);
|
|
5880
5881
|
tsImport = tsxApi.tsImport;
|
|
5881
5882
|
} catch {
|
|
5882
5883
|
console.log(
|
|
@@ -5886,13 +5887,13 @@ program.command("dev").description("Run development server with auto-reload and
|
|
|
5886
5887
|
);
|
|
5887
5888
|
}
|
|
5888
5889
|
const serverFilePath = import_node_path8.default.join(projectPath, serverFile);
|
|
5889
|
-
const serverFileUrl = pathToFileURL(serverFilePath).href;
|
|
5890
|
+
const serverFileUrl = (0, import_node_url2.pathToFileURL)(serverFilePath).href;
|
|
5890
5891
|
globalThis.__mcpUseHmrMode = true;
|
|
5891
5892
|
const importServerModule = async () => {
|
|
5892
5893
|
const previousServer = globalThis.__mcpUseLastServer;
|
|
5893
5894
|
globalThis.__mcpUseLastServer = null;
|
|
5894
5895
|
if (tsImport) {
|
|
5895
|
-
await tsImport(`${
|
|
5896
|
+
await tsImport(`${serverFileUrl}?t=${Date.now()}`, {
|
|
5896
5897
|
parentURL: importMetaUrl,
|
|
5897
5898
|
onImport: (file) => {
|
|
5898
5899
|
const filePath = file.startsWith("file://") ? fileURLToPath2(file) : file;
|