We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b53b6 commit 03c7145Copy full SHA for 03c7145
src/index.ts
@@ -51,7 +51,9 @@ async function loadAllTools(): Promise<ToolModule[]> {
51
for (const file of toolFiles) {
52
try {
53
const toolPath = join(toolsDir, file);
54
- const toolModule = await import(toolPath);
+ // If the OS is windows, prepend 'file://' to the path
55
+ const isWindows = process.platform === 'win32';
56
+ const toolModule = await import(isWindows ? `file://${toolPath}`: toolPath);
57
58
if (
59
toolModule.method &&
0 commit comments