KindlyTools 🛠️
Development tools and utilities for the KindlyGuard ecosystem
KindlyTools provides a comprehensive set of command-line utilities for working with KindlyGuard, including installation management, MCP server configuration, security scanning, and development tools.
Installation
# From source
# Or via cargo (when published)
Commands
🛡️ shield - AI CLI Protection (NEW!)
Automatically wrap AI CLI commands with security scanning to protect against prompt injection and other threats.
# Generate shell wrappers for AI commands
# Add to your shell config
# Now AI commands are automatically protected
📊 scan - Security Scanning
Scan files or directories for security threats using the KindlyGuard scanner.
# Scan a single file
# Scan directory recursively
# Output as JSON
# Scan specific file types
🎁 install - Component Installation
Install KindlyGuard components and dependencies with automatic platform detection.
# Install everything (recommended)
# Install specific components
# Platform-specific installation
🔌 mcp - MCP Server Management
Manage Model Context Protocol servers and configuration.
# List MCP servers
# Check server status
# Restart a server
# Validate configuration
🚀 wrap - Command Wrapping
Wrap any command with KindlyGuard protection.
# Wrap a command execution
# Block on threat detection
# Use custom server
📈 monitor - Server Monitoring
Monitor KindlyGuard server status in real-time.
# Monitor default server
# Monitor specific server
# Custom update interval
🔧 dev - Development Tools
Development utilities for working with KindlyGuard.
# Generate shell completions
# Check project setup
# Run benchmarks
Configuration
KindlyTools uses TOML configuration files:
Global Config
~/.kindlyguard/tools.toml
[]
= "http://localhost:8080"
= true
[]
= "table"
= 10
[]
= "bash"
= ["claude", "openai", "gemini"]
Project Config
.kindlyguard.toml in project root
[]
= "my-project"
= ["js", "ts", "json"]
= ["node_modules", "dist"]
Environment Variables
KINDLY_SERVER_URL- Default KindlyGuard server URLKINDLY_CONFIG_DIR- Configuration directory (default:~/.kindlyguard)KINDLY_SHIELD_DISABLED- Disable shield protection temporarilyNO_COLOR- Disable colored output
Examples
CI/CD Integration
# GitHub Actions
- name: Security Scan
run: |
cargo install kindly-tools
kindly scan . --recursive --format json > scan-results.json
Docker Usage
FROM rust:latest
RUN cargo install kindly-tools
RUN kindly shield auto-wrap -o /etc/profile.d/kindly-shield.sh
Shell Integration
# Add to ~/.bashrc or ~/.zshrc
if ; then
fi
Troubleshooting
"Command not found"
Ensure ~/.cargo/bin is in your PATH:
MCP Connection Issues
# Validate MCP configuration
# Check server logs
Performance Issues
# Run diagnostics
# Check system resources
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Apache-2.0 - See LICENSE for details.