gs-admin Explorer
An interactive HTML wiki and an in-repo knowledge base for the
@gainsight/gs-admin-cli package —
the Gainsight Admin CLI & MCP server (gs-admin).
Everything here is generated from the installed CLI's own manifests, so it stays
accurate and is regenerable when the CLI is upgraded. No build dependencies — Node
built-ins only, no npm install to build or test (the npm run typecheck gate CI runs
installs two checker-only devDependencies; nothing runs from them).
Unaffiliated community project. This project is not affiliated with, endorsed by, or
supported by Gainsight, Inc. "Gainsight", gs-admin, and @gainsight/gs-admin-cli are
products and/or trademarks of Gainsight, Inc., named here only to describe what this
project documents and drives. It is not a copy of the CLI and does nothing on its own:
everything here works against the @gainsight/gs-admin-cli package that you install,
license, and authenticate, and the reference material is generated from that installed
package's own command manifests.
Support expectations. One maintainer, best-effort, no SLA. Issues and pull requests
are welcome, but this is not a support channel for Gainsight products: defects in the
CLI itself go to Gainsight, not here.
Currency. This document was last updated on 2026-11-28 (against
@gainsight/[email protected]) with reference to Gainsight's then-current pre-built and
generally available Admin CLI package. Gainsight may have updated its documentation and
available Admin CLI package since then. You can always find the latest version of
Gainsight's documentation and Admin CLI package at
support.gainsight.com.
Because this process wasn't built or endorsed by Gainsight, it's possible that a later
update to the Admin CLI package will interfere with the intended function set forth in
this document. You can always check support.gainsight.com
for the latest information and Admin CLI package.
What's inside
wiki/index.html — a self-contained, offline, searchable explorer for all
196 CLI commands / 190 MCP tools across 10 domains, with per-command flags, examples,
MCP tool names, REST endpoints, plus guide pages and end-to-end workflows.
reference/ — the same knowledge as markdown: concept docs (architecture, auth, MCP,
Lane 2 runtime, output formats), generated per-domain command references
(reference/domains/), task workflows (reference/workflows/), and a
guide to choosing the gs-admin CLI + plugin vs M2M OAuth
for giving an AI or automation access to your tenant (also generated as a shareable
standalone page: wiki/comparison-guide.html).
data/catalog.json — the normalized catalog that drives both of the above.
plugins/gs-superadmin/ — a Claude Code plugin that turns any directory into a
persistent, per-tenant Gainsight admin workspace (setup walkthrough below).
CLAUDE.md — durable context for Claude Code sessions in this repo: what gs-admin
is, where the knowledge lives, and the conventions that matter.
The gs-superadmin plugin (Claude Code)
The gs-superadmin plugin lets Claude Code operate your
Gainsight tenant through gs-admin: it indexes and documents every asset (rules, journeys,
scorecards, reports, connectors, …) into a local knowledge base, and guards every mutating
command behind a human approval prompt — reads run freely, writes always ask.
1. Prerequisites
You need these first. None of them can be installed from here:
- Gainsight super admin access, plus an OAuth application in your tenant with scopes
Read, Write, PKCE enabled, and the callback URL
http://localhost:19876/callback.
Gainsight's
OAuth for Gainsight APIs
article shows where to create it. Without it, login fails with "Enrollment failed: No OAuth
app found in this environment."
- A Claude plan that includes Claude Code: Pro, Max, Team, or Enterprise, or an Anthropic
Console account. The free plan doesn't include it.
Start with a sandbox tenant until you're comfortable.
Then install these, in order. New to the terminal? On Windows, open Terminal from the Start
menu; on a Mac, press ⌘ + Space and open Terminal. Paste each command and press Enter.