We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8bfe46 commit 370d07aCopy full SHA for 370d07a
epicshop/mcp-dev/dev.js
@@ -288,7 +288,7 @@ function startProxyServer(server) {
288
/**
289
* Setup graceful shutdown
290
*/
291
-function setupGracefulShutdown() {
+function setupGracefulShutdown({ proxy, server }) {
292
const closeListeners = closeWithGrace(
293
{ delay: 500 },
294
async function ({ signal, err }) {
@@ -317,7 +317,7 @@ async function main() {
317
// Create and start proxy server
318
const { server, proxy } = createProxy()
319
startProxyServer(server)
320
- setupGracefulShutdown(server, proxy)
+ setupGracefulShutdown({ server, proxy })
321
} catch (error) {
322
devServerProcess?.kill()
323
inspectorProcess?.kill()
0 commit comments