- Add get_vlans tool to filter interfaces by type=vlan - Add get_gateway_interfaces tool to identify gateway interfaces from routes - Add fallback to billing-mcp/config.json when router not in devices.json - Update .gitignore to exclude venv, pycache, snapshots
65 lines
1.2 KiB
YAML
65 lines
1.2 KiB
YAML
# Konfigurasi MikroTik Gemini Integration
|
|
|
|
# Gemini AI Settings
|
|
gemini:
|
|
model: "gemini-1.5-flash-latest"
|
|
temperature: 0.1
|
|
max_output_tokens: 2048
|
|
safety_settings: "BLOCK_NONE"
|
|
|
|
# MikroTik Settings
|
|
mikrotik:
|
|
data_file: "data/mikrotik_mcp_data.json"
|
|
update_interval: 300 # seconds (5 minutes)
|
|
|
|
# REST API settings (for data updates)
|
|
api:
|
|
host: "192.168.1.1"
|
|
port: 80
|
|
timeout: 10
|
|
|
|
# Context Optimization
|
|
context:
|
|
max_tokens: 8000
|
|
max_interfaces_sample: 20
|
|
max_ppp_secrets_sample: 10
|
|
max_routes_sample: 10
|
|
|
|
# Monitoring
|
|
monitoring:
|
|
interval: 60 # seconds
|
|
alert_thresholds:
|
|
cpu: 80 # percentage
|
|
memory: 90 # percentage
|
|
interfaces_down: 10 # count
|
|
|
|
# API Server
|
|
api_server:
|
|
host: "0.0.0.0"
|
|
port: 8000
|
|
debug: false
|
|
cors_origins:
|
|
- "http://localhost:3000"
|
|
- "http://localhost:8000"
|
|
|
|
# Logging
|
|
logging:
|
|
level: "INFO"
|
|
file: "logs/app.log"
|
|
max_size: 10485760 # 10MB
|
|
backup_count: 5
|
|
|
|
# Features
|
|
features:
|
|
enable_realtime_monitoring: true
|
|
enable_context_optimization: true
|
|
enable_auto_update: false
|
|
enable_alerts: true
|
|
|
|
# Security
|
|
security:
|
|
require_api_key: true
|
|
allowed_ips:
|
|
- "127.0.0.1"
|
|
- "192.168.1.0/24"
|