-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
👋 I deployed this package a while ago on a SvelteKit site using Node.js and there appears to be a memory leak where each connection instance is not being cleaned up. Here's a small heap snapshot comparison:
Recently started (17 instances of McpServer)
Running for a few hours (2121 instances of McpServer)
I am using the createMcpHandler function as instructed and can't see anything obvious on my side that could cause this. Here is the code for reference:
https://github.com/khromov/llmctx/blob/main-custom/src/lib/mcpHandler.ts#L43C24-L43C40
Metadata
Metadata
Assignees
Labels
No labels