secondbrainos-mcp-server 1.10.0 → 1.10.1
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/bin/cli.js +2 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import axios from 'axios';
|
|
|
4
4
|
import { promises as fs } from 'fs';
|
|
5
5
|
import * as fsSync from 'fs'; // Add this line to import the synchronous fs functions
|
|
6
6
|
import path from 'path';
|
|
7
|
-
import { fileURLToPath } from 'url';
|
|
7
|
+
import { fileURLToPath, pathToFileURL } from 'url';
|
|
8
8
|
import { homedir } from 'os';
|
|
9
9
|
import { exec } from 'child_process';
|
|
10
10
|
import { promisify } from 'util';
|
|
@@ -211,7 +211,7 @@ async function serve() {
|
|
|
211
211
|
// Import and run the server
|
|
212
212
|
const packageRoot = path.resolve(__dirname, '..');
|
|
213
213
|
const serverModule = path.join(packageRoot, 'build', 'index.js');
|
|
214
|
-
await import(serverModule);
|
|
214
|
+
await import(pathToFileURL(serverModule).href);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
async function main() {
|