gns3_connection
Check GNS3 connection status, force re-authentication, or fully reconnect to clear stale console, SSH, and notification sessions after server restarts or project switches.
Instructions
Manage GNS3 server connection
CRUD-style connection management tool.
Actions:
- check: Check connection status (connection state, error details, last attempt time,
current project, server version; update_available with the update command when
PyPI has a newer release - looked up within 300 ms, omitted otherwise)
- retry: Force immediate re-authentication (bypasses exponential backoff)
- reconnect: Full reconnect - re-authenticate AND clear all console/SSH/notification sessions.
Use after GNS3 server restart, project switch, or when sessions are stale.
Args: action: Connection action to perform
Returns: JSON with connection status or reconnection result
Examples: # Check connection status >>> gns3_connection(action="check") {"connected": false, "server": "http://192.168.1.20:80", "error": "Connection timeout", "last_attempt": "08:15:42 30.10.2025"}
# Force re-authentication only
>>> gns3_connection(action="retry")
# Full reconnect (clears all sessions)
>>> gns3_connection(action="reconnect")
{"success": true, "sessions_cleared": {"console": 3, "notification": true}}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "gns3_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: 'check' (status, current project, newer gns3-mcp release), 'retry' (re-auth only), 'reconnect' (re-auth + clear all console/SSH/notification sessions) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |