Security-first MCP server for verification intelligence (SystemVerilog/UVM/cocotb)
Project description
๐ก๏ธ Sentinel DV v1.0.0 - Verification Intelligence for AI Agents
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
- Architecture Overview - Design principles and structure
- Schema Reference - Complete type definitions
- Tool Contracts - Request/response specifications
- Security Model - Redaction, bounding, sandboxing
Guides
- Getting Started - Setup and first queries
- Adapter Development - Parse new artifact formats
- Simulator Support - Vendor-specific notes
- Deployment Guide - Production best practices
Reference
- API Documentation
- Configuration Reference
- Examples - Demo artifacts and clients
๐ค 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
- ๐ Documentation
- ๐ฌ Discussions
- ๐ Issue Tracker
- ๐ฃ Changelog
Built with โค๏ธ for the verification community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa1278fb007daf0668766dcde40256e3ab3ee5683e69b9dd22273d64e364107
|
|
| MD5 |
2cfc9e489868cbaf1fd47f2e9c126775
|
|
| BLAKE2b-256 |
56aa43fa45c63c371a1d6f6473c7e5c1b23c3ea0d8d88ec407c11ef64e3f0c93
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
866f830148044bc19b37bd49d5592b985fb3119c776fc299b1a2f1d9ed6efcbe
|
|
| MD5 |
4d6f79854c4d0cc746856ab07452897a
|
|
| BLAKE2b-256 |
da16cbd331adbde1d207da424371e85550ed57f75a49770ea6e221eb788dd84f
|