Command line
gglint mcp [--fix] [--source AGENT] [--format FORMAT] [PATH]gglint mcp --servers [PATH]gglint secrets [--fix] [--staged] [--format FORMAT] [PATH | FILE...]gglint hook [install | print] [--tool NAME] [--with-mcp] [PATH]PATH is the root of the repository, and defaults to where you are. Every command exits with 0
when everything is fine and 1 when it found a problem. Colours are turned off when the output
isn’t a terminal or NO_COLOR is set.
gglint mcp
Section titled “gglint mcp”Runs the MCP servers check. It also exits with 1 if the
repository has no MCP config files at all.
| Option | What it does |
|---|---|
--fix |
Add missing servers and config files, and make setups match |
--source AGENT |
Copy servers from this agent first, such as codex (names) |
--servers |
Just list every server, file by file |
--format FORMAT |
table, lines, github, sarif or markdown (examples) |
gglint secrets
Section titled “gglint secrets”Runs the Secrets check. Warnings don’t change the exit status.
| Option | What it does |
|---|---|
--fix |
Swap secrets for environment variables and gitignore personal files |
--staged |
Check only what’s staged for the next commit |
FILE... |
Check only these files |
--format FORMAT |
table, lines, github, sarif or markdown |
gglint hook
Section titled “gglint hook”Sets up a check before every commit.
| Option | What it does |
|---|---|
install |
The default. Sets up husky or git, or prints lines for other tools |
print |
Only prints the lines to add |
--tool NAME |
husky, git, pre-commit, lefthook or lint-staged |
--with-mcp |
Also checks MCP servers |