slashvibe-mcp 0.3.20 → 0.3.21

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 (167) hide show
  1. package/README.md +47 -252
  2. package/analytics.js +107 -0
  3. package/auth-store.js +148 -0
  4. package/auto-update.js +130 -0
  5. package/bridges/bridge-monitor.js +388 -0
  6. package/bridges/discord-bot.js +431 -0
  7. package/bridges/farcaster.js +299 -0
  8. package/bridges/telegram.js +261 -0
  9. package/bridges/webhook-health.js +420 -0
  10. package/bridges/webhook-server.js +437 -0
  11. package/bridges/whatsapp.js +441 -0
  12. package/bridges/x-webhook.js +423 -0
  13. package/config.js +27 -15
  14. package/games/arcade.js +406 -0
  15. package/games/chess.js +451 -0
  16. package/games/colorguess.js +343 -0
  17. package/games/crossword-words.js +171 -0
  18. package/games/crossword.js +461 -0
  19. package/games/drawing.js +347 -0
  20. package/games/gameroulette.js +300 -0
  21. package/games/gamerouter.js +336 -0
  22. package/games/gamestatus.js +337 -0
  23. package/games/guessnumber.js +209 -0
  24. package/games/hangman.js +279 -0
  25. package/games/memory.js +338 -0
  26. package/games/multiplayer-tictactoe.js +389 -0
  27. package/games/pixelart.js +399 -0
  28. package/games/quickduel.js +354 -0
  29. package/games/riddle.js +371 -0
  30. package/games/rockpaperscissors.js +291 -0
  31. package/games/snake.js +406 -0
  32. package/games/storybuilder.js +343 -0
  33. package/games/tictactoe.js +345 -0
  34. package/games/twentyquestions.js +286 -0
  35. package/games/twotruths.js +207 -0
  36. package/games/werewolf.js +508 -0
  37. package/games/wordassociation.js +247 -0
  38. package/games/wordchain.js +135 -0
  39. package/index.js +116 -159
  40. package/intelligence/index.js +9 -2
  41. package/intelligence/interests.js +369 -0
  42. package/notification-emitter.js +77 -0
  43. package/notify.js +5 -1
  44. package/package.json +21 -16
  45. package/prompts.js +1 -1
  46. package/protocol/index.js +73 -0
  47. package/setup.js +480 -0
  48. package/smart-inbox.js +276 -0
  49. package/store/api.js +536 -215
  50. package/store/profiles.js +160 -12
  51. package/tools/_actions.js +362 -21
  52. package/tools/_discovery.js +119 -26
  53. package/tools/_shared/index.js +64 -0
  54. package/tools/_shared.js +234 -0
  55. package/tools/_work-context.js +338 -0
  56. package/tools/_work-context.manual-test.js +199 -0
  57. package/tools/_work-context.test.js +260 -0
  58. package/tools/activity.js +220 -0
  59. package/tools/analytics.js +191 -0
  60. package/tools/approve.js +197 -0
  61. package/tools/artifact-create.js +14 -3
  62. package/tools/artifacts-price.js +107 -0
  63. package/tools/available.js +120 -0
  64. package/tools/broadcast.js +325 -0
  65. package/tools/chat.js +202 -0
  66. package/tools/collaborative-drawing.js +1 -1
  67. package/tools/connection-status.js +178 -0
  68. package/tools/discover.js +350 -34
  69. package/tools/dm.js +80 -8
  70. package/tools/earnings.js +126 -0
  71. package/tools/feed.js +35 -4
  72. package/tools/follow.js +224 -0
  73. package/tools/friends.js +207 -0
  74. package/tools/gig-browse.js +206 -0
  75. package/tools/gig-complete.js +144 -0
  76. package/tools/health.js +87 -0
  77. package/tools/help.js +3 -3
  78. package/tools/idea.js +9 -2
  79. package/tools/inbox.js +289 -105
  80. package/tools/init.js +131 -34
  81. package/tools/invite.js +15 -4
  82. package/tools/leaderboard.js +117 -0
  83. package/tools/lib/git-apply.js +206 -0
  84. package/tools/lib/git-bundle.js +407 -0
  85. package/tools/migrate.js +3 -3
  86. package/tools/multiplayer-game.js +1 -1
  87. package/tools/onboarding.js +7 -7
  88. package/tools/open.js +143 -12
  89. package/tools/party-game.js +1 -1
  90. package/tools/plan.js +225 -0
  91. package/tools/proof-of-work.js +144 -0
  92. package/tools/reply.js +166 -0
  93. package/tools/report.js +1 -1
  94. package/tools/request.js +17 -3
  95. package/tools/schedule.js +367 -0
  96. package/tools/search-messages.js +123 -0
  97. package/tools/session.js +467 -0
  98. package/tools/session_price.js +128 -0
  99. package/tools/settings.js +90 -2
  100. package/tools/ship.js +30 -7
  101. package/tools/smart-check.js +201 -0
  102. package/tools/start.js +147 -12
  103. package/tools/status.js +53 -6
  104. package/tools/streak.js +147 -0
  105. package/tools/stuck.js +297 -0
  106. package/tools/subscribe.js +148 -0
  107. package/tools/subscriptions.js +134 -0
  108. package/tools/suggest-tags.js +6 -8
  109. package/tools/tag-suggestions.js +1 -1
  110. package/tools/tip.js +150 -77
  111. package/tools/token.js +4 -4
  112. package/tools/update.js +1 -1
  113. package/tools/wallet.js +221 -79
  114. package/tools/watch.js +157 -0
  115. package/tools/who.js +30 -1
  116. package/tools/withdraw.js +145 -0
  117. package/tools/work-summary.js +96 -0
  118. package/version.json +10 -8
  119. package/LICENSE +0 -21
  120. package/store/sqlite.js +0 -347
  121. /package/tools/{auto-suggest-connections.js → _deprecated/auto-suggest-connections.js} +0 -0
  122. /package/tools/{away.js → _deprecated/away.js} +0 -0
  123. /package/tools/{back.js → _deprecated/back.js} +0 -0
  124. /package/tools/{bootstrap-skills.js → _deprecated/bootstrap-skills.js} +0 -0
  125. /package/tools/{bridge-dashboard.js → _deprecated/bridge-dashboard.js} +0 -0
  126. /package/tools/{bridge-health.js → _deprecated/bridge-health.js} +0 -0
  127. /package/tools/{bridge-live.js → _deprecated/bridge-live.js} +0 -0
  128. /package/tools/{bridges.js → _deprecated/bridges.js} +0 -0
  129. /package/tools/{colorguess.js → _deprecated/colorguess.js} +0 -0
  130. /package/tools/{discover-insights.js → _deprecated/discover-insights.js} +0 -0
  131. /package/tools/{discover-momentum.js → _deprecated/discover-momentum.js} +0 -0
  132. /package/tools/{discovery-analytics.js → _deprecated/discovery-analytics.js} +0 -0
  133. /package/tools/{discovery-auto-suggest.js → _deprecated/discovery-auto-suggest.js} +0 -0
  134. /package/tools/{discovery-bootstrap.js → _deprecated/discovery-bootstrap.js} +0 -0
  135. /package/tools/{discovery-daily.js → _deprecated/discovery-daily.js} +0 -0
  136. /package/tools/{discovery-dashboard.js → _deprecated/discovery-dashboard.js} +0 -0
  137. /package/tools/{discovery-digest.js → _deprecated/discovery-digest.js} +0 -0
  138. /package/tools/{discovery-hub.js → _deprecated/discovery-hub.js} +0 -0
  139. /package/tools/{discovery-insights.js → _deprecated/discovery-insights.js} +0 -0
  140. /package/tools/{discovery-momentum.js → _deprecated/discovery-momentum.js} +0 -0
  141. /package/tools/{discovery-monitor.js → _deprecated/discovery-monitor.js} +0 -0
  142. /package/tools/{discovery-proactive.js → _deprecated/discovery-proactive.js} +0 -0
  143. /package/tools/{draw.js → _deprecated/draw.js} +0 -0
  144. /package/tools/{farcaster.js → _deprecated/farcaster.js} +0 -0
  145. /package/tools/{forget.js → _deprecated/forget.js} +0 -0
  146. /package/tools/{games-catalog.js → _deprecated/games-catalog.js} +0 -0
  147. /package/tools/{games.js → _deprecated/games.js} +0 -0
  148. /package/tools/{guessnumber.js → _deprecated/guessnumber.js} +0 -0
  149. /package/tools/{hangman.js → _deprecated/hangman.js} +0 -0
  150. /package/tools/{multiplayer-tictactoe.js → _deprecated/multiplayer-tictactoe.js} +0 -0
  151. /package/tools/{mute.js → _deprecated/mute.js} +0 -0
  152. /package/tools/{recall.js → _deprecated/recall.js} +0 -0
  153. /package/tools/{remember.js → _deprecated/remember.js} +0 -0
  154. /package/tools/{riddle.js → _deprecated/riddle.js} +0 -0
  155. /package/tools/{run-bootstrap.js → _deprecated/run-bootstrap.js} +0 -0
  156. /package/tools/{skills-analytics.js → _deprecated/skills-analytics.js} +0 -0
  157. /package/tools/{skills-bootstrap.js → _deprecated/skills-bootstrap.js} +0 -0
  158. /package/tools/{skills-dashboard.js → _deprecated/skills-dashboard.js} +0 -0
  159. /package/tools/{skills-exchange.js → _deprecated/skills-exchange.js} +0 -0
  160. /package/tools/{skills.js → _deprecated/skills.js} +0 -0
  161. /package/tools/{smart-intro.js → _deprecated/smart-intro.js} +0 -0
  162. /package/tools/{storybuilder.js → _deprecated/storybuilder.js} +0 -0
  163. /package/tools/{telegram-bot.js → _deprecated/telegram-bot.js} +0 -0
  164. /package/tools/{telegram-setup.js → _deprecated/telegram-setup.js} +0 -0
  165. /package/tools/{tictactoe.js → _deprecated/tictactoe.js} +0 -0
  166. /package/tools/{twentyquestions.js → _deprecated/twentyquestions.js} +0 -0
  167. /package/tools/{wordassociation.js → _deprecated/wordassociation.js} +0 -0
@@ -0,0 +1,206 @@
1
+ /**
2
+ * vibe_gig_browse - Browse and filter the gig marketplace
3
+ *
4
+ * Search for gigs by category, skills, budget range, etc.
5
+ */
6
+
7
+ const config = require('../config');
8
+ const { requireInit, displayHandle, header, divider, emptyState, formatTimeAgo } = require('./_shared');
9
+
10
+ const BASE_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
11
+
12
+ const definition = {
13
+ name: 'vibe_gig_browse',
14
+ description: 'Browse the gig marketplace. Filter by category, skills, budget, or search by keyword.',
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ category: {
19
+ type: 'string',
20
+ enum: ['build', 'fix', 'design', 'review', 'teach', 'consult', 'other'],
21
+ description: 'Filter by gig category'
22
+ },
23
+ skill: {
24
+ type: 'string',
25
+ description: 'Filter by required skill (e.g., "react", "python", "api")'
26
+ },
27
+ min_budget: {
28
+ type: 'number',
29
+ description: 'Minimum budget in dollars'
30
+ },
31
+ max_budget: {
32
+ type: 'number',
33
+ description: 'Maximum budget in dollars'
34
+ },
35
+ search: {
36
+ type: 'string',
37
+ description: 'Search in title and description'
38
+ },
39
+ limit: {
40
+ type: 'number',
41
+ description: 'Number of results (default: 10, max: 50)'
42
+ }
43
+ }
44
+ }
45
+ };
46
+
47
+ async function handler(args) {
48
+ const initCheck = requireInit();
49
+ if (initCheck) return initCheck;
50
+
51
+ const {
52
+ category,
53
+ skill,
54
+ min_budget,
55
+ max_budget,
56
+ search,
57
+ limit = 10
58
+ } = args;
59
+
60
+ try {
61
+ // Build query string
62
+ const params = new URLSearchParams();
63
+ params.set('status', 'open');
64
+ params.set('limit', Math.min(limit, 50).toString());
65
+
66
+ // Note: API may not support all filters yet, but we include them
67
+ if (category) params.set('category', category);
68
+ if (skill) params.set('skill', skill);
69
+ if (min_budget) params.set('min_budget', min_budget.toString());
70
+ if (max_budget) params.set('max_budget', max_budget.toString());
71
+ if (search) params.set('search', search);
72
+
73
+ const response = await fetch(`${BASE_URL}/api/gigs?${params.toString()}`);
74
+ const data = await response.json();
75
+
76
+ // Handle coming soon state
77
+ if (data.coming_soon) {
78
+ return {
79
+ display: header('🚀 Gigs Marketplace', 2) + '\n\n' +
80
+ '┌────────────────────────────────────────┐\n' +
81
+ '│ LAUNCHING WEDNESDAY JAN 22 │\n' +
82
+ '└────────────────────────────────────────┘\n\n' +
83
+ 'The gigs marketplace is almost ready!\n\n' +
84
+ '• Post gigs to hire builders\n' +
85
+ '• Apply to gigs and get paid\n' +
86
+ '• Build your proof-of-work reputation\n\n' +
87
+ 'Stay tuned for the launch!'
88
+ };
89
+ }
90
+
91
+ if (!data.success) {
92
+ return { display: `❌ ${data.error || 'Failed to browse gigs'}` };
93
+ }
94
+
95
+ const gigs = data.gigs || [];
96
+
97
+ // Filter client-side if API doesn't support all filters
98
+ let filteredGigs = gigs;
99
+
100
+ // Client-side category filter
101
+ if (category) {
102
+ filteredGigs = filteredGigs.filter(g => g.category === category);
103
+ }
104
+
105
+ // Client-side skill filter (API uses skills_needed)
106
+ if (skill) {
107
+ const lowerSkill = skill.toLowerCase();
108
+ filteredGigs = filteredGigs.filter(g => {
109
+ const skills = g.skills_needed || [];
110
+ return skills.some(s => s.toLowerCase().includes(lowerSkill));
111
+ });
112
+ }
113
+
114
+ // Client-side budget filter (API uses budget object with min/max in dollars)
115
+ if (min_budget) {
116
+ filteredGigs = filteredGigs.filter(g => {
117
+ const budgetMin = g.budget?.min || 0;
118
+ return budgetMin >= min_budget;
119
+ });
120
+ }
121
+ if (max_budget) {
122
+ filteredGigs = filteredGigs.filter(g => {
123
+ const budgetMax = g.budget?.max || Infinity;
124
+ return budgetMax <= max_budget;
125
+ });
126
+ }
127
+
128
+ // Client-side search
129
+ if (search) {
130
+ const lowerSearch = search.toLowerCase();
131
+ filteredGigs = filteredGigs.filter(g =>
132
+ (g.title || '').toLowerCase().includes(lowerSearch) ||
133
+ (g.description || '').toLowerCase().includes(lowerSearch)
134
+ );
135
+ }
136
+
137
+ if (filteredGigs.length === 0) {
138
+ let hint = 'Try broadening your search criteria.';
139
+ if (category || skill) {
140
+ hint = `No gigs found matching your filters. Try removing some filters.`;
141
+ }
142
+ return { display: emptyState('No open gigs found', hint) };
143
+ }
144
+
145
+ // Build display
146
+ let display = header('🎯 Open Gigs', 2) + '\n\n';
147
+
148
+ // Show active filters
149
+ const filters = [];
150
+ if (category) filters.push(`category: ${category}`);
151
+ if (skill) filters.push(`skill: ${skill}`);
152
+ if (min_budget || max_budget) {
153
+ const budgetStr = min_budget && max_budget
154
+ ? `$${min_budget}-$${max_budget}`
155
+ : min_budget ? `≥$${min_budget}` : `≤$${max_budget}`;
156
+ filters.push(`budget: ${budgetStr}`);
157
+ }
158
+ if (search) filters.push(`search: "${search}"`);
159
+
160
+ if (filters.length > 0) {
161
+ display += `_Filters: ${filters.join(', ')}_\n\n`;
162
+ }
163
+
164
+ display += `Found **${filteredGigs.length}** gig${filteredGigs.length !== 1 ? 's' : ''}\n\n`;
165
+
166
+ // List gigs (API returns: poster, budget{min,max}, skills_needed, applicants as count)
167
+ filteredGigs.forEach((gig, i) => {
168
+ display += `**${i + 1}. ${gig.title}**\n`;
169
+ display += ` ${displayHandle(gig.poster)} • `;
170
+
171
+ // Budget is an object with min/max in dollars
172
+ const budgetDisplay = gig.budget
173
+ ? `$${gig.budget.min || 0}-$${gig.budget.max || '?'}`
174
+ : 'TBD';
175
+ display += `${budgetDisplay} • `;
176
+ display += `${gig.category || 'other'}\n`;
177
+
178
+ if (gig.skills_needed && gig.skills_needed.length > 0) {
179
+ display += ` Skills: ${gig.skills_needed.slice(0, 5).join(', ')}\n`;
180
+ }
181
+
182
+ if (gig.description) {
183
+ const shortDesc = gig.description.slice(0, 100);
184
+ display += ` _${shortDesc}${gig.description.length > 100 ? '...' : ''}_\n`;
185
+ }
186
+
187
+ // API returns applicants as a count (number), not array
188
+ const applicantCount = typeof gig.applicants === 'number' ? gig.applicants : 0;
189
+ display += ` ${applicantCount} applicant${applicantCount !== 1 ? 's' : ''} • `;
190
+ display += `posted ${formatTimeAgo(gig.created_at)}\n`;
191
+
192
+ display += ` **ID:** ${gig.id}\n\n`;
193
+ });
194
+
195
+ display += divider();
196
+ display += '💡 Apply to a gig with: `apply to gig [gig_id]`';
197
+
198
+ return { display };
199
+
200
+ } catch (e) {
201
+ console.error('[gig-browse] Error:', e);
202
+ return { display: `❌ Failed to browse gigs: ${e.message}` };
203
+ }
204
+ }
205
+
206
+ module.exports = { definition, handler };
@@ -0,0 +1,144 @@
1
+ /**
2
+ * vibe_gig_complete - Mark a gig as completed
3
+ *
4
+ * When a gig is completed:
5
+ * - Links deliverables (session, artifacts, notes)
6
+ * - Boosts hired person's reputation
7
+ * - Auto-posts celebration to the board
8
+ * - Records rating
9
+ */
10
+
11
+ const config = require('../config');
12
+ const { requireInit, normalizeHandle, displayHandle, success, error, header, divider } = require('./_shared');
13
+ const { actions, formatActions } = require('./_actions');
14
+
15
+ const BASE_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
16
+
17
+ const definition = {
18
+ name: 'vibe_gig_complete',
19
+ description: 'Mark a gig as completed with deliverables and rating. Boosts reputation and posts to board.',
20
+ inputSchema: {
21
+ type: 'object',
22
+ properties: {
23
+ gig_id: {
24
+ type: 'string',
25
+ description: 'The gig ID to complete (e.g., gig_abc123)'
26
+ },
27
+ session_id: {
28
+ type: 'string',
29
+ description: 'Optional: Link a session as primary deliverable'
30
+ },
31
+ artifact_ids: {
32
+ type: 'array',
33
+ items: { type: 'string' },
34
+ description: 'Optional: Array of artifact IDs created during the gig'
35
+ },
36
+ notes: {
37
+ type: 'string',
38
+ description: 'Optional: Completion notes or summary'
39
+ },
40
+ rating: {
41
+ type: 'number',
42
+ minimum: 1,
43
+ maximum: 5,
44
+ description: 'Rating for the hired person (1-5 stars)'
45
+ }
46
+ },
47
+ required: ['gig_id', 'rating']
48
+ }
49
+ };
50
+
51
+ async function handler(args) {
52
+ const initCheck = requireInit();
53
+ if (initCheck) return initCheck;
54
+
55
+ // Check if gigs are enabled by making a quick check
56
+ try {
57
+ const checkResponse = await fetch(`${BASE_URL}/api/gigs`);
58
+ const checkData = await checkResponse.json();
59
+ if (checkData.coming_soon) {
60
+ return {
61
+ display: header('🚀 Gigs Marketplace', 2) + '\n\n' +
62
+ 'Launching Wednesday Jan 22!\n\n' +
63
+ 'Gig completion will be available after launch.'
64
+ };
65
+ }
66
+ } catch (e) {
67
+ // Continue with request if check fails
68
+ }
69
+
70
+ const {
71
+ gig_id,
72
+ session_id = null,
73
+ artifact_ids = [],
74
+ notes = null,
75
+ rating
76
+ } = args;
77
+
78
+ const handle = config.getHandle();
79
+
80
+ // Validate rating
81
+ if (rating < 1 || rating > 5) {
82
+ return { display: error('Rating must be between 1 and 5 stars') };
83
+ }
84
+
85
+ try {
86
+ const response = await fetch(`${BASE_URL}/api/gigs/complete`, {
87
+ method: 'POST',
88
+ headers: { 'Content-Type': 'application/json' },
89
+ body: JSON.stringify({
90
+ gig_id,
91
+ completed_by: handle,
92
+ deliverables: {
93
+ session_id,
94
+ artifact_ids,
95
+ notes
96
+ },
97
+ rating
98
+ })
99
+ });
100
+
101
+ const data = await response.json();
102
+
103
+ if (!data.success) {
104
+ return { display: error(data.error || 'Failed to complete gig') };
105
+ }
106
+
107
+ // Format success display
108
+ let display = success('Gig Completed!') + '\n\n';
109
+
110
+ display += header('Gig Details', 3) + '\n';
111
+ display += `**Title:** ${data.gig?.title || gig_id}\n`;
112
+ display += `**Hired:** ${displayHandle(data.gig?.hired_handle)}\n`;
113
+ display += `**Rating:** ${'⭐'.repeat(rating)}\n`;
114
+
115
+ if (session_id) {
116
+ display += `**Session:** ${session_id}\n`;
117
+ }
118
+ if (artifact_ids.length > 0) {
119
+ display += `**Artifacts:** ${artifact_ids.length} linked\n`;
120
+ }
121
+ if (notes) {
122
+ display += `**Notes:** ${notes}\n`;
123
+ }
124
+
125
+ display += divider();
126
+ display += `${displayHandle(data.gig?.hired_handle)} earned **+50 vibe points** for completing this gig!\n`;
127
+
128
+ if (data.posted_to_board) {
129
+ display += `\n🎉 Celebration posted to the board`;
130
+ }
131
+
132
+ // Build result with bonus tip action
133
+ const result = { display };
134
+ result.actions = formatActions(actions.afterGigComplete(data.gig));
135
+
136
+ return result;
137
+
138
+ } catch (e) {
139
+ console.error('[gig-complete] Error:', e);
140
+ return { display: error(`Failed to complete gig: ${e.message}`) };
141
+ }
142
+ }
143
+
144
+ module.exports = { definition, handler };
@@ -0,0 +1,87 @@
1
+ /**
2
+ * vibe_health — Check /vibe platform health status
3
+ *
4
+ * Shows service status, latency, and user stats.
5
+ * Useful for debugging connection issues or monitoring uptime.
6
+ */
7
+
8
+ const config = require('../config');
9
+
10
+ const API_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
11
+
12
+ const definition = {
13
+ name: 'vibe_health',
14
+ description: 'Check /vibe platform health and service status',
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ full: {
19
+ type: 'boolean',
20
+ description: 'Include detailed service checks (default: false)'
21
+ }
22
+ }
23
+ }
24
+ };
25
+
26
+ async function handler(args) {
27
+ const { full = false } = args;
28
+
29
+ try {
30
+ const endpoint = `${API_URL}/api/health${full ? '?full=true' : ''}`;
31
+ const response = await fetch(endpoint);
32
+ const data = await response.json();
33
+
34
+ let display = `## /vibe Health Check\n\n`;
35
+
36
+ // Overall status
37
+ const statusEmoji = data.status === 'healthy' ? '\u2705' : data.status === 'degraded' ? '\u26a0\ufe0f' : '\u274c';
38
+ display += `**Status:** ${statusEmoji} ${data.status.toUpperCase()}\n`;
39
+ display += `**Version:** ${data.version}\n`;
40
+ display += `**Response Time:** ${data.responseTime}ms\n\n`;
41
+
42
+ // Service checks
43
+ if (data.checks) {
44
+ display += `### Services\n\n`;
45
+ display += `| Service | Status | Latency |\n`;
46
+ display += `|---------|--------|--------|\n`;
47
+
48
+ for (const [service, check] of Object.entries(data.checks)) {
49
+ const emoji = check.status === 'healthy' ? '\u2705' : check.status === 'not_configured' ? '\u2796' : '\u274c';
50
+ const latency = check.latency ? `${check.latency}ms` : '-';
51
+ display += `| ${service} | ${emoji} ${check.status} | ${latency} |\n`;
52
+ }
53
+ display += '\n';
54
+ }
55
+
56
+ // Stats (only in full mode)
57
+ if (data.stats) {
58
+ display += `### Platform Stats\n\n`;
59
+ display += `- **Registered Handles:** ${data.stats.registeredHandles}\n`;
60
+ display += `- **Active This Week:** ${data.stats.activeThisWeek}\n`;
61
+ display += `- **Total Tips:** ${data.stats.totalTips}\n\n`;
62
+ }
63
+
64
+ // Vibe Beats (activity metrics)
65
+ if (data.vibeBeats) {
66
+ display += `### Vibe Beats (Activity)\n\n`;
67
+ display += `| Period | Active Users |\n`;
68
+ display += `|--------|-------------|\n`;
69
+ display += `| Online (30 min) | ${data.vibeBeats.online} |\n`;
70
+ display += `| Hourly | ${data.vibeBeats.hourly} |\n`;
71
+ display += `| Daily (DAU) | ${data.vibeBeats.daily} |\n`;
72
+ display += `| Weekly (WAU) | ${data.vibeBeats.weekly} |\n`;
73
+ display += `| Monthly (MAU) | ${data.vibeBeats.monthly} |\n`;
74
+ }
75
+
76
+ display += `\n_Checked at ${data.timestamp}_`;
77
+
78
+ return { display };
79
+
80
+ } catch (e) {
81
+ return {
82
+ display: `## /vibe Health Check\n\n\u274c **Connection Failed**\n\nError: ${e.message}\n\nMake sure you have internet connectivity and try again.`
83
+ };
84
+ }
85
+ }
86
+
87
+ module.exports = { definition, handler };
package/tools/help.js CHANGED
@@ -197,7 +197,7 @@ Presence updates every 5 minutes. Run \`vibe who\` for fresh data.
197
197
  - Post on the board with category "question"
198
198
 
199
199
  ### Report Issues
200
- - GitHub: https://github.com/brightseth/vibe/issues
200
+ - GitHub: https://github.com/VibeCodingInc/vibe-mcp/issues
201
201
  - Or: \`vibe echo "your feedback"\``;
202
202
 
203
203
  async function handler(args) {
@@ -236,7 +236,7 @@ Available topics:
236
236
  }
237
237
 
238
238
  // Default: overview
239
- let display = `## /vibe Help
239
+ const display = `## /vibe Help
240
240
 
241
241
  ${isInitialized ? `You're **@${handle}**` : '⚠️ Not initialized yet — run `vibe init @yourhandle`'}
242
242
 
@@ -260,7 +260,7 @@ ${isInitialized ? `You're **@${handle}**` : '⚠️ Not initialized yet — run
260
260
 
261
261
  ### Links
262
262
  - Docs: https://slashvibe.dev/llms.txt
263
- - Issues: https://github.com/brightseth/vibe/issues
263
+ - Issues: https://github.com/VibeCodingInc/vibe-mcp/issues
264
264
  - Feedback: \`vibe echo "message"\``;
265
265
 
266
266
  return { display };
package/tools/idea.js CHANGED
@@ -84,9 +84,16 @@ async function handler(args) {
84
84
  }
85
85
 
86
86
  try {
87
+ // Include auth token for API authorization
88
+ const authToken = config.getAuthToken();
89
+ const headers = { 'Content-Type': 'application/json' };
90
+ if (authToken) {
91
+ headers['Authorization'] = `Bearer ${authToken}`;
92
+ }
93
+
87
94
  const response = await fetch(`${apiUrl}/api/board`, {
88
95
  method: 'POST',
89
- headers: { 'Content-Type': 'application/json' },
96
+ headers,
90
97
  body: JSON.stringify(entry)
91
98
  });
92
99
 
@@ -123,7 +130,7 @@ async function handler(args) {
123
130
  // Browse ideas
124
131
  try {
125
132
  const limit = Math.min(args.limit || 10, 30);
126
- let url = `${apiUrl}/api/board?limit=${limit}&category=idea`;
133
+ const url = `${apiUrl}/api/board?limit=${limit}&category=idea`;
127
134
 
128
135
  // Also fetch riffs
129
136
  const riffUrl = `${apiUrl}/api/board?limit=${limit}&category=riff`;