@mcp-use/cli 2.19.0-canary.0 → 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 +4 -4
package/dist/index.js
CHANGED
|
@@ -510,6 +510,7 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
510
510
|
import { access, mkdir as mkdir3, readFile as readFile3, writeFile as writeFile3 } from "fs/promises";
|
|
511
511
|
import { createRequire as createRequire2 } from "module";
|
|
512
512
|
import path7 from "path";
|
|
513
|
+
import { pathToFileURL } from "url";
|
|
513
514
|
|
|
514
515
|
// ../../node_modules/.pnpm/open@11.0.0/node_modules/open/index.js
|
|
515
516
|
import process9 from "process";
|
|
@@ -4962,7 +4963,7 @@ async function generateToolRegistryTypesForServer(projectPath, serverFileRelativ
|
|
|
4962
4963
|
globalThis.__mcpUseHmrMode = true;
|
|
4963
4964
|
globalThis.__mcpUseLastServer = void 0;
|
|
4964
4965
|
const { tsImport } = await import("tsx/esm/api");
|
|
4965
|
-
await tsImport(serverFile, {
|
|
4966
|
+
await tsImport(pathToFileURL(serverFile).href, {
|
|
4966
4967
|
parentURL: import.meta.url,
|
|
4967
4968
|
tsconfig: path7.join(projectPath, "tsconfig.json")
|
|
4968
4969
|
});
|
|
@@ -5850,7 +5851,7 @@ program.command("dev").description("Run development server with auto-reload and
|
|
|
5850
5851
|
);
|
|
5851
5852
|
const chokidarModule = await import("chokidar");
|
|
5852
5853
|
const chokidar = chokidarModule.default || chokidarModule;
|
|
5853
|
-
const {
|
|
5854
|
+
const { fileURLToPath: fileURLToPath3 } = await import("url");
|
|
5854
5855
|
const { createRequire: createRequire3 } = await import("module");
|
|
5855
5856
|
let tsImport = null;
|
|
5856
5857
|
try {
|
|
@@ -5874,7 +5875,7 @@ program.command("dev").description("Run development server with auto-reload and
|
|
|
5874
5875
|
const previousServer = globalThis.__mcpUseLastServer;
|
|
5875
5876
|
globalThis.__mcpUseLastServer = null;
|
|
5876
5877
|
if (tsImport) {
|
|
5877
|
-
await tsImport(`${
|
|
5878
|
+
await tsImport(`${serverFileUrl}?t=${Date.now()}`, {
|
|
5878
5879
|
parentURL: import.meta.url,
|
|
5879
5880
|
onImport: (file) => {
|
|
5880
5881
|
const filePath = file.startsWith("file://") ? fileURLToPath3(file) : file;
|