Crates.io | kindly-tools |
lib.rs | kindly-tools |
version | 0.11.14 |
created_at | 2025-07-06 20:05:59.555559+00 |
updated_at | 2025-07-06 20:05:59.555559+00 |
description | Development tools and utilities for KindlyGuard ecosystem |
homepage | https://github.com/kindly-software-inc/kindly-guard |
repository | https://github.com/samduchaine/kindly-guard |
max_upload_size | |
id | 1740410 |
size | 287,097 |
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.
# From source
cargo install --path .
# Or via cargo (when published)
cargo install kindly-tools
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
kindly shield auto-wrap -o ~/.kindly-shield.sh
# Add to your shell config
echo "source ~/.kindly-shield.sh" >> ~/.bashrc
# Now AI commands are automatically protected
claude "Help me write a script" # Scanned for threats before execution
scan
- Security ScanningScan files or directories for security threats using the KindlyGuard scanner.
# Scan a single file
kindly scan suspicious.json
# Scan directory recursively
kindly scan ./src --recursive
# Output as JSON
kindly scan data.txt --format json
# Scan specific file types
kindly scan . --recursive --extensions json,txt,md
install
- Component InstallationInstall KindlyGuard components and dependencies with automatic platform detection.
# Install everything (recommended)
kindly install all
# Install specific components
kindly install kindlyguard # Core KindlyGuard
kindly install mcp-servers # Recommended MCP servers
kindly install dev-deps # Development dependencies
# Platform-specific installation
kindly install --platform linux-gnu
mcp
- MCP Server ManagementManage Model Context Protocol servers and configuration.
# List MCP servers
kindly mcp list
# Check server status
kindly mcp status
# Restart a server
kindly mcp restart kindlyguard
# Validate configuration
kindly mcp validate
wrap
- Command WrappingWrap any command with KindlyGuard protection.
# Wrap a command execution
kindly wrap -- curl -X POST https://api.example.com -d "data"
# Block on threat detection
kindly wrap --block -- python script.py "user input"
# Use custom server
kindly wrap --server http://localhost:8080 -- node app.js
monitor
- Server MonitoringMonitor KindlyGuard server status in real-time.
# Monitor default server
kindly monitor
# Monitor specific server
kindly monitor --url http://localhost:8080
# Custom update interval
kindly monitor --interval 10
dev
- Development ToolsDevelopment utilities for working with KindlyGuard.
# Generate shell completions
kindly dev completions bash > /etc/bash_completion.d/kindly
# Check project setup
kindly dev check
# Run benchmarks
kindly dev bench
KindlyTools uses TOML configuration files:
~/.kindlyguard/tools.toml
[general]
default_server = "http://localhost:8080"
color_output = true
[scan]
default_format = "table"
max_file_size_mb = 10
[shield]
default_shell = "bash"
auto_wrap_commands = ["claude", "openai", "gemini"]
.kindlyguard.toml
in project root
[project]
name = "my-project"
scan_extensions = ["js", "ts", "json"]
exclude_patterns = ["node_modules", "dist"]
KINDLY_SERVER_URL
- Default KindlyGuard server URLKINDLY_CONFIG_DIR
- Configuration directory (default: ~/.kindlyguard
)KINDLY_SHIELD_DISABLED
- Disable shield protection temporarilyNO_COLOR
- Disable colored output# GitHub Actions
- name: Security Scan
run: |
cargo install kindly-tools
kindly scan . --recursive --format json > scan-results.json
FROM rust:latest
RUN cargo install kindly-tools
RUN kindly shield auto-wrap -o /etc/profile.d/kindly-shield.sh
# Add to ~/.bashrc or ~/.zshrc
if command -v kindly &> /dev/null; then
source <(kindly dev completions bash)
source ~/.kindly-shield.sh
fi
Ensure ~/.cargo/bin
is in your PATH:
export PATH="$HOME/.cargo/bin:$PATH"
# Validate MCP configuration
kindly mcp validate
# Check server logs
kindly mcp logs kindlyguard
# Run diagnostics
kindly dev diagnose
# Check system resources
kindly monitor --verbose
See CONTRIBUTING.md for development setup and guidelines.
Apache-2.0 - See LICENSE for details.