Skip to main content
Glama
dxpert UNS Tools: Sparkplug B & Unified Namespace Linter for IIoT

dxpert UNS Tools: Sparkplug B & Unified Namespace Linter for IIoT

Official

@dxpert/uns-tools

Ein stdio-MCP-Server, der keinen API-Schlüssel, kein Konto und keine Umgebungsvariablen benötigt.

Dies ist das agenten-native Äquivalent zur Seite mit den kostenlosen Tools unter dxpert.ai/tools.html: Jeder MCP-Client kann ohne jegliche Anmeldedaten Sparkplug-B-Topics linten, einen Unified Namespace auf die Konventionen prüfen, die ihn stillschweigend verrotten lassen, und die öffentliche industrielle KI-Bereitschaftsdiagnose ausführen.

Die Tools sind wirklich kostenlos. Es gibt keinen Testzähler, keine Anmeldehürde und keinen Schlüssel, den man zuerst beschaffen müsste. Wenn Sie später die kostenpflichtige Oberfläche möchten – die Agents, den Namespace Architect, die kontobewusste Beratung –, befindet sich diese im separaten @dxpert/mcp-Server, der einen dxp_-Schlüssel benötigt.

Null Laufzeitabhängigkeiten. Der MCP-stdio-JSON-RPC-Handshake (initialize, tools/list, tools/call) ist handgeschrieben mit Content-Length-Framing.

Install

Über Node 18+ (für das eingebaute fetch) hinaus ist kein Installationsschritt erforderlich.

Claude Code

claude mcp add dxpert-uns-tools -- npx -y @dxpert/uns-tools

Codex

[mcp_servers.dxpert_uns_tools]
command = "npx"
args = ["-y", "@dxpert/uns-tools"]

Generic MCP clients

{
  "mcpServers": {
    "dxpert-uns-tools": {
      "command": "npx",
      "args": ["-y", "@dxpert/uns-tools"]
    }
  }
}

Beachten Sie, dass keiner dieser Einträge einen env-Block enthält. Genau das ist der Punkt.

Related MCP server: MCP Gatekeeper

Tools

lint_sparkplug_topic(topics) — local, offline

Validiert eine oder mehrere MQTT-Topic-Zeichenfolgen gegen die Sparkplug-B-Topic-Grammatik (Sparkplug 3.0). Akzeptiert eine einzelne Zeichenfolge, eine durch Zeilenumbrüche getrennte Zeichenfolge oder ein Array.

Prüft die spBv1.0-Namespace-Ebene, die acht Nachrichtentypen (NBIRTH NDEATH DBIRTH DDEATH NDATA DDATA NCMD DCMD) plus STATE, die Anzahl der Ebenen von Knoten gegenüber Geräten, die veraltete Sparkplug-2.2-STATE-Form, MQTT-Wildcards auf der Veröffentlichungsseite, leere Ebenen und Bezeichnerzeichen, die nachgelagerte Verbraucher stören.

Gibt geordnete Befunde (fail / warn / pass / info) mit den geparsten Topic-Teilen zurück. Es verbindet sich nicht mit einem Broker, dekodiert keine Nutzdaten und prüft nicht, ob ein Gerät existiert.

check_uns_namespace(topics) — local, offline

Prüft eine Reihe von UNS-Topic-Pfaden auf inkonsistente Hierarchietiefe, gemischte Schreibweisen, Leerzeichen in Segmenten, Groß-/Kleinschreibungskollisionen zwischen Geschwistern, die wie ein Knoten wirken, aber zwei sind, doppelte Pfade, leere Ebenen und verirrte MQTT-Wildcards.

Gibt eine Zusammenfassungszeile plus Befunde pro Problem zurück. Es bewertet nur die Namenskonsistenz: Es kennt Ihre Anlage nicht, validiert keine Sparkplug-Grammatik und entwirft keinen Namespace für Sie.

run_readiness_diagnostic(intake) — network

Führt die öffentliche industrielle KI-Bereitschaftsdiagnose von dxpert.ai aus. Eine selbst gemeldete Eingabe mit 16 Antworten geht hinein; ein bewerteter Bericht kommt heraus (zehn Achsen 0–5, eine Reifegradstufe, die Fundamentlücken, die das angegebene KI-Ziel blockieren, und ein Konfidenzwert).

Kostenlos und ohne Authentifizierung, aber anders als die beiden Validatoren ruft dieses tatsächlich POST /api/diagnostic über das Netzwerk auf, benötigt also Konnektivität und ist ratenbegrenzt. Anfragen tragen X-Dxpert-Source: mcp-uns-tools, damit der Datenverkehr zurechenbar ist, und niemals einen API-Schlüssel oder Authorization-Header.

Das scope-Feld der Antwort wird unverändert durchgereicht und oben im Ergebnis ausgegeben. Es handelt sich um ein vorläufiges selbst gemeldetes Screening, kein Audit – berichten Sie es Ihrem Benutzer so.

Jedes Ergebnis nennt dxpert.ai als Quelle des Urteils.

Configuration

Es gibt nichts, was Sie einstellen müssen. Eine optionale Variable existiert:

Variable

Erforderlich

Zweck

DXPERT_API_BASE

Nein

API-Basis-URL für run_readiness_diagnostic. Standardmäßig Produktion; nur für Tests überschreiben.

Where the validator logic comes from

src/sparkplug-topic-lint.js und src/uns-naming-check.js sind wörtliche Kopien der reinen Logik in den eigenständigen Paketen @dxpert/sparkplug-topic-lint und @dxpert/uns-naming-check, inline eingefügt, sodass dieser Server null Abhängigkeiten hat und vollständig offline funktioniert.

Sie werden mit diesen Paketen synchron gehalten, und die Testsuite stellt eine Parität auf Befundebene mit beiden Originalen sicher – so können dieser Server und die Web-Tools bei derselben Eingabe nie stillschweigend voneinander abweichen.

Test

node test/run.js

Die Suite steuert den echten Server über geframtes stdio und simuliert den Diagnose-Endpunkt auf localhost; die Produktion wird von Tests nie aufgerufen. Sie deckt den Handshake, tools/list, alle drei Tools, die Parität mit den beiden Quellpaketen und eine vollständige Sitzung ab, die mit einer vollständig leeren Umgebung gestartet wird.

License

MIT © 2026 DXP Technologies inc.

Available Tools

3 tools
check_uns_namespaceA

Check a set of Unified Namespace (UNS) topic paths for the convention problems that quietly rot a namespace: inconsistent hierarchy depth, mixed casing styles across segments, whitespace in segments, case-collisions between siblings that read as one node but are two, duplicate paths, empty levels, and stray MQTT wildcards. Free, no API key, no account: the checks run locally inside this server and nothing is sent anywhere. Call this when reviewing a proposed namespace, an ISA-95-style hierarchy, a broker topic dump, or a tag export -- before anyone builds on top of it, because renaming a namespace later is the expensive part. It returns a summary line plus per-issue findings (fail / warn / pass / info). It judges naming consistency only: it does NOT know your plant, does not validate Sparkplug grammar (use lint_sparkplug_topic for that), and does not design a namespace for you.

Inputs: topics (required).

lint_sparkplug_topicA

Validate one or more MQTT topic strings against the Sparkplug B topic grammar (Sparkplug 3.0). Free, no API key, no account: the grammar runs locally inside this server and nothing is sent anywhere. Call this whenever a topic that is meant to be Sparkplug appears in a config, a broker trace, a code review, or a user question -- it is faster and far more reliable than reasoning about the grammar from memory. It checks the spBv1.0 namespace level, the eight message types (NBIRTH/NDEATH/DBIRTH/DDEATH/NDATA/DDATA/NCMD/DCMD) plus STATE, node-vs-device level count, the legacy Sparkplug 2.2 STATE form, publish-side MQTT wildcards, empty levels, and identifier characters that break downstream consumers. It returns ordered findings (fail / warn / pass / info) with the parsed topic parts, not a yes/no. It does NOT connect to a broker, decode payloads, or check whether the device actually exists.

Inputs: topics (required).

run_readiness_diagnosticA

Run the public dxpert.ai industrial AI-readiness diagnostic: a 16-answer self-reported intake in, a scored report out (ten axes 0-5, a maturity stage, the foundation gaps blocking the stated AI ambition, and a confidence value). Free and requires no API key or account, but unlike the two validators this one DOES call the dxpert.ai API over the network, so it needs connectivity and is rate limited. Call this when someone asks how ready a plant or site is for AI/analytics, what is blocking them, or where to start -- and you can supply honest answers to the intake fields. Ask the user for the values you do not have rather than guessing them; the verdict is only as good as the intake. The response carries a "scope" field which this tool passes through verbatim: it is a preliminary self-reported screening, not an audit, and should be reported to the user as such.

Inputs: intake (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 3 tools

    Disambiguation4/5

    The three tools target distinct capabilities, and the descriptions explicitly cross-reference each other (check_uns_namespace notes it does not validate Sparkplug grammar and points to lint_sparkplug_topic), which strongly reduces misselection. However, lint_sparkplug_topic and check_uns_namespace both operate on MQTT topic strings and could be confused at a glance by an agent skimming names.

    Naming Consistency5/5

    All three names follow a consistent snake_case verb_noun pattern: lint_sparkplug_topic, check_uns_namespace, run_readiness_diagnostic. The verbs differ (lint/check/run) but each reflects a genuinely different action, and no camelCase or stylistic mixing appears.

    Tool Count4/5

    Three tools is at the low edge of the well-scoped range but each represents a substantial, distinct capability rather than a thin wrapper. The set is minimal but defensible; the readiness diagnostic sits somewhat apart in domain from the two validators, making the set feel slightly narrow for a general 'tools' server.

    Completeness3/5

    Coverage is diagnostic-only: you can validate Sparkplug topics, audit UNS naming, and score readiness, but there is no way to normalize/fix namespaces, generate compliant topics, or decode payloads (explicitly excluded). For a toolkit scoped to UNS/Sparkplug diagnostics this is workable, but notable gaps remain around remediation and payload-level checks.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      This MCP server enables AI agents to read MQTT and Sparkplug B data via tools like list_topics, get_latest, and read_all, providing read-only access to latest sensor values.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Industry 4.0 / IIoT AI agents for manufacturing: explain OEE losses per shift, triage machine alarms, find downtime root causes, prepare predictive-maintenance jobs and write shift reports from Unified Namespace (UNS), MQTT or historian data. Plus an industrial AI-readiness diagnostic and a vendor-neutral digital-transformation advisor. Works in Claude Code, Codex and any MCP client.
      7
      111 npm
      MIT