Skip to main content

Security-first MCP server for verification intelligence (SystemVerilog/UVM/cocotb)

Project description

๐Ÿ›ก๏ธ Sentinel DV v1.3.0 - Verification Intelligence for AI Agents

Python PyPI MCP License CI Documentation PRs Welcome Coverage

A security-first MCP server for verification intelligence (SystemVerilog/UVM/cocotb)

Features โ€ข Architecture โ€ข Quick Start โ€ข Documentation


๐ŸŒŸ What is Sentinel DV?

Sentinel DV is an open-source Model Context Protocol (MCP) server that provides large language models and AI agents with safe, structured, read-only access to verification artifactsโ€”enabling deterministic triage, root-cause analysis, and verification insight without exposing raw logs or granting control of simulators.

Verification Ecosystems Supported

  • ๐Ÿ”ง UVM (Universal Verification Methodology) - Enterprise verification framework
  • ๐Ÿ cocotb - Python-based verification with coroutines
  • ๐Ÿ“Š SystemVerilog - Assertions, coverage, and native testbenches
  • ๐ŸŒŠ Waveform summaries - *.wave.json and *.vcd via built-in parsers (no raw FSDB/WLF streaming)

All through a unified, schema-driven interface with built-in security, redaction, and deterministic outputs.


๐Ÿ—๏ธ Architecture

Sentinel DV follows a strict separation of concerns with security-first principles:

sentinel_dv/
โ”œโ”€โ”€ server.py              # MCP server entrypoint
โ”œโ”€โ”€ config.py              # Security limits, feature flags, governance
โ”œโ”€โ”€ registry.py            # Tool registration and versioning
โ”œโ”€โ”€ schemas/               # Typed contracts for all data
โ”‚   โ”œโ”€โ”€ common.py         # EvidenceRef, RunRef, base types
โ”‚   โ”œโ”€โ”€ tests.py          # TestCase, TestTopology, UvmTopology
โ”‚   โ”œโ”€โ”€ failures.py       # FailureEvent, FailureSignature
โ”‚   โ”œโ”€โ”€ assertions.py     # AssertionInfo, AssertionFailure
โ”‚   โ”œโ”€โ”€ coverage.py       # CoverageSummary, CoverageMetric
โ”‚   โ”œโ”€โ”€ regressions.py    # RegressionSummary, RunDiff
โ”‚   โ””โ”€โ”€ versioning.py     # Schema version management
โ”œโ”€โ”€ tools/                 # MCP tools (discovery + detail)
โ”‚   โ”œโ”€โ”€ runs.py           # runs.list, runs.diff
โ”‚   โ”œโ”€โ”€ tests.py          # tests.list, tests.get, tests.topology
โ”‚   โ”œโ”€โ”€ failures.py       # failures.list
โ”‚   โ”œโ”€โ”€ assertions.py     # assertions.list/get/failures
โ”‚   โ”œโ”€โ”€ coverage.py       # coverage.list/summary
โ”‚   โ”œโ”€โ”€ regressions.py    # regressions.summary
โ”‚   โ””โ”€โ”€ wave.py           # wave.summary, wave.signals
โ”œโ”€โ”€ indexing/              # Artifact indexing and querying
โ”‚   โ”œโ”€โ”€ indexer.py        # Build normalized index from artifacts
โ”‚   โ”œโ”€โ”€ store.py          # DuckDB storage interface
โ”‚   โ””โ”€โ”€ query.py          # Filter/sort/pagination
โ”œโ”€โ”€ adapters/              # Parse verification artifacts
โ”‚   โ”œโ”€โ”€ uvm_log.py        # UVM log parsing
โ”‚   โ”œโ”€โ”€ cocotb.py         # cocotb result parsing
โ”‚   โ”œโ”€โ”€ assertion_reports.py # Assertion report/log parsing
โ”‚   โ”œโ”€โ”€ coverage_reports.py  # Coverage summary parsing
โ”‚   โ”œโ”€โ”€ protocol_tags.py     # Protocol taxonomy hints (AXI/APB/AHB/...)
โ”‚   โ”œโ”€โ”€ waveform_summary.py  # Precomputed *.wave.json
โ”‚   โ””โ”€โ”€ vcd_summary.py       # VCD โ†’ bounded summary (Verilator, etc.)
โ”œโ”€โ”€ normalization/         # Security and determinism
โ”‚   โ”œโ”€โ”€ signatures.py     # Stable failure signature hashing
โ”‚   โ”œโ”€โ”€ taxonomy.py       # Failure categorization
โ”‚   โ””โ”€โ”€ redaction.py      # Automatic secret/PII redaction
โ””โ”€โ”€ utils/                 # Common utilities
    โ”œโ”€โ”€ hashing.py
    โ”œโ”€โ”€ time.py
    โ””โ”€โ”€ bounded_text.py

Design Principles:

  • Read-only by default - No simulator control, no artifact modification
  • Schema-first - Every response conforms to typed contracts
  • Deterministic - Same input โ†’ same output (no LLM-generated fields)
  • Evidence-based - All facts traceable to source artifacts
  • Bounded and safe - Automatic redaction, size limits, path sandboxing

โœจ Features

๐Ÿ”’ Security First

  • Read-only by design - No simulation triggers or artifact writes
  • Automatic redaction - Credentials, tokens, emails, IP addresses, paths
  • Path sandboxing - Only configured artifact roots accessible
  • Bounded outputs - Max response sizes, max evidence excerpts
  • Provenance tracking - Every fact includes optional source references

๐Ÿ“Š Rich Verification Data

  • Test results - Status, duration, seed, simulator info, DUT config
  • UVM topology - Env/agent/driver/monitor/scoreboard hierarchy
  • Failure analysis - Categorized events (assertion/scoreboard/protocol/timeout)
  • Assertion intelligence - SVA definitions, runtime failures, intent mapping
  • Coverage metrics - Functional/code/assertion/toggle/FSM coverage
  • Regression analytics - Pass rates, failure signatures, run diffs
  • Interface bindings - Protocol mapping (AXI/AHB/APB/PCIe/USB)

โšก Performance & Scale

  • Efficient indexing - DuckDB for fast filtering and aggregation
  • Smart pagination - Bounded result sets with stable sorting
  • Normalized storage - Deduplicated, hashed artifacts
  • Selective projection - Request only needed fields

๐Ÿ”Œ Simulator Agnostic

  • Works with any simulator (Synopsys VCS, Cadence Xcelium, Mentor Questa, Verilator)
  • Adapter pattern - Ingest tool-specific formats, output unified schemas
  • Pre-computed summaries - No runtime dependency on EDA tools

๐Ÿ“‹ Schema-Driven Contracts

  • Versioned schemas - SemVer with compatibility guarantees
  • JSON Schema validation - Deterministic, testable
  • Stable tool APIs - Backwards-compatible evolution
  • Self-documenting - Schemas define the interface

๐Ÿš€ Quick Start

PyPI: Use sentinel-dv>=1.3.0 for commercial simulator fixtures (VCS, Questa, Cadence), multi-project demos, assertion/coverage intelligence, waveform indexing, and all 15 MCP tools.

Install from MCP Registry

Install via uv (uvx) or your MCP clientโ€™s registry UI using server name io.github.kiranreddi/sentinel-dv.

Claude Desktop / MCP client (stdio):

{
  "mcpServers": {
    "sentinel-dv": {
      "command": "uvx",
      "args": [
        "--from",
        "sentinel-dv@1.3.0",
        "sentinel-dv-server",
        "--config",
        "/absolute/path/to/config.yaml"
      ]
    }
  }
}

Alternatively set SENTINEL_DV_CONFIG to your config path and omit --config.

Before querying: build the artifact index (required once per config):

uvx --from sentinel-dv@1.3.0 sentinel-dv-index --config /absolute/path/to/config.yaml --index-all

Installation

# Clone the repository
git clone https://github.com/kiranreddi/sentinel-dv.git
cd sentinel-dv

# Install with development dependencies
pip install -e ".[dev]"

# Or production install (requires >=1.3.0 for commercial simulator fixtures and multi-project demos)
pip install "sentinel-dv>=1.3.0"

Configuration

Create a config.yaml:

# Artifact roots (read-only)
artifact_roots:
  - /path/to/verification/regressions
  - /path/to/uvm/logs

# Index storage
index:
  type: duckdb
  path: ./sentinel_dv.db

# Adapters (enable/disable)
adapters:
  uvm: true
  cocotb: true
  assertions: true
  coverage: true
  waveform_summary: true   # *.wave.json and *.vcd under artifact_roots

# Security & limits
security:
  max_response_bytes: 2097152  # 2MB
  max_page_size: 200
  max_evidence_refs: 10
  max_excerpt_length: 1024

# Redaction
redaction:
  enabled: true
  patterns:
    - AKIA.*           # AWS keys
    - ghp_.*           # GitHub tokens
    - Bearer\s+\S+     # Bearer tokens
  redact_emails: true
  redact_paths: true

Running the Server

# Start the MCP server
python -m sentinel_dv.server --config config.yaml

# Index artifacts (one-time or scheduled)
python -m sentinel_dv.indexing.indexer --config config.yaml --index-all

# Run with Claude Desktop
# Add to Claude config:
{
  "mcpServers": {
    "sentinel-dv": {
      "command": "python",
      "args": ["-m", "sentinel_dv.server", "--config", "/path/to/config.yaml"]
    }
  }
}

Example Queries

With Claude or any MCP client:

"Why did test axi_burst_test fail in the latest regression?"
โ†’ Uses: tests.list, failures.list, tests.topology

"What assertions failed in the AXI agent?"
โ†’ Uses: assertions.failures, assertions.get

"Compare coverage between runs R123 and R124"
โ†’ Uses: runs.diff, coverage.summary

"Show me the failure signatures from the past week"
โ†’ Uses: regressions.summary

๐Ÿ“– Documentation

Core Concepts

Examples

Guides

Reference


๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Code of Conduct
  • Development setup
  • Testing guidelines
  • Pull request process

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run with coverage
pytest --cov=sentinel_dv --cov-report=html

# Lint and format
ruff check .
black .
mypy sentinel_dv/

๐Ÿ“Š Project Status

  • โœ… Core schemas - Stable v1.0
  • โœ… MCP tools - 15 tools across 5 categories
  • โœ… Adapters - UVM, cocotb, assertions, coverage
  • โœ… Indexing - DuckDB with efficient querying
  • โœ… Security - Redaction, sandboxing, bounding
  • โœ… Test coverage - 70%+ with unit and integration tests
  • โœ… Documentation - Full guides and API reference
  • โœ… Waveform summaries - *.wave.json + *.vcd (VcdSummaryParser); Verilator demo
  • โœ… Simulator examples - VCS, Questa, and Cadence exported artifact fixtures with all-tool verification
  • ๐Ÿšง Plugin ecosystem - Coming soon

๐ŸŽฏ Positioning

What Sentinel DV is

  • A read-only MCP server for verification ecosystems
  • A schema-first context provider for agents and LLMs
  • A deterministic translation layer from noisy artifacts to typed data
  • A composable infrastructure component for debug workflows

What Sentinel DV is not

  • โŒ It does not start simulations or submit jobs
  • โŒ It does not modify RTL/testbench code
  • โŒ It does not require any specific simulator
  • โŒ It is not an "AI that guesses"; it returns grounded, typed facts

๐Ÿ™ Acknowledgments

Inspired by:

  • Sentinel CI - Universal CI/CD intelligence
  • Model Context Protocol - Anthropic's agent-context standard
  • The verification community using UVM, cocotb, and SystemVerilog

๐Ÿ“„ License

Apache License 2.0 - see LICENSE for details.


๐Ÿ”— Links


Built with โค๏ธ for the verification community

โฌ† back to top

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentinel_dv-1.3.0.tar.gz (74.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentinel_dv-1.3.0-py3-none-any.whl (85.1 kB view details)

Uploaded Python 3

File details

Details for the file sentinel_dv-1.3.0.tar.gz.

File metadata

  • Download URL: sentinel_dv-1.3.0.tar.gz
  • Upload date:
  • Size: 74.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for sentinel_dv-1.3.0.tar.gz
Algorithm Hash digest
SHA256 fbc01a387d70131e93f5d8eb9fcc0d41680b8aace0f44662fb50327be4434f4a
MD5 6b2362ef4f5e537a40df79580a39b9f7
BLAKE2b-256 5a282da359fc29e5c02414bf530a573ae2431cc5d6cae20ce5cda1aafbaff4a2

See more details on using hashes here.

File details

Details for the file sentinel_dv-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: sentinel_dv-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 85.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for sentinel_dv-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 faa2c977df8cf768d4193a038bc9a9a2aa6b476be2823378bdb51fef514d9fe6
MD5 ca0f47d7089ee20f1150167658178077
BLAKE2b-256 aa427470f0ff3bb06dac84213c728392f0219c3d6ac0db749f1019d6263f313e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page