wolfpack-mcp 1.0.12 → 1.0.13
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 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ async function checkForUpdates() {
|
|
|
19
19
|
signal: AbortSignal.timeout(5000), // 5 second timeout
|
|
20
20
|
});
|
|
21
21
|
if (!response.ok)
|
|
22
|
-
return;
|
|
22
|
+
return null;
|
|
23
23
|
const data = (await response.json());
|
|
24
24
|
const latestVersion = data.version;
|
|
25
25
|
if (latestVersion && latestVersion !== CURRENT_VERSION) {
|
|
@@ -32,21 +32,14 @@ async function checkForUpdates() {
|
|
|
32
32
|
latestMinor === currentMinor &&
|
|
33
33
|
latestPatch > currentPatch);
|
|
34
34
|
if (isNewer) {
|
|
35
|
-
|
|
36
|
-
console.error('╔════════════════════════════════════════════════════════════╗');
|
|
37
|
-
console.error('║ UPDATE AVAILABLE ║');
|
|
38
|
-
console.error(`║ ${PACKAGE_NAME} ${CURRENT_VERSION} → ${latestVersion}`.padEnd(61) + '║');
|
|
39
|
-
console.error('║ ║');
|
|
40
|
-
console.error('║ Run: npm install -g wolfpack-mcp@latest ║');
|
|
41
|
-
console.error('║ Or update your package.json and run: npm install ║');
|
|
42
|
-
console.error('╚════════════════════════════════════════════════════════════╝');
|
|
43
|
-
console.error('');
|
|
35
|
+
return latestVersion;
|
|
44
36
|
}
|
|
45
37
|
}
|
|
46
38
|
}
|
|
47
39
|
catch {
|
|
48
40
|
// Silently ignore update check failures - don't block startup
|
|
49
41
|
}
|
|
42
|
+
return null;
|
|
50
43
|
}
|
|
51
44
|
// Work Item schemas
|
|
52
45
|
// Use z.coerce.string() to handle any type coercion issues from MCP args
|
|
@@ -237,10 +230,11 @@ class WolfpackMCPServer {
|
|
|
237
230
|
this.client = new WolfpackClient();
|
|
238
231
|
this.server = new Server({
|
|
239
232
|
name: 'wolfpack',
|
|
240
|
-
version:
|
|
233
|
+
version: CURRENT_VERSION,
|
|
241
234
|
}, {
|
|
242
235
|
capabilities: {
|
|
243
236
|
tools: {},
|
|
237
|
+
logging: {},
|
|
244
238
|
},
|
|
245
239
|
});
|
|
246
240
|
this.setupHandlers();
|
|
@@ -1142,8 +1136,8 @@ class WolfpackMCPServer {
|
|
|
1142
1136
|
});
|
|
1143
1137
|
}
|
|
1144
1138
|
async start() {
|
|
1145
|
-
//
|
|
1146
|
-
checkForUpdates();
|
|
1139
|
+
// Start version check early (non-blocking)
|
|
1140
|
+
const updateCheckPromise = checkForUpdates();
|
|
1147
1141
|
// Resolve team on startup
|
|
1148
1142
|
if (config.teamSlug) {
|
|
1149
1143
|
// Explicit team slug configured - use it
|
|
@@ -1180,6 +1174,14 @@ class WolfpackMCPServer {
|
|
|
1180
1174
|
const transport = new StdioServerTransport();
|
|
1181
1175
|
await this.server.connect(transport);
|
|
1182
1176
|
console.error(`Wolfpack MCP Server v${CURRENT_VERSION} started`);
|
|
1177
|
+
// Send update notification via MCP logging after server is connected
|
|
1178
|
+
const latestVersion = await updateCheckPromise;
|
|
1179
|
+
if (latestVersion) {
|
|
1180
|
+
await this.server.sendLoggingMessage({
|
|
1181
|
+
level: 'warning',
|
|
1182
|
+
data: `Update available: ${PACKAGE_NAME} ${CURRENT_VERSION} → ${latestVersion}. Run: npm install -g wolfpack-mcp@latest`,
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1183
1185
|
}
|
|
1184
1186
|
}
|
|
1185
1187
|
// Validate configuration before starting
|