Skip to main content

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

Project description

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

Python 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 - Pre-computed signal analysis (no raw FSDB/VCD 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
โ”‚   โ”œโ”€โ”€ assertions.py     # Assertion map/failure parsing
โ”‚   โ”œโ”€โ”€ coverage.py       # Coverage export parsing
โ”‚   โ””โ”€โ”€ waveform_summary.py  # Waveform summary parsing
โ”œโ”€โ”€ 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

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",
        "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 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
pip install sentinel-dv

Configuration

Create a config.yaml:

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

# Index storage
index:
  type: duckdb  # or sqlite, json
  path: ./sentinel_dv.db

# Adapters (enable/disable)
adapters:
  uvm: true
  cocotb: true
  assertions: true
  coverage: true
  waveform_summary: false

# 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

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 - Experimental
  • ๐Ÿšง 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.0.1.tar.gz (55.0 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.0.1-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sentinel_dv-1.0.1.tar.gz
  • Upload date:
  • Size: 55.0 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.0.1.tar.gz
Algorithm Hash digest
SHA256 7fa1278fb007daf0668766dcde40256e3ab3ee5683e69b9dd22273d64e364107
MD5 2cfc9e489868cbaf1fd47f2e9c126775
BLAKE2b-256 56aa43fa45c63c371a1d6f6473c7e5c1b23c3ea0d8d88ec407c11ef64e3f0c93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentinel_dv-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 61.7 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 866f830148044bc19b37bd49d5592b985fb3119c776fc299b1a2f1d9ed6efcbe
MD5 4d6f79854c4d0cc746856ab07452897a
BLAKE2b-256 da16cbd331adbde1d207da424371e85550ed57f75a49770ea6e221eb788dd84f

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