Fix cleanup

This commit is contained in:
Mati Horovitz
2024-11-30 22:57:18 +02:00
parent 2b731fb70f
commit 68b880d96b

View File

@@ -313,7 +313,7 @@ async function handleToolCall(name: string, args: any): Promise<{ toolResult: Ca
const logs = await page.evaluate(() => {
Object.assign(console, window.mcpHelper.originalConsole);
const logs = window.mcpHelper.logs;
delete ( window.mcpHelper as any).logs;
delete ( window as any).mcpHelper;
return logs;
});
@@ -426,4 +426,4 @@ async function runServer() {
await server.connect(transport);
}
runServer().catch(console.error);
runServer().catch(console.error);