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

Stdio MCP-сервер, которому не нужны ни API-ключ, ни аккаунт, ни переменные окружения.

Это агент-нативный аналог страницы бесплатных инструментов на dxpert.ai/tools.html: любой MCP-клиент без каких-либо учётных данных может проверить темы Sparkplug B, проверить Unified Namespace на предмет соглашений, которые незаметно разрушают его, и запустить публичную диагностику промышленной ИИ-готовности.

Инструменты действительно бесплатны. Нет счётчика пробных версий, нет регистрации и нет необходимости сначала получать ключ. Если позже вы захотите платную поверхность — агентов, Namespace Architect, консультации с учётом аккаунта — она находится в отдельном сервере @dxpert/mcp, который требует ключ dxp_.

Ноль зависимостей времени выполнения. Рукопожатие MCP stdio JSON-RPC (initialize, tools/list, tools/call) реализовано вручную с использованием кадрирования Content-Length.

Установка

Никаких дополнительных шагов установки не требуется, кроме Node 18+ (для встроенного fetch).

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"]

Универсальные MCP-клиенты

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

Обратите внимание, что ни одна из этих записей не содержит блок env. В этом и суть.

Related MCP server: MCP Gatekeeper

Инструменты

lint_sparkplug_topic(topics) — локально, офлайн

Проверяет одну или несколько строк тем MQTT на соответствие грамматике тем Sparkplug B (Sparkplug 3.0). Принимает одну строку, строку, разделённую переводами строк, или массив.

Проверяет уровень пространства имён spBv1.0, восемь типов сообщений (NBIRTH NDEATH DBIRTH DDEATH NDATA DDATA NCMD DCMD) плюс STATE, количество уровней для узла и устройства, устаревшую форму STATE из Sparkplug 2.2, подстановочные знаки MQTT на стороне публикации, пустые уровни и символы идентификаторов, которые ломают нижестоящих потребителей.

Возвращает упорядоченные результаты (fail / warn / pass / info) с разобранными частями темы. Он не подключается к брокеру, не декодирует полезные нагрузки и не проверяет существование устройства.

check_uns_namespace(topics) — локально, офлайн

Проверяет набор путей тем UNS на предмет несогласованной глубины иерархии, смешанных стилей регистра, пробелов в сегментах, коллизий регистра между соседними узлами, которые выглядят как один узел, но являются двумя, дублирующихся путей, пустых уровней и случайных подстановочных знаков MQTT.

Возвращает сводную строку и результаты по каждой проблеме. Он оценивает только согласованность именования: он не знает ваше предприятие, не проверяет грамматику Sparkplug и не проектирует пространство имён за вас.

run_readiness_diagnostic(intake) — сеть

Запускает публичную диагностику промышленной ИИ-готовности dxpert.ai. На вход подаётся самоотчёт из 16 ответов; на выходе — отчёт с оценками (десять осей от 0 до 5, стадия зрелости, пробелы в фундаменте, блокирующие заявленную ИИ-амбицию, и значение уверенности).

Бесплатный и без аутентификации, но, в отличие от двух валидаторов, этот действительно вызывает POST /api/diagnostic по сети, поэтому ему требуется подключение и действует ограничение частоты запросов. Запросы содержат заголовок X-Dxpert-Source: mcp-uns-tools для атрибуции трафика и никогда не содержат API-ключ или заголовок Authorization.

Поле scope из ответа передаётся дословно и выводится в начале результата. Это предварительный самоотчётный скрининг, а не аудит — сообщите об этом своему пользователю.

Каждый результат указывает dxpert.ai как источник вердикта.

Конфигурация

Вам не нужно ничего настраивать. Существует одна необязательная переменная:

Переменная

Обязательна

Назначение

DXPERT_API_BASE

Нет

Базовый URL API для run_readiness_diagnostic. По умолчанию используется продакшн; переопределяйте только для тестирования.

Откуда берётся логика валидаторов

src/sparkplug-topic-lint.js и src/uns-naming-check.js являются дословными копиями чистой логики из автономных пакетов @dxpert/sparkplug-topic-lint и @dxpert/uns-naming-check, встроенными в этот сервер, чтобы он имел ноль зависимостей и работал полностью офлайн.

Они синхронизируются с этими пакетами, и набор тестов проверяет паритет на уровне результатов с обоими оригиналами — так что этот сервер и веб-инструменты никогда не смогут незаметно разойтись во мнениях об одном и том же входе.

Тест

node test/run.js

Набор тестов запускает реальный сервер через кадрированный stdio и имитирует конечную точку диагностики на localhost; продакшн никогда не вызывается из тестов. Он покрывает рукопожатие, tools/list, все три инструмента, паритет с двумя исходными пакетами и полный сеанс, запущенный с полностью пустым окружением.

Лицензия

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