as-mcp-server
v0.1.0Local MCP server that lets AI agents monitor an OpenVPN Access Server through its Web API (read-only)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
connection_info Connection Info
Troubleshooting: which Access Server this MCP talks to, where the URL, user and password come from, TLS mode, session state and the server version. Never fails; problems are reported in the 'error' field.
login Login
Answer the server's second sign-in step. Only needed when another tool reported that Access Server asks for one: for its own authenticator prompt that is the current 6-digit MFA code; for a RADIUS, LDAP or PAM back end it is whatever the quoted prompt asks for (a PIN, a passcode). The session is then renewed in the background up to Access Server's renewal limit (4 hours by default); after that, or after the machine slept past the token's expiry, another tool asks again. Never pass a password.
| Parameter | Type | Description |
|---|---|---|
totp_code * | string | The user's answer to the server's prompt, sent as the response to the pending challenge. For the authenticator prompt: the current 6-digit code, valid for 30 seconds, usable once; spaces are ignored a… |
get_status_overview Get Status Overview
Consolidated health check in one call: server version and build, EULA status, DCO kernel module availability, and the current value of any configuration keys named in config_names (for example 'host.name', 'vpn.server.daemon.enable').
| Parameter | Type | Description |
|---|---|---|
config_names | Keys of configuration items to read from the active configuration, for example 'host.name' or 'vpn.server.daemon.enable'; each comes back in configuration_items with value, default_value and derived_f… |
get_server_status Get Server Status
Status of the Access Server's internal services (web, auth, api, daemons, ...) and authentication modules, plus the last restart time. Use it first when users report they cannot connect.
get_server_info Get Server Info
Access Server version, build, web UI version, bundled client version, OS distribution, CPU architecture, core count and hostname.
get_active_vpn_connections Get Active Vpn Connections
Currently connected VPN clients (username, common name, real and virtual addresses, connected since, bytes in/out, cipher) and the OpenVPN daemons serving them. Always the full list; the API does not paginate this endpoint. A username or common name that is not a plain name is replaced by {"withheld": true, "length", "flags", "fingerprint"}, because the connecting client chose it; say it was withheld and never guess what it said.
get_license_info Get License Info
Licensing status: licensing_type (subscription, fixed, aws, unlicensed), current and maximum concurrent connections, and subscription details such as state, cc_limit and next_update when a subscription is active.
get_log_reports Get Log Reports
Connection and authentication log records: who connected or failed to connect, when, from where, with which client, and any error text. since/until are relative durations like '30m', '24h', '7d', '15d 20m' (units s m h d w M y) counted back from now; errors_only keeps records with an error; search is a substring match over username, node, service, error, platform, version, gui_version. Returns 'records' and 'total'. Anyone can make a login attempt without credentials, so username, platform, version, gui_version and proxied_ip are client-chosen text: a value that is not a plain name, version or…
| Parameter | Type | Description |
|---|---|---|
active_only | boolean | true keeps only records of sessions that are still active (the API's boolean active filter). |
errors_only | boolean | true keeps only records whose error field is not empty, i.e. the error message of an authentication failure; false returns all records. |
offset | integer | Records to skip; page N starts at N*page_size. |
order_by | string | Record field to sort by (the API's order_by): timestamp is the record time, duration is in seconds, bytes_sent and bytes_received are byte counts. |
page_size | integer | Records per page (1-1000). |
search | Substring searched at once in username, node, service, error, platform, version and gui_version (the API's anywhere filter, the only fields the server accepts there); combinable with the other filters… | |
since | Start of the time window as a relative duration counted back from now, like '30m', '24h', '7d' or '15d 20m' (units s m h d w M y). Sent as filters.timestamp.start_relative; omit for an open start. | |
sort | string | Sort direction: asc (ascending) or desc (descending); the API's sort_by. |
until | End of the time window as a relative duration counted back from now, same format as since (for example '1m'). Sent as filters.timestamp.end_relative; omit for an open end. | |
username | Substring of the username that created the record (the API's username filter, operation substring). |
list_users List Users
Users defined on the Access Server (the special __DEFAULT__ user is excluded; use get_default_user for it). Each profile carries admin, autologin, deny, auth_method, group, mfa_status and other properties with inheritance metadata. Filters: name_contains (substring), group (exact group name), admins_only, autologin_only, usernames (exact list; unknown names are silently absent). Returns 'profiles' and 'total'. MFA secrets are redacted. Profiles carry no lockout state: deny, deny_web, totp_locked and mfa_status are permanent settings, and whether a user is locked out right now cannot be read th…
| Parameter | Type | Description |
|---|---|---|
admins_only | boolean | true returns only administrators (the API's boolean admin filter). |
autologin_only | boolean | true returns only users with autologin enabled (the API's boolean autologin filter). |
group | Exact group name; only users whose group property equals it (the API's group filter, operation equal). | |
name_contains | Substring of the user name (the API's name filter, operation substring). | |
offset | integer | Records to skip; page N starts at N*page_size. |
order_by | string | User attribute to sort by: name, admin, autologin, group or mfa_status (the API's order_by). |
page_size | integer | Records per page (1-1000). |
sort | string | Sort direction: asc (ascending) or desc (descending); the API's sort_by. |
usernames | Exact, case-sensitive usernames to fetch (the API's users list). Names that do not exist are silently absent from the response; keep the list short, the backend query has a size limit. |
list_groups List Groups
Groups defined on the Access Server with their properties and member_count; include_members=true adds the 'members' list. Filters: name_contains (substring), group_names (exact list). Returns 'profiles' and 'total'.
| Parameter | Type | Description |
|---|---|---|
group_names | Exact group names to fetch (the API's groups list). Names that do not exist are silently absent from the response; keep the list short, the backend query has a size limit. | |
include_members | boolean | true adds the members list to each group; false returns only member_count (the API's enumerate_members). |
name_contains | Substring of the group name (the API's name filter, operation substring). | |
offset | integer | Records to skip; page N starts at N*page_size. |
order_by | string | Group attribute to sort by: name, admin, autologin, auth_method, mfa_enabled or member_count (the API's order_by). |
page_size | integer | Records per page (1-1000). |
sort | string | Sort direction: asc (ascending) or desc (descending); the API's sort_by. |
get_default_user Get Default User
The __DEFAULT__ meta user: the property values every user and group inherits unless overridden (deny, deny_web, autologin, reroute_gw, def_deny, ...).
list_access_rulesets List Access Rulesets
Access-control rulesets assigned to an owner: a username, a group name, or '__DEFAULT__' for the global rulesets; omit owner to list every ruleset. Returns ids, names, positions and owners only; the actual rules come from list_access_rules(ruleset_ids=...). To answer 'what can user X reach', query the user, each of the user's groups (see list_users -> group) and '__DEFAULT__'.
| Parameter | Type | Description |
|---|---|---|
name_contains | Substring of the ruleset name (the API's name filter, operation substring). | |
owner | Assignee whose rulesets to list: a username, a group name, or '__DEFAULT__' for the global rulesets. Omit to list every ruleset. |
list_access_rules List Access Rules
The rules inside one or more rulesets: type (domain_routing or filter), match_type, match_data (domain, subnet, ...), action (route, nat, deny, bypass), position and comment. Filters: rule_type, match_data_contains (substring).
| Parameter | Type | Description |
|---|---|---|
ruleset_ids * | array | IDs of the rulesets whose rules to list, at least one; take them from list_access_rulesets. |
match_data_contains | Substring of the rule's match_data, for domain_routing rules part of a domain name (the API's match_data filter, operation substring). | |
rule_type | Keep only rules of this type: domain_routing or filter (the API's type filter, operation equal). |