Skip to content
pnc-diag

pnc-diag

Pypi •[email protected] • December 1, 2026

Open-source thin interface, zero-deserialization bag inspector, Agent Skill, and synthetic example kit for autonomous driving PNC and LiDAR-SLAM telemetry.

pip install pnc-diag-mcp==0.1.1

Fast 3-second offline pre-triage & CI layer for multi-GB .mcap , .db3 , and .bag recordings — before you dive into PlotJuggler. pnc-diag-mcp reads ROS 2 & ROS 1 bags 100% locally offline with zero ROS 2 installation , audits topic timing without deserializing payloads, maps Nav2 / Autoware signals via declarative YAML, and exposes read-only tools for MCP-compatible AI coding assistants.

Above: Live offline .mcap telemetry playback (wheel slip @28.1s + control lag @33.0s) and cross-module First-Domino 5-panel diagnosis powered by PNC-Diag MCP Pro .

Try the Free Open-Source Foundation in 10 Seconds

No ROS 2 install, no Docker, no cloud uploads:

Note for ROS 2 shells: Prefix commands with env -u PYTHONPATH if /opt/ros/ /setup.bash is sourced.

Note for ROS 2 shells: Prefix commands with env -u PYTHONPATH if /opt/ros/ /setup.bash is sourced.

Open-Source Thin vs. PNC-Diag MCP Pro

The open-source repository (Apache-2.0) gives you the offline multi-format reader, zero-deserialization timing auditor, Nav2/Autoware YAML signal mapper, and 10 synthetic example scenarios.

When localization, planning, and control all fire alarms in the same second, PNC-Diag MCP Pro adds 15 compiled deterministic physics operators ( .so Linux x86_64 wheels for Python 3.10–3.13 , including Ubuntu 22.04 & 24.04) to pinpoint the First Domino , separate mixed faults, generate 5-panel aligned PNG evidence plots, and enforce CI KPI regression gates:

Plug-and-play upgrade: pnc-diag-mcp automatically discovers pnc-diag-pro when installed in the same Python environment—zero MCP client reconfiguration required:

👉 Get PNC-Diag MCP Pro ($49 Early-Bird for first 20 engineers with code EARLYBIRD30 , regular $79 one-time):

Features and Open-Source Scope

Included and working in Apache-2.0 Thin Edition

Offline multi-format discovery and timing scans without payload deserialization ( src/pnc_diag/readers/ , src/pnc_diag/inspector.py ) Detects .mcap , .db3 / .sqlite3 , ROS 1 .bag , and ROS 2 bag directories; validates relative paths in metadata.yaml . Audits each topic in its original storage order: message count, duration, mean rate, median and P95 period, P95 jitter, gaps ( heuristic_large_gap ), timestamp regressions ( monotonic_violations ), and zero timestamps ( zero_timestamps ). Uses bounded early-message sampling to check for header.stamp , count zero header stamps, and report the neutral observed_header_minus_log_ms observation. It does not assume cross-topic clock synchronization.

Detects .mcap , .db3 / .sqlite3 , ROS 1 .bag , and ROS 2 bag directories; validates relative paths in metadata.yaml .

Audits each topic in its original storage order: message count, duration, mean rate, median and P95 period, P95 jitter, gaps ( heuristic_large_gap ), timestamp regressions ( monotonic_violations ), and zero timestamps ( zero_timestamps ).

Uses bounded early-message sampling to check for header.stamp , count zero header stamps, and report the neutral observed_header_minus_log_ms observation. It does not assume cross-topic clock synchronization.

Standard signal models and declarative YAML mapping ( src/pnc_diag/models/ , configs/ ) Includes standard mappings for Nav2 ( configs/topic_map.nav2.yaml ) and Autoware Universe ( configs/topic_map.autoware.yaml ). Extracts dot paths and array elements (for example, pose.covariance[0] ), converts FLU / FRD frames and rad / deg units, and returns PoseSample , TwistSample , ImuSample , PathSample , ControlCmdSample , LaserScanSample , and DiagnosticEvent values.

Includes standard mappings for Nav2 ( configs/topic_map.nav2.yaml ) and Autoware Universe ( configs/topic_map.autoware.yaml ).

Extracts dot paths and array elements (for example, pose.covariance[0] ), converts FLU / FRD frames and rad / deg units, and returns PoseSample , TwistSample , ImuSample , PathSample , ControlCmdSample , LaserScanSample , and DiagnosticEvent values.

Small CLI and stdio MCP server ( src/pnc_diag/cli.py , src/pnc_diag/mcp_server.py ) CLI commands: pnc-diag inspect and pnc-diag preview . The pnc-diag-mcp stdio server exposes three tools: ping , inspect_bag_summary , and sample_mapped_signals . Includes the orchestration SKILL.md and fault pattern reference .

CLI commands: pnc-diag inspect and pnc-diag preview .

The pnc-diag-mcp stdio server exposes three tools: ping , inspect_bag_summary , and sample_mapped_signals .

Includes the orchestration SKILL.md and fault pattern reference .

Reproducible synthetic examples ( fault_sim_kit/ ) Generates one baseline recording and nine synthetic fault, missing-data, or zero-timestamp examples under data/golden/ for integration and regression exercises.

Generates one baseline recording and nine synthetic fault, missing-data, or zero-timestamp examples under data/golden/ for integration and regression exercises.

Requirements and Installation

Python: >=3.10, /data/golden/ by default. After a non-editable install, it writes to ./data/golden/ in the current working directory. Use --out to choose another location. If your shell has sourced ROS 2 (for example, Humble or Jazzy), prefix commands with env -u PYTHONPATH to keep system Python paths out of the virtual environment.

The default Nav2 and Autoware topic maps are bundled in the wheel under pnc_diag._configs . The default Nav2 map loads without --map-config whether you use uv sync , pip install -e . , or install the wheel from another directory. Use --map-config autoware for the bundled Autoware map, or pass a path to a custom YAML map.

In a source checkout, python -m fault_sim_kit.generator writes to /data/golden/ by default. After a non-editable install, it writes to ./data/golden/ in the current working directory. Use --out to choose another location.

If your shell has sourced ROS 2 (for example, Humble or Jazzy), prefix commands with env -u PYTHONPATH to keep system Python paths out of the virtual environment.

Synthetic Examples and Tests

The distribution does not contain the approximately 47 MB of generated .mcap files. Run the tests or generate the examples locally:

This edition provides the inspect and preview commands:

MCP Server and Agent Skill

pnc-diag-mcp stdio tools

Example MCP Client Configuration

Using uvx (from PyPI):

Or from a local source checkout:

The Agent Skill is in .agents/skills/pnc-slam-diag/SKILL.md , with a fault pattern reference .

Start with the generated synthetic examples, then try pnc-diag inspect or pnc-diag preview on a recording you are authorized to analyze. This edition provides inspection and signal sampling, not a definitive root-cause diagnosis.

Reproducible bugs: Open a Bug report . Include your Python version, operating system, install method, recording format, command, expected and actual behavior, and sanitized output.

Usage questions, workflow feedback, and feature ideas: Start a Discussion .

Do not upload raw customer recordings, proprietary bags, credentials, or identifying logs to public Issues or Discussions. a synthetic or anonymized minimal reproduction when possible.

Data and Diagnostic Limitations

Inspection foundation only: This edition does not calculate quantitative localization, planning, or control anomaly metrics, or make a definitive multi-sensor root-cause determination. Review the evidence manually or use PNC-Diag MCP Pro for deterministic root-cause adjudication.

No clock synchronization inference: observed_header_minus_log_ms records the difference between a message header timestamp and its recorded log timestamp. By itself, it cannot distinguish sensor clock drift from queueing or transport delay. This edition reports clock_comparability="unverified" by default.

Synthetic examples are exercises, not a blind benchmark: fault_sim_kit produces simplified closed-loop kinematic data, not representative sensor noise, vehicle dynamics, or real-vehicle acceptance data. The repository does not commit golden_truth.json or generated bag files, but it does publish the definitions of all 10 scenarios and the code that generates their ground truth. Use a separate, unpublished dataset for blind tests or benchmark evaluations.

Read-only offline operation: The tools do not send vehicle commands, change parameters, or operate ROS nodes.

License and Third-Party Notices

License: This repository is released under the Apache License 2.0 ; see NOTICE . Subject to the license terms, others may use, modify, and redistribute the published code commercially. The private physical diagnostic core, calibrated rules, and enterprise gates are outside this repository.

Dependencies and provenance: See THIRD_PARTY_NOTICES.md for dependency licenses and acknowledgments of upstream code and design references. The documented runtime and development dependencies use permissive MIT, BSD, or Apache-2.0 licenses; no GPL code is included in this repository.

Release files for pnc-diag-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 3.4 MB

Release files / pnc_diag_mcp-0.1.1.tar.gz

Release files / pnc_diag_mcp-0.1.1-py3-none-any.whl

Security for pnc-diag-mcp 0.1.1

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Dec 1, 2026 2 release files No provenance

Nov 24, 2026 2 release files No provenance

Extracted Entities

Companies (1)