Hi,
We're encountering a performance issue with this setup. It seems the server restarts every time the following command is executed:
return await stdioServerAdapter(serverParams, event, context);
This triggers all the server startup scripts inside the ./mcp-server.js file, including database connections, secret fetching, and other initialization logic.
Is there a recommended way to cache the server instance so that it starts only once and stays in memory for future invocations?
Thanks!