Kaynağa Gözat

feat(mcp): graduate the MCP integration out of Labs (#1209)

Same path as firmware upgrades (#1146): the Integrations row is visible
by default, without the Labs gate and the danger styling, and the caption
loses the (labs) qualifier. Still disabled by default server-side via
NETPULSE_MCP_ENABLED, and the row stays locked with a hint when the env
var is missing. README/README.es drop the experimental note; the Help
flow drops the Labs mention.

Closes #1157
Nacho 2 ay önce
ebeveyn
işleme
a50bc91830

+ 2 - 1
README.es.md

@@ -316,7 +316,8 @@ dispositivos conocidos, peers WireGuard, estadísticas de AdGuard Home, el
 grafo de topología detectado y las alertas activas. Nada más: sin cambios de
 configuración ni reinicios.
 
-Es experimental y vive bajo el flag de Labs en Ajustes. Está **desactivado por defecto**. Para activarlo:
+Vive en Ajustes > Integraciones y está **desactivado por defecto a nivel de
+servidor**. Para activarlo:
 
 ```bash
 NETPULSE_MCP_ENABLED=1

+ 2 - 1
README.md

@@ -305,7 +305,8 @@ tools: fleet status, per-router health, known devices, WireGuard peers,
 AdGuard Home stats, the detected topology graph and active alerts. Nothing
 else: no configuration changes, no restarts.
 
-It is experimental and lives under the Labs flag in Settings. It is **disabled by default**. To enable it:
+It lives under Settings > Integrations and is **disabled by default at the
+server level**. To enable it:
 
 ```bash
 NETPULSE_MCP_ENABLED=1

+ 2 - 2
app/public/locales/en/translation.json

@@ -1606,7 +1606,7 @@
       "integrationsGroup": "Integrations",
       "proxmoxCaption": "Cluster inventory (hypervisors and CTs)",
       "mqttCaption": "Fleet state published to the MQTT broker",
-      "mcpCaption": "Read-only queries for AI assistants (labs)",
+      "mcpCaption": "Read-only queries for AI assistants",
       "configure": "Configure {{name}}"
     },
     "session": {
@@ -2549,7 +2549,7 @@
         "intro": "The MCP server exposes an endpoint at /mcp so AI assistants can query the fleet, per-router health, devices, WireGuard, AdGuard, topology and alerts. All read-only.",
         "steps": [
           "The endpoint must be enabled on the server: add NETPULSE_MCP_ENABLED=1 to the service environment (e.g. the .env next to the binary) and restart. If it is missing, the dialog itself tells you.",
-          "Go to ⟦Settings⟧, ⟦Integrations⟧ section, and open the ⟦MCP — AI assistants⟧ row (visible with Labs enabled).",
+          "Go to ⟦Settings⟧, ⟦Integrations⟧ section, and open the ⟦MCP — AI assistants⟧ row.",
           "Enable ⟦Endpoint /mcp active⟧.",
           "Create a token with the manager built into the dialog.",
           "In your assistant, configure a remote MCP server with the URL http://IP:port/mcp and the token as a Bearer credential."

+ 2 - 2
app/public/locales/es/translation.json

@@ -1606,7 +1606,7 @@
       "integrationsGroup": "Integraciones",
       "proxmoxCaption": "Inventario del cluster (hipervisores y CTs)",
       "mqttCaption": "Publicación del estado en el broker MQTT",
-      "mcpCaption": "Consultas de solo lectura para asistentes de IA (labs)",
+      "mcpCaption": "Consultas de solo lectura para asistentes de IA",
       "configure": "Configurar {{name}}"
     },
     "session": {
@@ -2549,7 +2549,7 @@
         "intro": "El servidor MCP expone un endpoint en /mcp para que los asistentes de IA consulten la flota, la salud por router, los dispositivos, WireGuard, AdGuard, la topología y las alertas. Todo de solo lectura.",
         "steps": [
           "El endpoint debe estar habilitado en el servidor: añade NETPULSE_MCP_ENABLED=1 al entorno del servicio (por ejemplo el .env junto al binario) y reinicia. Si falta, el propio diálogo te lo indica.",
-          "Ve a ⟦Ajustes⟧, sección ⟦Integraciones⟧, y abre la fila ⟦MCP — asistentes de IA⟧ (visible con Labs activado).",
+          "Ve a ⟦Ajustes⟧, sección ⟦Integraciones⟧, y abre la fila ⟦MCP — asistentes de IA⟧.",
           "Activa ⟦Endpoint /mcp activo⟧.",
           "Crea un token con el gestor integrado en el propio diálogo.",
           "En tu asistente, configura un servidor MCP remoto con la URL http://IP:puerto/mcp y el token como Bearer."

+ 5 - 5
app/src/pages/Settings.tsx

@@ -3955,13 +3955,13 @@ function ServicesCard({
   ]
   // #996: el grupo Integraciones se queda SOLO con MQTT y Proxmox (estado e
   // inventario); ntfy y Telegram son canales de aviso y viven en la tarjeta
-  // de Notificaciones. MCP (#1114) es LABS: fila con acento rojo (danger)
-  // visible solo con Labs activado; el endpoint no muere al ocultar Labs
-  // (misma semántica que orquestación: el opt-in persiste server-side).
+  // de Notificaciones. MCP (#1157) ya NO es Labs: fila visible siempre, como
+  // una integración más; sigue desactivado por defecto en el servidor
+  // (NETPULSE_MCP_ENABLED) y la fila queda bloqueada (locked) si falta.
   const integrationRows: { key: keyof IntegrationsState; label: string; caption: string; dialogKey: IntegrationDialogKey; locked?: boolean; labs?: boolean; danger?: boolean }[] = [
     { key: 'proxmox', label: 'Proxmox VE', caption: t('settings.services.proxmoxCaption'), dialogKey: 'proxmox' },
     { key: 'mqtt', label: 'MQTT', caption: t('settings.services.mqttCaption'), dialogKey: 'mqtt' },
-    { key: 'mcp', label: 'MCP', caption: t('settings.services.mcpCaption'), dialogKey: 'mcp', locked: mcpLocked, labs: true, danger: true },
+    { key: 'mcp', label: 'MCP', caption: t('settings.services.mcpCaption'), dialogKey: 'mcp', locked: mcpLocked },
   ]
 
   // AdGuard (#813): el toggle de Servicios también controla el sondeo y la
@@ -4062,7 +4062,7 @@ function ServicesCard({
       </div>
 
       {/* Labs: subtarjeta con acento rojo (#1146) con TODAS las filas labs
-          (servicios e integraciones): orquestación, rack y MCP. Sin Labs
+          (servicios e integraciones): orquestación y rack. Sin Labs
           activo no se muestra nada de este bloque. */}
       {services.labs && (
         <div className="mt-4 rounded-xl border border-danger/30 bg-danger/5 p-4">