Crates.io | kindly-guard-server |
lib.rs | kindly-guard-server |
version | 0.11.14 |
created_at | 2025-07-04 12:09:33.970262+00 |
updated_at | 2025-07-06 20:04:57.373957+00 |
description | KindlyGuard MCP server - Enterprise-grade security for AI model interactions |
homepage | https://github.com/kindly-software-inc/kindly-guard |
repository | https://github.com/samduchaine/kindly-guard |
max_upload_size | |
id | 1737929 |
size | 8,056,223 |
A production-ready, security-focused MCP (Model Context Protocol) server that provides enterprise-grade protection for AI model interactions against Unicode attacks, injection attempts, and other security threats.
Version 0.9.5 - Ready for Production Deployment
🛡️ Comprehensive Threat Detection
🔐 Enterprise Security
⚡ High Performance
🎯 MCP Protocol Compliance
cargo install kindly-guard-server
git clone https://github.com/kindlyguard/kindly-guard
cd kindly-guard
cargo build --release
# kindly-guard.yaml
scanner:
unicode_detection: true
injection_detection: true
auth:
enabled: true
allowed_clients:
- client_id: "my-app"
secret: "change-me"
allowed_scopes: ["tools:execute"]
kindly-guard --stdio
kindly-guard --stdio
kindly-guard --config /path/to/config.yaml --stdio
# Install service
sudo ./systemd/install.sh
# Start service
sudo systemctl start kindly-guard
See CONFIGURATION.md for detailed configuration options.
scanner:
unicode_detection: true
injection_detection: true
auth:
enabled: false # Only for testing!
scanner:
unicode_detection: true
injection_detection: true
max_scan_depth: 10
auth:
enabled: true
require_resource_indicators: true
allowed_clients:
- client_id: "production-app"
secret: "$2b$10$..." # bcrypt hash
allowed_scopes: ["tools:execute", "resources:read"]
rate_limit:
enabled: true
default_rpm: 60
threat_penalty_multiplier: 2.0
signing:
enabled: true
private_key_path: "/etc/kindly-guard/keys/private.pem"
Scan text for security threats:
{
"name": "scan_text",
"arguments": {
"text": "Check this content",
"context": "user_input"
}
}
Verify message signatures:
{
"name": "verify_signature",
"arguments": {
"message": "Important data",
"signature": "base64-signature"
}
}
Get security information:
{
"name": "get_security_info",
"arguments": {
"topic": "unicode"
}
}
See API.md for complete API documentation.
cargo build --release
KindlyGuard implements a comprehensive testing strategy with 100% security coverage:
# Run all tests (235+ tests)
cargo test --all-features
# Run security-specific tests (58 tests, 100% passing)
cargo test --test security_tests
# Run cross-platform tests
cargo test --test cross_platform_security
# Run performance benchmarks
cargo bench
# Run with coverage report
cargo tarpaulin --out Html
# Run complete test suite
./run-all-tests.sh
# Run all benchmarks
cargo bench
# Run comparative benchmarks (Standard vs Enhanced)
cargo bench --bench comparative_benchmarks
# Save baseline for comparison
cargo bench -- --save-baseline main
# Compare against baseline
cargo bench -- --baseline main
# Run complete test suite
./run-all-tests.sh
# Run with CI configuration
./run-all-tests.sh --ci
# Run with coverage
./run-all-tests.sh --coverage
Our testing infrastructure ensures:
Licensed under either of:
at your option.
Contributions are welcome! Please read our Contributing Guide for details.
For security issues, please email security@kindlyguard.dev instead of using the issue tracker.