@mushi-mushi/mcp 0.18.2 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3153,10 +3153,23 @@ async function main() {
|
|
|
3153
3153
|
});
|
|
3154
3154
|
const transport = new StdioServerTransport();
|
|
3155
3155
|
await server.connect(transport);
|
|
3156
|
+
let shuttingDown = false;
|
|
3157
|
+
let pollTimer;
|
|
3158
|
+
const shutdown = (exitCode) => {
|
|
3159
|
+
if (shuttingDown) return;
|
|
3160
|
+
shuttingDown = true;
|
|
3161
|
+
if (pollTimer) clearInterval(pollTimer);
|
|
3162
|
+
void transport.close().finally(() => process.exit(exitCode));
|
|
3163
|
+
};
|
|
3164
|
+
process.stdin.on("end", () => shutdown(0));
|
|
3165
|
+
process.stdin.on("close", () => shutdown(0));
|
|
3166
|
+
process.on("SIGINT", () => shutdown(0));
|
|
3167
|
+
process.on("SIGTERM", () => shutdown(0));
|
|
3156
3168
|
if (PROJECT_ID && API_ENDPOINT) {
|
|
3157
3169
|
let lastInventoryAt = null;
|
|
3158
3170
|
const POLL_INTERVAL_MS = 6e4;
|
|
3159
3171
|
const pollInventory = async () => {
|
|
3172
|
+
if (shuttingDown) return;
|
|
3160
3173
|
try {
|
|
3161
3174
|
const res = await fetch(`${API_ENDPOINT}/v1/admin/inventory/${PROJECT_ID}`, {
|
|
3162
3175
|
headers: {
|
|
@@ -3180,9 +3193,10 @@ async function main() {
|
|
|
3180
3193
|
}
|
|
3181
3194
|
};
|
|
3182
3195
|
void pollInventory();
|
|
3183
|
-
setInterval(() => {
|
|
3196
|
+
pollTimer = setInterval(() => {
|
|
3184
3197
|
void pollInventory();
|
|
3185
3198
|
}, POLL_INTERVAL_MS);
|
|
3199
|
+
pollTimer.unref();
|
|
3186
3200
|
}
|
|
3187
3201
|
}
|
|
3188
3202
|
main().catch((err) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mushi-mushi/mcp",
|
|
3
3
|
"mcpName": "io.github.kensaurus/mushi-mushi",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "MCP server for Mushi Mushi — triage user-felt bugs, pull evidence (screenshots, console logs, network requests), check blast radius, and dispatch fix PRs, all from your AI coding agent",
|
|
7
7
|
"type": "module",
|