Lockbox

v0.1.1
io.github.rosostolato/lockbox-mcp Checked 2 days ago Published 19 days ago

Let your AI agent set up API keys without ever seeing them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

secret_store Request credential storage

Creates a request to store a credential at the described destination and opens Lockbox's own authorization window on the user's machine, where the user reviews the destination and types the value. Returns a request id, the normalized destination, a risk classification and the request state — never the credential value, which no Lockbox tool accepts or returns. Does not write anything by itself: the write happens only after the user authorizes it. Use secret_status to follow the request, and secret_revise to change an already-authorized destination.

ParameterTypeDescription
destination *stringDestination that will receive the credential: 'custom' with target.definition, or 'saved:<name>' for one the user saved (target then empty).
name *stringLogical name of the credential, e.g. STRIPE_SECRET_KEY. A label only: this field must never contain the credential value.
target *objectWhere the credential goes. Accepted fields depend on the destination; secret_destinations returns the exact contract for each.
descriptionstringShort, non-sensitive purpose shown to the user on the review screen.
environmentstringEnvironment this destination is believed to belong to. Advisory only: Lockbox classifies the destination itself and applies the stricter of the two.
write_modestring'create' fails if a value already exists, 'new-version' adds a version, 'replace' overwrites. Availability depends on the destination.

secret_status Check a credential request

Returns the current state of one credential request: its stage, destination, risk, and the outcome once it is finished. Never returns credential material. Reads only — use secret_store to create a request.

ParameterTypeDescription
request_id *stringIdentifier returned by secret_store or secret_revise.
wait_secondsintegerBlock until the request reaches a terminal state or this many seconds elapse. Omit or use 0 to return immediately.

secret_cancel Cancel a credential request

Cancels a pending credential request and destroys any value the user already entered. Returns the final state. Cannot cancel a request that is already writing to its destination, and cannot undo a completed write.

ParameterTypeDescription
request_id *stringIdentifier of the request to cancel.
reasonstringShort, non-sensitive note recorded in the audit log.

secret_revise Replace a credential request

Cancels a pending request and creates a replacement with different details. The original authorization is invalidated and the user authorizes the new operation from scratch; an authorized operation is never edited in place. Returns the new request id. Use secret_cancel when no replacement is wanted.

ParameterTypeDescription
destination *stringDestination that will receive the credential: 'custom' with target.definition, or 'saved:<name>' for one the user saved (target then empty).
name *stringLogical name of the credential, e.g. STRIPE_SECRET_KEY. A label only: this field must never contain the credential value.
request_id *stringIdentifier of the request being replaced.
target *objectWhere the credential goes. Accepted fields depend on the destination; secret_destinations returns the exact contract for each.
descriptionstringShort, non-sensitive purpose shown to the user on the review screen.
environmentstringEnvironment this destination is believed to belong to. Advisory only: Lockbox classifies the destination itself and applies the stricter of the two.
write_modestring'create' fails if a value already exists, 'new-version' adds a version, 'replace' overwrites. Availability depends on the destination.

secret_destinations List credential destinations

Lists the destinations this Lockbox instance can write to, with the target fields and write modes each one accepts. Reads only; creates no request.