Perform security compliance checks on MCP/LLM application configurations.
When the user invokes this skill, run security checks on their configuration.
bash
cd {baseDir}/../../ && uv run python main.py check --config "<config_path>" --format json
config_path: Path to the configuration file to check (JSON/YAML/TOML)
If no path provided, use --auto to auto-discover config:
bash
cd {baseDir}/../../ && uv run python main.py check --auto --format json
Determine config path:
--autoRun the check: bash
cd {baseDir}/../../ && uv run python main.py check --config "<path>" --format json
Parse JSON output: The output has this structure: json
{
"summary": {
"overall_status": "安全|注意|高危",
"total": 10,
"passed": 7,
"failed": 3,
"by_level": {"safe": 7, "attention": 2, "high_risk": 1}
},
"failed_results": [
{
"name": "检查项名称",
"category": "安全类别",
"level": "高危|注意",
"message": "问题描述",
"risk_description": "风险说明",
"remediation": "整改建议",
"fix_commands": ["command to fix"]
}
]
}
Report findings:
0: All checks passed (safe)1: Attention items found2: High-risk items foundUse {baseDir}/example-config.json as a reference template for users who need a starting point.
CategoryDescription配置与密钥Secrets in config, hardcoded credentials权限File permissions, access controls网络暴露Network bindings, CORS, exposed ports插件安全MCP server security, plugin sources日志与审计Logging configuration, audit trails版本信息Version exposure, update statusOpenClaw安全OpenClaw-specific deployment security
User: "/safeclaw check my config at ./config/mcp.json"
Response:
cd {baseDir}/../../ && uv run python main.py check --config "./config/mcp.json" --format json--format json for machine-readable output{baseDir}/../../ to reach project root{baseDir}/templates/minimal-config.json