@vaultmcp-axiler/cli
v0.1.2
Published
VaultMCP runtime CLI — inject shared workspace secrets into local commands with `vaultmcp run` (Node 22+).
Readme
@vaultmcp-axiler/cli
Fetch shared VaultMCP workspace secrets and run local commands with them injected into the process environment. Rotate secrets in the dashboard; teammates pick up new values on the next vaultmcp run.
Docs: vaultmcp.space/docs#local-env
Install
npx @vaultmcp-axiler/cli@latest --help
# or install globally:
npm i -g @vaultmcp-axiler/cliRequires Node.js 22+.
Setup
- In VaultMCP, store team secrets as workspace (shared) visibility.
- Create a personal access token with the Runtime env (CLI) preset (
envscope only). MCP read/write tokens are for/mcpIDE clients — they are not interchangeable with env PATs. - Point the CLI at your API origin (not the
/mcpURL):
npx @vaultmcp-axiler/cli@latest login --token vmcp_… --url https://vaultmcp.space
npx @vaultmcp-axiler/cli@latest run -w your-slug -- npm run devOptional env overrides (preferred for CI / one-offs; skip writing ~/.config/vaultmcp/config.json):
export VAULTMCP_URL=https://vaultmcp.space
export VAULTMCP_TOKEN=vmcp_…
npx @vaultmcp-axiler/cli@latest run -w your-slug --names DATABASE_URL,GITHUB_TOKEN -- npm run devCommands
| Command | Purpose |
|---------|---------|
| vaultmcp login --token … --url … | Save credentials to ~/.config/vaultmcp/config.json (mode 0600) |
| vaultmcp run -w <slug> [--names A,B] -- <cmd> | Fetch secrets, merge into child env, run command (preferred) |
| vaultmcp env -w <slug> [--format json\|dotenv] | Print secrets to stdout — prefer run; do not commit the output |
Security
- Runtime export returns plaintext to your machine (unlike MCP tool injection). Use short-lived env-only tokens; revoke on offboarding.
- Prefer
runoverenvand over writing.envfiles — secrets stay in the child process only. - Use HTTPS except for localhost.
- Server API:
GET /api/runtime/v1/env(Bearervmcp_…withenvscope).
License
AGPL-3.0-only
