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 f9b2c6c commit d55da54Copy full SHA for d55da54
src/bin/mcp-proxy.ts
@@ -47,6 +47,11 @@ const argv = await yargs(hideBin(process.argv))
47
describe: "The endpoint to listen on",
48
type: "string",
49
},
50
+ gracefulShutdownTimeout: {
51
+ default: 5000,
52
+ describe: "The timeout (in milliseconds) for graceful shutdown",
53
+ type: "number",
54
+ },
55
host: {
56
default: "::",
57
describe: "The host to listen on",
@@ -179,7 +184,7 @@ const main = async () => {
179
184
180
185
setTimeout(() => {
181
186
process.exit(0);
182
- }, 1000).unref();
187
+ }, argv.gracefulShutdownTimeout).unref();
183
188
});
189
} catch (error) {
190
console.error("could not start the proxy", error);
0 commit comments