Connect Liongard
Liongard is an MSP documentation and attack-surface monitoring platform — it discovers, documents, and audits customer environments (Microsoft 365, Active Directory, networks, devices) via automated inspectors. Connecting it to StackJack lets your AI assistant work with your Liongard instance through MCP tools — the standardized tool calls (Model Context Protocol) that AI harnesses like Claude or ChatGPT use to act on your behalf. Once connected, your AI can query environments, systems, detections, timelines, metrics, and dataprints, and (on paid plans) manage environments, agents, and more.
The Liongard tool family contains about 80 tools, all prefixed liongard_, spanning both Liongard's current v2 API and its older v1 API — v1-backed tools carry a _v1 suffix (for example liongard_list_systems_v1). Read and query tools are available on the Free plan; write tools require a Pro or Business plan for the Liongard connector.
Before you begin
You will need:
- A StackJack role that can manage connectors: tenant Owner, co-owner, or Administrator. Plain Members cannot add or edit connector credentials.
- A Liongard login you can generate API keys with — use a dedicated service-account user, not a personal admin. The API key inherits that user's role: if the person leaves or their role changes, your integration changes with them.
- To know your Liongard region — the subdomain in the URL you use to sign in (
us1,us2,us3,ca1,eu1,uk1,au1, orsa1).
Role determines reach. The key pair can read and modify everything the generating user's role allows. For full write coverage on Pro-tier tools (environment writes, agent management), the underlying user needs a Liongard Tenant-Admin role or higher. For a read-mostly integration, a lower role is safer.
Step 1: Generate an API key pair in Liongard
- Sign in to Liongard at
https://<your-region>.app.liongard.comas the dedicated service-account user. - Click your user avatar → Account → API Keys.
- Click Generate New Key Pair.
- Copy the Access Key ID and the Access Secret. The secret is shown only once — store it securely. Treat the pair like a password: anyone holding it can read and modify every environment visible to that user account.
Liongard keys never expire on their own. Rotate them periodically — every 90 days is a good habit — by generating a new pair and updating the StackJack credential.
Step 2: Add the key pair in StackJack
- In the StackJack portal, go to Connectors.
- Find the Liongard card. Click How To Connect for the guided walkthrough of Step 1, or go straight to Configure.
- In the configuration dialog:
| Field | What to enter |
|---|---|
| Liongard Region | Pick your region: US 1–3, Canada, Europe, United Kingdom, Australia, or South America. The dialog shows a live URL preview so you can confirm it matches where you sign in. |
| Custom Subdomain | Only shown when you pick Other (custom) — enter just the subdomain (for example us4), with no protocol and no .app.liongard.com. Use this if Liongard adds a region that isn't in the dropdown yet. |
| Access Key ID | The Access Key from the pair you generated. |
| Access Secret | The one-time secret from the same pair. |
- Click Save.
StackJack Connectors page — Liongard configure dialog with the region dropdown open, and again with "Other (custom)" selected showing the Custom Subdomain field and live URL preview.
What happens when you save
- Your key pair is stored encrypted in Azure Key Vault — it is never written to the StackJack database.
- StackJack immediately tests the keys with a lightweight environment-count call against your Liongard instance. If the test fails, the credentials are still saved and you'll see a "saved, but validation failed" message with the reason so you can correct it.
- A Free subscription for the Liongard connector is created automatically, so the Free-tier tools appear in your AI harness right away. Upgrade from the connector card whenever you're ready — current pricing is shown in the portal at checkout.
Health monitoring
StackJack periodically re-validates the connection. If it fails definitively three times in a row (for example, because the key pair was deleted in Liongard), the connector is automatically disabled and the tenant owner is emailed. The connector card then shows the error details along with Re-enable and Update Credentials buttons. (A card that is failing validation but not yet disabled shows a Re-test button instead.)
What your AI can do once connected
- Free plan: read and query tools — environments and environment groups, agents, asset inventory (identities and devices), metrics and dataprint evaluation, timeline queries and detections, plus v1 reads (inspectors, systems, launchpoints, users, roles, alerts, tags, notes, service providers, the audit log) and v1 report downloads.
- Pro / Business plans: everything in Free, plus write tools — create/update/delete environments and environment groups (including bulk variants), manage agents and generate agent installers, update devices and identities, acknowledge alerts, manage launchpoints and webhooks, manage v1 users, tags, and notes, and generate reports.
- Business is the same tool set as Pro — the difference is the monthly usage allowance only. Liongard has no per-user OAuth flow, so per-user attribution is not available on any tier.
Usage notes worth passing to whoever drives the AI:
- v1 vs v2 tools. Tools ending in
_v1hit Liongard's older v1 API; the rest use v2. They complement each other — some data (reports, inspectors, launchpoints) only exists on v1. - Report downloads are time-limited links.
liongard_generate_report_v1starts report generation asynchronously; once complete,liongard_download_report_v1uploads the binary to StackJack's storage and returns a read-only download link. The link's lifetime is chosen per call (default 60 minutes, between 5 minutes and 24 hours), and reports are capped at 100 MB. - Usage caps. Each connector subscription has a monthly tool-call allowance (currently 100 calls on Free, 5,000 on Pro, 50,000 on Business per billing cycle). There is no per-minute burst limit on your MCP calls — the monthly cap is the enforcement point. Your usage bar is on the connector card and Dashboard.
Warning — the webhook signing-key tool is global. The
liongard_generate_webhook_signing_keytool rotates your Liongard instance's global webhook signing key. That immediately invalidates signature verification for all existing webhook receivers you have pointed at Liongard — not just StackJack-related ones. Only use it deliberately, e.g. when rotating a compromised key.
Rate limits toward Liongard
Liongard enforces 2,000 requests per 5 minutes globally per API key, plus a stricter 100 requests per minute on its metrics-evaluation endpoint. StackJack honors both automatically, backing off when Liongard asks it to — long analytics sessions may pace themselves rather than fail.
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
| Validation fails right after saving | Wrong region selected (the key pair only works on your home instance), or a typo in the key/secret. Check the URL preview against your sign-in URL and re-paste the pair. |
| Tools return permission errors | The service-account user behind the key lacks the role for that operation — write tools generally need Tenant-Admin or higher. Adjust the user's role in Liongard. |
| Connector shows Disabled | Three consecutive validation failures — usually a deleted or regenerated key pair. Generate a new pair, save it via Update Credentials on the card, then Re-enable. |
| Webhook receivers suddenly reject Liongard payloads | Someone (or an AI) ran liongard_generate_webhook_signing_key, rotating the global signing key. Update every webhook receiver with the new key. |
| A report download link expired | Ask for the report again with a longer link lifetime (up to 24 hours), or re-run the download tool for a fresh link. |
Per-user access
Liongard does not support per-user sign-in through StackJack — the connector uses one shared key pair for the whole tenant, and all tool calls run as the Liongard user who generated the keys. (Per-user connector credentials are only available for HaloPSA, NinjaOne, and N-able N-central.)
Disconnecting
Disconnect on the Liongard card deletes the stored key pair from Key Vault and removes Liongard tools from your AI harness. Note that disconnecting does not cancel a paid connector subscription — billing continues until you cancel the plan. The Cancel Plan button only appears while the connector is connected, so cancel the plan before disconnecting; if you've already disconnected, save your credentials again to bring the plan controls back, then cancel. If you're disconnecting for security reasons, also delete the key pair in Liongard so the old values are dead everywhere.