passkey-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
passkey manages developer secrets in the OS keychain so secret VALUES never enter AI context, stdout, or plaintext files. Golden rules for AI agents: (1) Reverse-lookup env vars with passkey_find, check repo manifests with passkey_project_status, and inspect metadata with passkey_entry_info or passkey_preflight_run to verify field names, config_keys, policy ('allow', 'session', or 'prompt'), and has_active_lease. (2) Run commands zero-config via 'passkey exec -q -- ' (when .env.passkey / .passkey.toml exists) or 'passkey run -q -- ' (set PASSKEY_OUTPUT=json for structured error_code JSON). (3) Never run interactive commands ('passkey', 'passkey get', 'passkey new', 'passkey edit') and NEVER ask the human user to paste raw API keys or tokens into chat—capture missing secrets out-of-band via passkey_request_secret (or 'passkey request --fields '), or ask the user to run 'passkey new ' / 'passkey lease grant --ttl 15m' in their terminal.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| passkey_listB | List all available passkey entries. Returns the names of all secret entries stored in the system keychain. Each entry can contain multiple key-value secret pairs. Returns: List of entry names (e.g., ["slack", "github", "aws"]) |
| passkey_fieldsA | List field names in a passkey entry (without revealing values or logging a secret read). Returns the names of secret fields stored in the specified entry.
Prefer Args: entry_name: Name of the passkey entry (e.g., "slack") Returns: List of field names (e.g., ["SLACK_TOKEN", "SLACK_COOKIE"]) Raises: Exception: If entry not found or keychain access fails |
| passkey_entry_infoA | Inspect complete non-sensitive metadata for a passkey entry without exposing values. Read-only: never triggers Touch ID, never decrements active lease uses, and never exposes secret or config values. Args: entry_name: Name of the passkey entry (e.g., "stripe") Returns: Dictionary with exists, policy ('allow', 'session', or 'prompt'), has_active_lease, will_prompt_biometric, fields (secret key names), config_keys, and timestamps. |
| passkey_findA | Reverse-lookup which passkey entries store given environment variable names. Matches exact names, service-specific aliases (e.g., GH_TOKEN <-> GITHUB_TOKEN), and entry-scoped generic fields (e.g., RESEND_API_KEY -> resend/API_KEY) across both secret fields and config keys without reading or exposing values. Args: vars: Environment variable names to find (e.g., ["RESEND_API_KEY", "GH_TOKEN"]) from_file: Optional path to a safe template file (e.g., ".env.example") Returns: Dictionary with matches, results, resolved_entries, missing_vars, and suggested_run_command. |
| passkey_preflight_runA | Dry-run preflight for Validates that all requested entries, Args: entries: Entry names to inject (e.g., ["stripe", "github"]) env_files: Optional dotenv/reference files to validate command: Optional command argv to verify executable availability Returns: Secret-free preflight dictionary with ready, injected_env_vars, entries_missing, will_prompt_biometric, and remediation steps. |
| passkey_project_statusA | Inspect repo secret manifest (.env.passkey / .passkey.toml), HMAC trust, and readiness. Auto-discovers the project manifest up to the enclosing git root, verifies
whether its SHA-256 digest is trusted in Args: project_dir: Project directory to inspect (default: current directory) command: Optional command argv to verify executable availability Returns: Secret-free dictionary with manifest_found, trusted, trust_status, ready, injected_env_vars, will_prompt_biometric, and remediation steps. |
| passkey_statusA | Show security status of MCP servers across all detected tools. Analyzes configs for Claude, Gemini, VS Code, Cursor, OpenCode, Windsurf, Cline, and Zed to identify which MCP servers have their secrets secured via passkey and which still have credentials exposed in plaintext. Returns: Dictionary with per-tool server status and summary counts |
| passkey_doctorA | Run diagnostics on passkey and MCP configurations. Checks for common issues including:
Args: deep: Include extended checks (entry age, bundle permissions) Returns: Dictionary with diagnostic results |
| passkey_request_secretA | Prompt the human user via an out-of-band native OS hidden dialog to save or rotate secrets. Opens a secure macOS/Linux password dialog directly on the user's desktop,
stores the entered value(s) straight into the OS keychain, and returns only
field names and status — secret values NEVER enter AI context or tool output.
Automatically skips fields that already exist unless Args: entry_name: Keychain entry name to create or update (e.g., "stripe_dev") fields: Environment variable / field names to capture (max 10) policy: Optional access policy ('allow', 'session', or 'prompt'; defaults to default-policy; policy relaxations below an existing entry's policy or default-policy are rejected) hint: Optional short hint shown in the dialog (e.g., where to find the key) reason: Optional error/expiry reason (e.g., "401 Unauthorized: token expired") timeout: Seconds to wait before timing out (5-300, default: 120) overwrite: Re-prompt even if requested fields already exist Returns: Secret-free dictionary with ok, status ('created'|'updated'|'already_exists'), entry, fields_saved, fields_present, policy, and optional rotated/last_rotated. |
| passkey_wrap_serverA | Update MCP config files to use passkey wrapper for a server. Prerequisites: Entry must already exist in passkey keychain. Args: server_name: Name of the server (must match passkey entry) config_paths: Config files to update (default: all detected configs) Returns: - configs_updated: List of updated config paths - configs_skipped: List of configs where server not found - errors: Any errors encountered |
| passkey_validate_referencesA | Validate passkey:/// secret references in a template or env file. Checks whether every referenced entry and field exists in the keychain without exposing any secret values, and reports prompt-gated entries lacking a lease. Args: file_path: Path to a template or .env.passkey file containing passkey:// references Returns: Dictionary with {"valid": bool, "checked": int, "missing": [...], "prompt_entries_without_lease": [...]} |
| passkey_audit_recentA | Return recent sanitized audit log records with caller attribution. Secret values and HMAC key material are never included. Args: limit: Maximum number of recent records to return (default: 20, max: 100) Returns: List of sanitized audit log entries (most recent first) |
| passkey_cdp_autofillA | Deterministically fill credentials into a local Chrome DevTools browser tab. Disabled by default; enable explicitly via Args: entry_name: Name of the passkey entry containing ORIGIN and credentials cdp_url: Loopback CDP WebSocket URL (e.g., ws://127.0.0.1:9222) Returns: Dictionary with {"filled": bool, "origin": str, "fields_injected": [...]} |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| setup-project-secrets | Inspect project secret requirements and configure safe passkey runtime injection. |
| debug-missing-credential | Diagnose missing entries, missing fields, or Touch ID policy blocks for a passkey entry. |
| migrate-exposed-mcp-configs | Audit MCP client configs for plaintext secrets and guide migration to the OS keychain. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
The core actions (request_secret, wrap_server, list, find, audit_recent, cdp_autofill) are clearly distinct, but the set contains a cluster of overlapping read-only checkers: passkey_status, passkey_doctor, passkey_project_status, passkey_preflight_run, and passkey_validate_references all answer variations of 'is this configured/ready?'. passkey_fields also openly overlaps passkey_entry_info (its description even says to prefer entry_info for richer output), so an agent can reasonably hesitate between several tools.
All 13 tools share a consistent passkey_ prefix and snake_case, which makes them instantly recognizable as one family. There is minor word-order drift (verb_noun like passkey_request_secret / passkey_wrap_server versus noun-first like passkey_entry_info / passkey_project_status / passkey_audit_recent), but the style is readable and predictable overall.
13 tools sits squarely in the well-scoped range, and each one maps to a recognizable stage of the secret-management workflow (capture, discover, validate, wrap, audit, autofill). Nothing looks like filler, and the surface is not so large that selection becomes a burden.
Creation/rotation, listing, lookup, validation, wrapping, diagnostics, and auditing are covered thoroughly, but lifecycle teardown is missing: there is no delete/remove entry tool, no way to change an entry's policy after creation, and no lease acquire/release management despite leases being referenced throughout. Agents hitting those needs will dead-end and have to fall back to the CLI.