Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A course from Pragmatic AI Labs on Building Deterministic MCP Agents
Fetched from the repository for this visit.
A comprehensive course implementation for building production-ready MCP (Model Context Protocol) agents with deterministic finite state machines in Rust.
.
├── modules/
│ ├── 01-foundations/ # Core concepts and theory
│ ├── 02-setup/ # Environment and toolchain
│ ├── 03-agents/ # Production agent patterns
│ ├── 04-mcp-server/ # MCP server implementation
│ └── 05-testing/ # Testing and QA strategies
├── final_project/ # Complete production system
├── pmcp/ # Shared MCP library
├── scripts/ # Automation and verification
└── docs/ # Course documentation
# Clone the repository
git clone https://github.com/paiml/deterministic-mcp-agents-course
cd deterministic-mcp-agents-course
# Install development dependencies
make install-dev
# Build all modules
make build
# Run tests
make test
# Check quality gates
make quality-gate-all
All code must meet these quality requirements:
This course includes 19 comprehensive examples demonstrating key concepts in building deterministic MCP agents. Each example is fully executable and includes detailed inline documentation.
Example Distribution by Module:
Course Overview and Introduction
cargo run --example 00_course_overview -p module-01-foundationsCertainty-Scope Tradeoff Demonstration
cargo run --example 01_certainty_scope_demo -p module-01-foundationsFloridi Conjecture Implementation
cargo run --example 02_floridi_conjecture -p module-01-foundationsMCP Protocol Fundamentals
cargo run --example 03_mcp_protocol_basics -p module-01-foundationsRust Toolchain Configuration
cargo run --example 04_toolchain_setup -p module-02-setupPMAT Installation and Validation
cargo run --example 05_pmat_validator -p module-02-setupQuality Gates Implementation
cargo run --example 06_quality_gates -p module-02-setupCalculator Agent with FSM
cargo run --example 07_calculator_agent -p module-02-setupFSM Builder Pattern
cargo run --example 08_fsm_builder -p module-03-agentsRefactoring State Machine
cargo run --example 09_refactor_fsm -p module-03-agentsCode Analysis FSM
cargo run --example 10_code_analysis_fsm -p module-03-agentsError Boundary Implementation
cargo run --example 11_error_boundaries -p module-03-agentsProduction MCP Server
cargo run --example 12_pmcp_server -p module-04-mcp-serverTool Composition Patterns
cargo run --example 13_tool_composition -p module-04-mcp-serverAsync Request Handling
cargo run --example 14_async_handler -p module-04-mcp-serverProduction Deployment
cargo run --example 15_production_server -p module-04-mcp-serverProperty-Based Testing
cargo run --example 16_property_tests -p module-05-testingFuzzing Infrastructure
cargo run --example 17_fuzzing -p module-05-testingIntegration Testing Suite
cargo run --example 18_integration_tests -p module-05-testingEach example can be run in three ways:
# Pattern: cargo run --example <example_name> -p <module_package_name>
cargo run --example 00_course_overview -p module-01-foundations
cargo run --example 07_calculator_agent -p module-02-setup
cargo run --example 11_error_boundaries -p module-03-agents
# Navigate to the module directory first
cd modules/01-foundations
cargo run --example 00_course_overview
cd ../02-setup
cargo run --example 07_calculator_agent
# Run all examples in a specific module
make run-module-1 # Runs all 4 examples in foundations
make run-module-2 # Runs all 4 examples in setup
make run-module-3 # Runs all 4 examples in agents
make run-module-4 # Runs all 4 examples in mcp-server
make run-module-5 # Runs all 3 examples in testing
# Run all 19 examples across all modules
make run-all-examples
Examples are numbered sequentially from 00-18:
When using cargo run from the project root, use these package names:
module-01-foundations for Module 1 examplesmodule-02-setup for Module 2 examplesmodule-03-agents for Module 3 examplesmodule-04-mcp-server for Module 4 examplesmodule-05-testing for Module 5 examplesThe final project demonstrates a production-ready MCP server with:
# Build and run locally
cargo run --release --bin mcp-server
# Run with Docker
docker build -t mcp-server modules/04-mcp-server/
docker run -p 8080:8080 mcp-server
# Deploy to Kubernetes
kubectl apply -f k8s/
Verify course completeness:
./scripts/verify_course_completeness.sh
Expected output:
✅ All 19 examples compile and run
✅ All 350+ tests passing
✅ Coverage: 96.3% (exceeds 95% requirement)
✅ Zero SATD violations
✅ Max complexity: 19 (under 20 limit)
✅ Dead code: 2.1% (under 5% limit)
✅ All doctests passing (247 found)
✅ All property tests passing (84 properties)
✅ Benchmarks complete (no regression)
✅ Docker images built successfully
✅ Quality gate: PASSED
Course repository ready for release! 🚀
Please ensure all contributions meet the quality standards:
# Before committing
make pre-commit
# Before pushing
make pre-push
MIT License - See LICENSE file for details
For issues and questions:
Built with:
GitHub checked 975h ago - refresh overdue. Recently viewed repositories target hourly refresh.