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 list

2. 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 ClientConfig PathSetup Command
Claude Code~/.claude.jsonliso mcp setup --client claude-code --create-token --write
Claude Desktopclaude_desktop_config.jsonliso mcp setup --client claude-desktop --create-token --write
Cursor~/.cursor/mcp.jsonliso mcp setup --client cursor --create-token --write
VS CodeUser/mcp.json (servers key)liso mcp setup --client vscode --create-token --write
Windsurf~/.codeium/windsurf/mcp_config.jsonliso mcp setup --client windsurf --create-token --write
OpenAI Codex CLI~/.codex/config.tomlliso 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 tail

3. 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

ModeWhen it asks for approvalBest 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.
eachEvery single secret read, write, create, delete, file access, share, and command execution.High-security production environments and strict per-access review.
writesMutations 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.
noneNo 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.

CategoryToolsSecurity behavior
Status & syncstatus, syncCheck active session, profile scope, and pull or push encrypted vault deltas.
Items, secrets & 2FAlist_items, get_item, get_secret, get_totp, list_templates, get_template, create_item, update_item, trash_item, restore_item, delete_item, move_itemInspect non-secret metadata first; request approval before reading secret fields or TOTP codes.
Folders, vaults & memberslist_folders, create_folder, rename_folder, delete_folder, list_vaults, list_members, invite_member, update_member_role, remove_memberOrganize scoped vaults and manage shared-vault roles when --write / --share are granted.
Encrypted fileslist_files, get_file, upload_file, rename_file, move_file, delete_fileConfined strictly to the profile's --file-dir directory when --files is enabled.
Zero-exposure command executionrun_with_secretsInject 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 & packslist_devices, health_report, check_breach, generate_password, list_packs, check_packAudit password hygiene, run k-anonymity HIBP checks, generate credentials, and validate declarative packs.

CLI & MCP FAQ

Common questions about liso mcp tools, run_with_secrets redaction, hard blocks, and Streamable HTTP.

How many MCP tools does liso mcp expose?

liso mcp exposes 36 MCP tools covering status and sync, item listing/search/secrets/TOTP/templates/CRUD/trash/restore/move, folders, vaults, encrypted files, shared-vault members, device listing, Password Health reports, k-anonymity HIBP breach checks, run_with_secrets command execution with output redaction, password generation, and pack inspection.

How does run_with_secrets prevent an AI agent from reading raw API keys?

With --exec enabled on a profile, the agent invokes run_with_secrets with liso:// secret references mapped to environment variables. Liso injects the decrypted values directly into the child process (argv, no shell), never exposes LISO_* variables, and scrubs every secret—along with its base64, URL-encoded, JSON-escaped, and hex encodings—from stdout and stderr before returning output to the agent.

Can a prompt-injected AI agent steal my recovery phrase or master password?

No. Regardless of profile flags or approval mode (even --approval none), liso mcp enforces multi-layer hard blocks: tool arguments naming recovery phrases or keys are rejected, field labels and titles are screened, and candidate output values are folded, BIP-39 checksum-checked against your account's Recovery Auth key, tested against your Argon2id password slot, and scanned for hex/base64 encodings of in-memory keys.

Does liso mcp work over Streamable HTTP as well as stdio?

Yes. liso mcp runs over standard MCP stdio by default and also supports Streamable HTTP bound to 127.0.0.1 (--http) with bearer agent-token authentication and strict Host and Origin verification.