Примеры MCP
Реальные сценарии использования
Безопасное выполнение команд / Safe command execution
AI хочет перезапустить nginx — FlowLink проверяет и выполняет / AI wants to restart nginx — FlowLink verifies and executes
Request
{
"method": "tools/call",
"params": {
"name": "flowlink_exec",
"arguments": {
"agent_id": "prod-1",
"command": "systemctl restart nginx"
}
}
}Response
{
"stdout": "",
"stderr": "",
"exit_code": 0,
"duration_ms": 340
}Блокировка опасной команды / Blocking dangerous commands
AI пытается удалить логи — FlowLink блокирует / AI tries to delete logs — FlowLink blocks
Request
{
"method": "tools/call",
"params": {
"name": "flowlink_exec",
"arguments": {
"agent_id": "prod-1",
"command": "rm -rf /var/log"
}
}
}Response
{
"error": "BLOCKED: Destructive command detected (rm -rf)",
"risk": "critical",
"shield_level": "L4"
}Чтение конфига / Reading config
AI читает конфигурацию nginx / AI reads nginx configuration
Request
{
"method": "tools/call",
"params": {
"name": "flowlink_read",
"arguments": {
"agent_id": "prod-1",
"path": "/etc/nginx/nginx.conf"
}
}
}Response
{
"content": "worker_processes auto;\nevents {...",
"size_bytes": 1024,
"path": "/etc/nginx/nginx.conf"
}Системная информация / System information
AI проверяет состояние сервера / AI checks server status
Request
{
"method": "tools/call",
"params": {
"name": "flowlink_sysinfo",
"arguments": {
"agent_id": "prod-1"
}
}
}Response
{
"hostname": "prod-server-1",
"os": "Ubuntu 22.04",
"cpu_usage": 45.2,
"memory_used_mb": 4096,
"memory_total_mb": 8192,
"disk_used_pct": 62
}Одобрение команды / Command approval
Dashboard одобряет pending запрос / Dashboard approves pending request
Request
{
"method": "tools/call",
"params": {
"name": "flowlink_approve",
"arguments": {
"agent_id": "prod-1",
"request_id": "apr_abc123"
}
}
}Response
{
"status": "approved",
"exec_result": {
"exit_code": 0,
"stdout": "..."
}
}