Apache-2.0 · macOS · Linux · Windows
Liso CLI & MCP Server for AI Agents
liso mcp is a built-in Model Context Protocol server inside the open-source liso CLI that gives AI coding agents (Claude Code, Cursor, VS Code, Windsurf, Codex) scoped, human-approved access to your end-to-end encrypted vault—with 36 tools, zero-exposure command execution, cryptographic hard blocks on master keys, and a hash-chained local audit log.
- MCP Tools
- 36 tools (stdio & 127.0.0.1 HTTP)
- Supported Clients
- Claude, Cursor, VS Code, Windsurf, Codex
- Token Binding
- Scoped la1.<id>.<key> (refused by CLI)
- Hard Blocks
- Never exposes phrase, password, or keys
1. Install the liso CLI and sign in
The native liso binary shares the exact dart/liso_sdk engine and libsodium cryptography as the Liso apps. Release archives include SHA256SUMS, Sigstore keyless bundles, macOS Apple notarization, and Windows Authenticode signatures.
# macOS & Linux install script (verifies SHA-256 and optional Sigstore cosign)
curl -fsSLO https://raw.githubusercontent.com/Liso-Vault/liso/main/dart/cli/install/install.sh
bash install.sh --require-cosign
# Or build from source (requires Dart 3.14+ and a C toolchain)
cd dart/cli && dart build cli -o build/liso
# Pair with an unlocked device via QR (or use liso login with recovery phrase)
liso login --qr
export LISO_SESSION="$(liso unlock --raw)"
# Use in scripts without writing plaintext .env files
liso list items --search github
liso run -- gh repo list2. One-command MCP setup for 6 AI coding clients
Run liso mcp setup to create a scoped profile, mint a dedicated la1.<id>.<key> agent token, back up your existing config, and merge the Liso MCP server cleanly with private file permissions (0600 on Unix / user-only ACL on Windows).
| AI Client | Config Path | Setup Command |
|---|---|---|
| Claude Code | ~/.claude.json | liso mcp setup --client claude-code --create-token --write |
| Claude Desktop | claude_desktop_config.json | liso mcp setup --client claude-desktop --create-token --write |
| Cursor | ~/.cursor/mcp.json | liso mcp setup --client cursor --create-token --write |
| VS Code | User/mcp.json (servers key) | liso mcp setup --client vscode --create-token --write |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | liso mcp setup --client windsurf --create-token --write |
| OpenAI Codex CLI | ~/.codex/config.toml | liso mcp setup --client codex --create-token --write |
# Create custom scoped profiles with least-privilege permissions
liso mcp profile add dev --folder Development --tag agent --write --ttl 8h
liso mcp profile add ops --vault Staging --write --exec --files --file-dir ~/agent-files
# Verify account, token validity, approver availability, and client configs
liso mcp doctor
# Inspect every approved, denied, or blocked call locally (hash-chained log)
liso mcp audit tail3. Human-in-the-loop approvals and cryptographic isolation
Every agent token is a separate XChaCha20-Poly1305 wrapped key whose authenticated kid hashes the token ID, expiry, and profile policy. Editing the profile on disk invalidates the token, normal CLI commands (liso get, liso export) refuse agent tokens with exit code 8, and liso lock revokes every agent token immediately.
Approver Priority 1
Liso Desktop App IPC
HMAC-SHA256 authenticated local IPC (0600 Unix socket on macOS/Linux; private endpoint + key-proof hello on Windows). Prompts biometric or password confirmation with Allow once, Allow for 15 min, or Deny.
Approver Priority 2
Native OS Dialog
Uses osascript on macOS, zenity/kdialog on Linux, and MessageBoxTimeoutW via FFI on Windows. Defaults to Deny after 60 seconds; untrusted text is never spliced into scripts.
Approver Priority 3 (Opt-in)
MCP Elicitation
Off by default (requires explicit --elicitation on the profile) so a compromised or headless MCP client cannot auto-approve its own requests. Fails closed when no approver is reachable.
Approval modes
| Mode | When it asks for approval | Best for |
|---|---|---|
| first-use (default) | First read of each item per session, first modification of each item, first health report; creates, destructive actions, sharing, and breach checks ask every time. | Day-to-day coding with Claude Code, Cursor, or Codex. |
| each | Every single secret read, write, create, delete, file access, share, and command execution. | High-security production environments and strict per-access review. |
| writes | Mutations only (create, update, delete, share, external breach lookups); scoped reads run without prompts. | Read-heavy local automation on a narrow dev/staging vault or tag. |
| none | No interactive prompts (prints warning). Vault/folder/tag scope, permission flags, audit logs, and cryptographic hard blocks still apply. | Trusted, sandboxed CI pipelines with narrowly scoped non-production vaults. |
4. Complete 36-tool MCP surface
Every tool respects vault, folder, and tag scopes. Items outside scope are reported identically to non-existent items so an agent cannot probe for titles in restricted vaults.
| Category | Tools | Security behavior |
|---|---|---|
| Status & sync | status, sync | Check active session, profile scope, and pull or push encrypted vault deltas. |
| Items, secrets & 2FA | list_items, get_item, get_secret, get_totp, list_templates, get_template, create_item, update_item, trash_item, restore_item, delete_item, move_item | Inspect non-secret metadata first; request approval before reading secret fields or TOTP codes. |
| Folders, vaults & members | list_folders, create_folder, rename_folder, delete_folder, list_vaults, list_members, invite_member, update_member_role, remove_member | Organize scoped vaults and manage shared-vault roles when --write / --share are granted. |
| Encrypted files | list_files, get_file, upload_file, rename_file, move_file, delete_file | Confined strictly to the profile's --file-dir directory when --files is enabled. |
| Zero-exposure command execution | run_with_secrets | Inject liso:// references into child process env vars (argv, no shell) and redact every secret + base64/URL/JSON/hex form from stdout/stderr. |
| Security, devices, generator & packs | list_devices, health_report, check_breach, generate_password, list_packs, check_pack | Audit password hygiene, run k-anonymity HIBP checks, generate credentials, and validate declarative packs. |