chore: A round of "yarn fix" for everyone (#75)

This commit is contained in:
Felix Rieseberg 2025-07-18 10:09:52 -07:00 • committed by GitHub
commit 7c9d61d9e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,20 +13,23 @@ const loadServer = async () => {
try {
// Save original argv
const originalArgv = process.argv;
// The filesystem server expects directories as command line arguments
process.argv = [process.argv[0], process.argv[1], ...args];
// Dynamically import the ESM module
await import('@modelcontextprotocol/server-filesystem/dist/index.js');
await import("@modelcontextprotocol/server-filesystem/dist/index.js");
// Restore original argv
process.argv = originalArgv;
} catch (error) {
console.error('Failed to load @modelcontextprotocol/server-filesystem:', error);
console.error(
"Failed to load @modelcontextprotocol/server-filesystem:",
error,
);
process.exit(1);
}
};
// Execute the async function
loadServer();
loadServer();