Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
backendNocloud (Site Manager connector) or local (UDM on the LAN). Default cloud.
site_idNoIntegration site UUID.
site_nameNoClassic site name. Default default.
console_idNoConsole id from GET https://api.ui.com/v1/hosts. Required for cloud.
local_hostNoUDM hostname or IPv4, optional :port. Required for local.
allow_writesNoRegister write tools and allow non-GET requests. Default false. Overridden by UNIFI_ALLOW_WRITES.
local_site_idNoAlias for site_id.
rw_token_fileNoMCP bearer token file, mode 0600, at least 32 characters. Default ~/.config/unifi-connectivity/mcp-rw-token.
rw_listen_hostNoListen host. Default 127.0.0.1.
rw_listen_portNoListen port. Default 18778.
MCP_PUBLIC_HOSTNoName the reverse proxy serves, used for Host and Origin checks, e.g. the machine's *.ts.net name.
UNIFI_WRITE_LOGNoAbsolute path to a JSON Lines write-call log. Unset disables it.
local_site_nameNoAlias for site_name.
UNIFI_WRITE_TOOLSNoComma-separated write tool names to register. Empty or none registers no write tools; unset registers every write tool.
cloud_rw_key_fileNoSite Manager API key file, mode 0600. Default ~/.config/unifi-connectivity/cloud-rw-key.
local_rw_key_fileNoUDM integration API key file, mode 0600. Default ~/.config/unifi-connectivity/local-rw-key.
local_tls_ca_fileNoCA file for the UDM; use one of local_tls_cert_sha256 or local_tls_ca_file.
UNIFI_ALLOW_WRITESNoOverrides allow_writes. true or 1 enables writes, false or 0 disables them; empty or unset leaves the decision to config.
UNIFI_WAN_ZONE_IDSNoComma-separated zone UUIDs treated as WAN, in addition to firewall_wan_zone_ids.
UNIFI_MCP_RW_CONFIGNoPath to config.json. Default ~/.config/unifi-connectivity/config.json.
cloud_allow_classicNofalse, true (all), or a subset of [firewallrule, fixed_ip, radio]. Default false.
firewall_wan_zone_idsNoZone UUIDs for WAN zones used by zone-based policy checks.
local_tls_cert_sha256NoCertificate pin for the UDM; use one of local_tls_cert_sha256 or local_tls_ca_file.
UNIFI_MCP_RW_STATE_DIRNoDirectory containing writes.log. Default ~/.local/state/unifi-mcp-rw.
UNIFI_ALLOW_WAN_EXPOSURENoSet true (any case) to disable WAN-exposure refusals; unset keeps refusals on.
firewall_internal_zone_idsNoZone UUIDs for internal zones used by zone-based policy checks.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources