fiber

v1.4.0
io.github.superlabs-x/fiber Checked 2 days ago Published 11 days ago

Optical ops MCP for AI data centers: telemetry, RUL, digital twin, NCCL, SPARQL.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fiber_health

Check FIBER platform health — returns status of ClickHouse and PostgreSQL backends. Use this first to confirm the platform is reachable before making other queries.

fiber_info

Get FIBER API version, supported features list, scale benchmarks and ML validation metrics. Use this to understand what capabilities are available in the current deployment.

fiber_cluster_overview

Cluster-wide optical health summary: total ports, normal/warning/critical counts, average risk score, active UFM predictions, speed distribution (400G / 800G / 400ZR / 1.6T CPO / 1.6T LPO). Use this for a single-glance assessment of fleet state.

fiber_list_ports

List monitored optical ports with real-time telemetry, risk scores, and severity. Filter by vendor (Coherent / Finisar / II-VI / Lumentum / InnoLight / NVIDIA / Credo / Macom / Semtech), severity (critical / warning / normal), or speed (400G / 800G / 400ZR / CPO / LPO / 1.6T). Coherent ports include SNR/OSNR/CD/PMD/pre-FEC BER. CPO ports include fau_alignment_loss / cpo_die_temp / cpo_bank_id. LPO ports include lpo_link_margin_db / lpo_host_pcb_temp / lpo_sfi_isi_margin.

ParameterTypeDescription
limitinteger
offsetinteger
severitystring
sort_bystring
speedstring400G / 800G / 400ZR / CPO / LPO / 1.6T
vendorstringOptional vendor filter

fiber_port_detail_history

Retrieve time-series telemetry history for a specific port over the last 1 / 6 / 24 hours. Returns rx_power, tx_power, temperature, bias_current, voltage, FEC counters, and optics-type-specific metrics (SNR for coherent, FAU/die_temp for CPO, margin/PCB/ISI for LPO). Use this to investigate trends before deciding on maintenance.

ParameterTypeDescription
port_name *stringe.g., Ethernet1/1
switch_name *string
hoursinteger

fiber_list_alerts

List risk alerts from the 3-tier scoring engine. Filter by severity or alert type. Alert types include rule_rx_power_low, rule_temperature_high, rule_fec_uncorrectable, rule_snr_low (coherent), rule_fau_alignment_critical (CPO), rule_cpo_shared_laser_bank_failure (CPO correlated), rule_lpo_link_margin_critical (LPO), iqr_*, ufm_prediction, ml_failure_prediction.

ParameterTypeDescription
alert_typestring
limitinteger
offsetinteger
severitystring

fiber_top_risky_ports

Return the ports with the highest current risk scores across the fleet. Use this to prioritize investigation — the highest scores typically have multiple concurrent issues (rule violations, IQR outliers, UFM predictions, ML anomalies).

fiber_ml_rul_info

Return metadata about the LSTM-based Remaining Useful Life model: validation MAE in hours, training/validation sample counts, sequence length, feature names. No auth required.

fiber_ml_predict_rul

Return the LSTM-predicted remaining useful life (in hours) for a specific port. Uses the last 24 optical readings (2-min window) as input. Urgency buckets: imminent (< 6h), soon (< 24h), normal (< 48h), healthy (>= 48h). Use this to decide whether a port needs emergency replacement or can wait for the next maintenance window.

ParameterTypeDescription
port_name *string
switch_name *string

fiber_ml_anomaly_scan

Run the VAE (Variational Autoencoder) anomaly scan across all ports. Returns ports whose reconstruction error exceeds the learned p99 threshold, sorted by severity_ratio (anomaly_score / threshold). Catches degradation patterns without labeled failures — useful when no explicit threshold has triggered but something is off.

fiber_cpo_bank_status

Return per-switch, per-bank status for CPO (Co-Packaged Optics, NVIDIA Spectrum-X Photonics) switches. Each switch has 8 shared laser banks × 6 ports. Flags banks where >= 3 ports are stressed (laser_bank_failure — check/replace the bank's external laser source (ELS) module, which is field-replaceable on current CPO switches), die temperature > 95°C (die_thermal_throttle), or FAU alignment loss > 3.5 dB (fau_alignment_critical — optical engine, switch-level RMA). Neither is fixed by replacing a port optic.

fiber_digital_twin_monte_carlo

Run Monte Carlo what-if analysis on the fabric. Samples link failures probabilistically and returns p50/p95/p99 distributions of GPU-hours lost and USD cost (checkpoint rollback + recovery overhead). Use to quantify fabric robustness to random failures. fixed_links pin specific failures to include in every iteration.

ParameterTypeDescription
checkpoint_interval_minnumber
failure_rate_per_linknumber
fixed_linksarray
iterationsinteger
recovery_overhead_minnumber

fiber_digital_twin_compare

Compare multiple link-failure scenarios side by side. Each scenario defines a list of (switch, port) links assumed to fail simultaneously. Returns per-scenario impact, GPU-hours lost, and USD cost — useful for deciding which maintenance ordering minimizes blast radius.

ParameterTypeDescription
scenarios *array

fiber_counterfactual_port

'If this port had been healthy' — computes GPU-hours and USD that would have been avoided over the past N hours, based on historical critical alert segments × current affected GPUs × (checkpoint rollback + recovery overhead).

ParameterTypeDescription
port_name *string
switch_name *string
hoursinteger

fiber_counterfactual_cluster

Top N ports ranked by avoidable cost. Sums across ports to estimate total GPU-hours and USD the cluster could have avoided had those ports been healthy. Ideal for monthly infra ROI reporting.

ParameterTypeDescription
hoursinteger
top_ninteger

fiber_nccl_summary

Aggregate NCCL collective statistics over the last N minutes: mean/p50/p05 bandwidth, p95/p99 duration, low-bandwidth event count. Requires NCCL Inspector events previously ingested via ingest_nccl_events.

ParameterTypeDescription
minutesinteger

fiber_nccl_optical_correlation

Correlate low-bandwidth NCCL events with optical telemetry anomalies on the GPU-node's upstream port. For each low-bw event, fetches ±60s optical samples and flags whether rx_power / temperature / FEC were anomalous. Produces the 'NCCL drop ↔ optical root cause' evidence that closes the loop between GPU performance and the physical layer — FIBER's flagship cross-layer diagnosis capability.

ParameterTypeDescription
low_bw_thresholdnumberGB/s below which event is slow
minutesinteger

fiber_run_benchmark_harness

Run the synthetic-failure benchmark across 14 failure scenarios (thermal_precursor, fiber_loose, voltage_instab, coherent_snr_drop, cpo_die_thermal, cpo_laser_bank, lpo_sfi_closure, intermittent_flap, fec_flood, cpo_fau_drift, hyperscale_saturation, multi_link_concurrent, coherent_multipath_ber, stream_silence), scoring FIBER against six modelled baselines: UFM Cyber-AI, CloudVision, Apstra, Nexus Dashboard, Cisco Nexus One and a PyOD-style single-channel z-score stand-in. Returns per-scenario and overall precision / recall / F1 plus the first-detection stage. Reproducible via seed (seed=42 is…

ParameterTypeDescription
samplesinteger
seedinteger

fiber_sustainability

Cluster ESG metrics: instantaneous power in kW, kWh/year, CO2e/year (Scope 2), RMA-driven e-waste CO2e (Scope 3), avoided emissions from preventive maintenance (vs emergency technician dispatch). Per-optics power breakdown (CPO is the most efficient at 5W/port, Coherent is the densest at 21W/port).

fiber_checkpoint_aware_windows

Compute per-job next-checkpoint micro maintenance windows. Each running job is assumed to checkpoint every checkpoint_interval_min minutes (default 15); the micro-window is the 3-min slot immediately after each checkpoint. Replacing optics there minimizes rollback cost. Returns ordered upcoming windows within next N hours.

ParameterTypeDescription
hours_aheadinteger

fiber_list_diagnosis_reports

List recent auto-generated diagnosis reports (one per incident, with root cause category and evidence).

ParameterTypeDescription
limitinteger

fiber_get_diagnosis_report

Fetch a specific diagnosis report by its UUID — includes root cause, evidence, impact, recommended actions, ETA to failure, and (for 800G leaf-spine links) a link_verdict that compares both link ends: remote/local transmitter degraded (module replacement candidate), path loss increase (clean connectors first, cable and connector are not distinguished), or a hold reason.

ParameterTypeDescription
report_id *string

fiber_postmortem_timeline

Build a deterministic (no LLM) incident postmortem timeline for a port. Pure SQL aggregation: critical events window, rx/temp/fec extremes, related alerts, affected jobs, estimated incident cost. Use when ANTHROPIC_API_KEY is not configured or for audit-grade deterministic reports.

ParameterTypeDescription
port_name *string
switch_name *string
hoursinteger

fiber_postmortem_gala

GALA-style iterative graph-augmented RCA (arXiv:2508.12472, +42% accuracy vs single-LLM). Walks the topology graph: optical → CPO bank → NCCL/GCM events → adjacent ports → similar past incidents. Returns deterministic hypothesis + (if ANTHROPIC_API_KEY set) LLM narrative. Use this when you need a defensible root-cause beyond the legacy single-pass postmortem.

ParameterTypeDescription
port_name *string
switch_name *string
hoursinteger
use_llmboolean

fiber_integrations_status

Check which W9 integrations are enabled: Splunk HEC, Datadog OTLP, Meta GCM ingest, NVIDIA DCGM correlation. Returns one boolean per integration.

fiber_gcm_summary

Aggregate Meta GCM (facebookresearch/gcm) GPU events ingested in the last N minutes — GPU temperature alerts, NVLink recovery errors, XID events, ECC counters, SM throttle. Pairs with fiber_gcm_optical_correlation to close the GPU↔optical loop NVIDIA's NCCL Inspector exporter never connects.

ParameterTypeDescription
minutesinteger

fiber_gcm_optical_correlation

Correlate Meta GCM critical/warning GPU events with optical telemetry on the GPU's upstream leaf port (±60s window). Returns hit rate and per-event evidence. The defensible 'GPU + Optical fused fault chain' that no other tool ships post Meta GCM open-source release (2026-02-24).

ParameterTypeDescription
minutesinteger

fiber_dcgm_correlation

Correlate NVIDIA dcgm-exporter Prometheus metrics (GPU temp, NVLink recovery, XID errors) with optical telemetry (±60s) on the GPU's leaf port. Requires FIBER_DCGM_PROMETHEUS_URL to be set. Returns hit-rate and per-event evidence. Mission Control 2.3.0 + dcgm-exporter alone shows only the GPU half — this tool adds the optical half.

ParameterTypeDescription
minutesinteger

fiber_ml_anomaly_conformal

Inductive conformal anomaly detection on a single port — provides a **finite-sample, distribution-free** false-positive guarantee (P(p < α | normal) ≤ α under exchangeability). Differs from VAE threshold gating which is a single learned cut-off — conformal returns a calibrated p-value against an empirical null built from recent normal readings. Reference: arXiv:2604.20122.

ParameterTypeDescription
port_name *string
switch_name *string
alphanumber

fiber_digital_twin_deterministic_trace

Pure SQL/graph reachability proof — given a list of failed (switch, port) links, walk the topology BFS from spines outward and emit each hop. Output is byte-identical for the same (topology snapshot, failed_links) input — no probability, no LLM. Forward Networks-style deterministic query. Use for audit / compliance, root-cause closure, or as a reproducible baseline against Monte Carlo distributions.

ParameterTypeDescription
failed_linksarray

fiber_governance_status

Return the current MCP server governance posture: write-enabled flag, tool allowlist (if any), exposed tool count, and per-tool RBAC role hints. Use this to verify that an agent has been correctly scoped to a minimum tool set.

fiber_ml_rul_with_heatmap

Like fiber_ml_predict_rul but also returns a 24-timestep × 10-feature saliency heatmap (gradient × input, signed). Useful to explain in DiagnosisPage exactly which channel/timestep drove the RUL prediction down. New in W9.

ParameterTypeDescription
port_name *string
switch_name *string

fiber_sparql_query

Execute SPARQL SELECT/ASK/DESCRIBE/CONSTRUCT against the FIBER optics ontology. Backed by Apache Jena Fuseki (same engine ETRI validated). Use cases: cross-resource topology queries, ad-hoc analytics, multi-hop relationship discovery. Returns: SELECT/ASK → JSON results; DESCRIBE/CONSTRUCT → turtle string. Forbidden ops (INSERT/DELETE/DROP/CLEAR/LOAD/CREATE/etc.) are blocked. Requires FIBER_SPARQL_ENABLED=1 on the API side. Ontology namespace: <https://fiber.ac/ontology/optics#> (fiber:Switch, fiber:Port, fiber:Transceiver, fiber:OpticalLink, fiber:GpuNode, fiber:Job, fiber:Tenant, fiber:Al…

ParameterTypeDescription
query *stringSPARQL query string. PREFIX fiber: <https://fiber.ac/ontology/optics#> recommended.

fiber_topology_traverse

Multi-hop topology traversal starting from a given node (port, switch, gpu, or job). Automatically generates a SPARQL CONSTRUCT query using fiber:connectsTo / fiber:hasPort / fiber:linkedToGpu / fiber:runsJob property paths up to N hops. ETRI TDBService.java 3-hop pattern으로 영감을 받음. Returns: turtle graph + json node list. 예: '광 모듈 → 영향받는 GPU → 진행 중 K8s job' 자동 추적.

ParameterTypeDescription
start_uri *string시작 노드 URI (예: 'https://fiber.ac/ontology/optics#sw-leaf-024' 또는 'port-sw01-arista-7050qx-Ethernet5')
hopsinteger탐색 최대 홉 수 (1~5)