mcp-authkit-cli
v0.2.1
Published
Command-line companion for mcp-authkit — init, mint-pat, verify-config, jwks-fetch, gen-secret.
Maintainers
Readme
mcp-authkit-cli
Command-line companion for mcp-authkit.
Install
pnpm add -D mcp-authkit-cliOr invoke directly:
pnpm dlx mcp-authkit-cli --helpCommands
mcp-authkit <command> [options]
Commands:
init [path] Scaffold a project (config, env, hello-world).
mint-pat Mint a PAT against the configured store.
verify-config Load and validate the config file.
jwks-fetch Fetch JWKS for a configured issuer.
gen-secret [length] Generate a cryptographically strong secret.
Global options:
--config <path> Path to mcp-authkit.config.ts (default: ./mcp-authkit.config.ts)
--log-level <level> pino log level (trace|debug|info|warn|error|fatal|silent)
--json Machine-readable JSON output where applicableExit codes
Per spec §5.7:
0success1user error (bad flag, missing arg, refusal due to a non-empty directory)2config error (invalid file, schema violation)3runtime error (network failure, store error)
Security
The CLI never reads secrets from argv (spec
§12). Any flag
whose name matches secret|token|password|pat|key|apikey|credential|passphrase
is rejected before parsing. Secrets live in environment variables or in the
loaded config file.
