docs.rs failed to build pdmt-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
PDMT - Pragmatic Deterministic MCP Templating
A high-performance, deterministic templating library for Model Context Protocol (MCP) applications, designed for generating consistent, validated todo lists and structured content with quality enforcement.
๐ Features
- ๐ฏ Deterministic Generation: 0.0 temperature templating ensures reproducible outputs
- ๐ Todo Validation: Comprehensive validation with actionability checks, complexity scoring, and time estimates
- ๐ MCP Integration: Native support for Model Context Protocol via PMCP SDK
- ๐ก๏ธ Quality Gates: PMAT (Paiml MCP Agent Toolkit) integration for quality enforcement
- ๐งช Extensive Testing: 81%+ test coverage with property testing, fuzz testing, and edge case coverage
- โก High Performance: Optimized Handlebars engine with caching and validation
- ๐ฆ Multiple Formats: Support for YAML, JSON, Markdown, and plain text output
- ๐ Dependency Analysis: Circular dependency detection and critical path calculation
๐ Quick Start
Add PDMT to your Cargo.toml:
[]
= "1.0.0"
# Optional features
= { = "1.0.0", = ["quality-proxy", "mcp-tools", "todo-validation"] }
Basic Usage
use ;
async
Advanced Features
Todo Validation
use ;
let validator = new;
let mut todo_list = new;
// Add todos...
todo_list.add_todo;
let validation_result = validator.validate_todo_list;
if validation_result.is_valid else
๐๏ธ Architecture
PDMT is built with a modular architecture:
- Template Engine: Handlebars-based deterministic generation
- Content Models: Todo lists, generated content, and metadata
- Quality Proxy: PMAT integration for quality enforcement
- MCP Integration: Native Model Context Protocol support
- Validators: Comprehensive validation for todos and content
๐ฏ Feature Flags
[]
= {
version = "1.0.0",
= [
"quality-proxy", # PMAT quality enforcement
"mcp-tools", # MCP/PMCP integration
"todo-validation", # Advanced todo validation
"property-tests", # Property testing support
]
}
๐ Examples
The examples/ directory contains comprehensive examples:
todo_generation.rs- Basic todo list generation
Run examples with:
๐งช Testing & Quality
PDMT maintains high quality standards:
- 81%+ Test Coverage: Comprehensive test suite
- Fuzz Testing: Automated robustness testing
- Property Testing: Invariant verification
- Strict Linting: clippy::pedantic + clippy::nursery
# Run tests with coverage
# Run linting
# Run formatting
๐ค Contributing
We welcome contributions! Areas include:
- ๐ Bug Fixes
- โจ New Features
- ๐ Documentation
- ๐งช Testing
Development Setup
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- Documentation: docs.rs/pdmt
- Issues: GitHub Issues