ssh_get_audit_logs
Retrieve and filter SSH audit logs for AI analysis, aggregated by host, tool, or time window.
Instructions
查询最近的行为日志(只读,供 AI 分析)。
读取 ~/.ssh/mcp-ssh.log(或 SSH_LOG_FILE),按事件聚合为统一行为视图, 返回每条含 timestamp/host/username/tool/args/status/duration_ms。 支持按 host / tool / since_minutes 过滤;输出受 limit 与大小上限约束。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| tool | No | ||
| limit | No | ||
| since_minutes | No |