mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-20 12:55:21 +02:00
Fix cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user