@vibesharingapp/mcp-server 0.7.0 → 0.7.1

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.
Files changed (2) hide show
  1. package/dist/index.js +27 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -243,7 +243,7 @@ function fuzzyMatch(query, items, getName, threshold = 0.3) {
243
243
  .sort((a, b) => b.score - a.score);
244
244
  }
245
245
  // ---- Version tracking & What's New ----
246
- const CURRENT_VERSION = "0.6.0";
246
+ const CURRENT_VERSION = "0.7.1";
247
247
  const WHATS_NEW = {
248
248
  "0.6.0": [
249
249
  "🆕 VibeSharing MCP v0.6.0 — What's New:",
@@ -326,11 +326,31 @@ if (VIBESHARING_TOKEN === "vs_your_token_here" || VIBESHARING_TOKEN.length < 10)
326
326
  console.error(" claude mcp add vibesharing -s user -e VIBESHARING_TOKEN=vs_YOUR_TOKEN -- npx -y @vibesharingapp/mcp-server@latest");
327
327
  process.exit(1);
328
328
  }
329
+ // Check for updates (non-blocking — runs in background)
330
+ let updateNotice = null;
331
+ (async () => {
332
+ try {
333
+ const res = await fetch("https://registry.npmjs.org/@vibesharingapp/mcp-server/latest", {
334
+ signal: AbortSignal.timeout(3000),
335
+ });
336
+ if (res.ok) {
337
+ const data = await res.json();
338
+ const latest = data.version;
339
+ if (latest && latest !== CURRENT_VERSION) {
340
+ updateNotice = `⚠ VibeSharing MCP server update available: ${CURRENT_VERSION} → ${latest}\n Run: claude mcp remove vibesharing && claude mcp add vibesharing -s user -e VIBESHARING_TOKEN=$VIBESHARING_TOKEN -- npx -y @vibesharingapp/mcp-server@latest\n Then restart Claude Code.`;
341
+ console.error(`[vibesharing] Update available: ${CURRENT_VERSION} → ${latest}`);
342
+ }
343
+ }
344
+ }
345
+ catch {
346
+ // Silently ignore — don't block startup for a version check
347
+ }
348
+ })();
329
349
  const client = new VibesharingClient(VIBESHARING_URL, VIBESHARING_TOKEN);
330
350
  // Create MCP server
331
351
  const server = new index_js_1.Server({
332
352
  name: "vibesharing",
333
- version: "0.7.0",
353
+ version: CURRENT_VERSION,
334
354
  }, {
335
355
  capabilities: {
336
356
  tools: {},
@@ -1734,6 +1754,11 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
1734
1754
  toolResult.content.unshift({ type: "text", text: pendingWhatsNew + "\n\n---\n" });
1735
1755
  pendingWhatsNew = null;
1736
1756
  }
1757
+ // Prepend update notice if a newer version is available
1758
+ if (updateNotice && !toolResult.isError) {
1759
+ toolResult.content.unshift({ type: "text", text: updateNotice + "\n\n---\n" });
1760
+ updateNotice = null; // Only show once per session
1761
+ }
1737
1762
  return toolResult;
1738
1763
  });
1739
1764
  // List available resources (prototypes as resources)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibesharingapp/mcp-server",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "MCP server for VibeSharing - register prototypes and get feedback directly from Claude Code",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",