add_device
Registers a FortiGate device with the MCP server by storing its host, port, credentials or API token, VDOM, SSL verification, and timeout settings for later management.
Instructions
Add a new FortiGate device to the MCP server.
This tool registers a new FortiGate device with the server, configuring connection parameters and authentication credentials.
Parameters:
device_id: Unique identifier for the new device
host: IP address or hostname of the FortiGate device
port: HTTPS port (default: 443)
username: Username for authentication (if not using API token)
password: Password for authentication (if not using API token)
api_token: API token for authentication (preferred method)
vdom: Virtual Domain name (default: "root")
verify_ssl: Whether to verify SSL certificates (default: false)
timeout: Connection timeout in seconds (default: 30)
Returns:
Registration status
Device configuration summary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | FortiGate IP address or hostname | |
| port | No | HTTPS port | |
| vdom | No | Virtual Domain | root |
| timeout | No | Timeout in seconds | |
| password | No | Password | |
| username | No | Username | |
| api_token | No | API token | |
| device_id | Yes | Unique device identifier | |
| verify_ssl | No | Verify SSL |