agent-discover 1.0.2 → 1.0.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/ui/app.js CHANGED
@@ -174,8 +174,16 @@
174
174
 
175
175
  var html = state.servers
176
176
  .map(function (s) {
177
- var statusClass = s.active ? 'active' : 'inactive';
178
- var statusLabel = s.active ? 'Active' : 'Inactive';
177
+ var statusClass = s.active
178
+ ? s.health_status === 'unhealthy'
179
+ ? 'unhealthy'
180
+ : 'active'
181
+ : 'inactive';
182
+ var statusLabel = s.active
183
+ ? s.health_status === 'unhealthy'
184
+ ? 'Unhealthy'
185
+ : 'Active'
186
+ : 'Inactive';
179
187
 
180
188
  // Approval badge
181
189
  var approval = s.approval_status || 'experimental';
@@ -204,14 +212,8 @@
204
212
  approvalDropdown +
205
213
  '</span>';
206
214
 
207
- // Health dot
215
+ // Combined status: active+healthy=green, active+unhealthy=red, inactive=gray
208
216
  var healthStatus = s.health_status || 'unknown';
209
- var healthDot =
210
- '<span class="health-dot health-' +
211
- esc(healthStatus) +
212
- '" title="Health: ' +
213
- esc(healthStatus) +
214
- '"></span>';
215
217
 
216
218
  // Error count
217
219
  var errorCount =
@@ -287,7 +289,6 @@
287
289
  '</div>' +
288
290
  '<div style="display:flex;align-items:center;gap:8px">' +
289
291
  errorCount +
290
- healthDot +
291
292
  '<span class="server-status"><span class="status-dot ' +
292
293
  statusClass +
293
294
  '"></span>' +
@@ -494,7 +495,9 @@
494
495
  '<div class="empty-state"><span class="material-symbols-outlined empty-icon">explore</span><p>Search the official MCP registry</p><p class="hint">Type a query above to discover servers</p></div>';
495
496
  } else {
496
497
  el.innerHTML =
497
- '<div class="empty-state"><span class="material-symbols-outlined empty-icon">search_off</span><p>No results found</p></div>';
498
+ '<div class="empty-state"><span class="material-symbols-outlined empty-icon">search_off</span><p>No results in MCP registry</p>' +
499
+ '<p class="hint">Know the npm package? Install via MCP tool:</p>' +
500
+ '<code class="hint-code">registry({ action: "install", name: "my-server", command: "npx", args: ["-y", "@scope/package"] })</code></div>';
498
501
  }
499
502
  return;
500
503
  }
@@ -364,6 +364,10 @@ body {
364
364
  background: var(--status-inactive);
365
365
  }
366
366
 
367
+ .status-dot.unhealthy {
368
+ background: #f44336;
369
+ }
370
+
367
371
  .server-description {
368
372
  font-size: 13px;
369
373
  color: var(--text-secondary);
@@ -479,6 +483,18 @@ body {
479
483
  margin-top: 4px;
480
484
  }
481
485
 
486
+ .hint-code {
487
+ display: block;
488
+ margin-top: 8px;
489
+ font-family: var(--font-mono);
490
+ font-size: 11px;
491
+ background: var(--bg-elevated);
492
+ padding: 8px 12px;
493
+ border-radius: 6px;
494
+ color: var(--accent);
495
+ word-break: break-all;
496
+ }
497
+
482
498
  /* ---------------------------------------------------------------------------
483
499
  Buttons
484
500
  --------------------------------------------------------------------------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-discover",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "mcpName": "io.github.keshrath/agent-discover",
5
5
  "description": "MCP server registry and marketplace — discover, install, activate, and manage MCP tools on demand",
6
6
  "type": "module",