Vaultwarden Drop Slot

io.github.ip2k由 GitHub 帳號 ip2k 發布v0.1.0更新於 Oct 25, 2026

Create-only, age-encrypted deposits of new logins and notes into Vaultwarden, without vault reads.

發布方自己的服務:drop.media

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理把新的登入憑證與安全筆記加密存入自架 Vaultwarden 保險庫,且完全不具備讀取權限。

可以做什麼
存入新的登入憑證或安全筆記:先在本機以 age 加密,再送入加密收件匣,只回傳回執而不回傳密鑰本身。依回執查詢投遞狀態,查看是排隊、匯入中、已匯入還是失敗。重複使用同一請求 ID 可安全重試原始項目,因為用戶端保留原始密文。同一套件另提供以標準輸入為基礎的 CLI 與 Node.js 模組,供指令碼在不經過模型的情況下產生並存入密鑰。
適用情境
當代理或部署指令碼產生新憑證,而你希望它存入 Vaultwarden,又不願把密鑰貼進對話,或給代理一個能讀取現有密鑰的保險庫登入時使用。適合能執行獨立可信匯入器的自架 Vaultwarden 維運者。
執行需求
本機程序,需 Node.js 24.2 或更新版本,並以絕對路徑指定私有生產者設定檔啟動。還需依專案指南架設運作中的 HTTPS 收件匣,以及持有 age 密鑰與專用 Vaultwarden 帳戶的私有匯入器;選用的遠端 HTTP 模式需要既有的 OAuth 授權伺服器、JWT 權杖及 deposits:write 與 deposits:status 權限範圍。
安裝前請注意
透過工具參數傳入的密鑰對 AI 供應商可見;指令碼產生的密鑰應直接管線輸入 CLI 或呼叫 Node 模組。寫入權杖應保存在主機設定中,不要放進提示詞或工具參數。匯入器帳戶可讀取其能存取的全部內容,應使用專用帳戶與獨立組織。投遞並非恰好一次;在記錄意圖與建立之間崩潰可能需要人工復原。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Vaultwarden Drop Slot,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

vaultwarden-drop-slot-mcp

MCP server, CLI and Node.js module for write-only credential deposits into a self-hosted Vaultwarden (Bitwarden-compatible) vault. AI agents such as Claude Code and Codex, and deployment scripts, can save new logins (passwords) and secure notes, encrypted with age before they reach the inbox, without a vault login that can read existing secrets.

[Verify]

TL;DR

Let an agent save a new password without giving it the keys to your vault.

An agent or deployment script creates a credential. You want it saved in Vaultwarden without pasting it into chat, copying it by hand, or giving that agent a vault login that can read existing passwords. This project provides a deposit-only path: encrypt the new item, hand it to an inbox, and receive a receipt. A separate trusted importer saves it as an ordinary login or secure note that you open with your existing Bitwarden clients.

  • For agents: two MCP tools — deposit a secret and check its delivery status.
  • For scripts: a stdin-based CLI and a typed Node.js module.
  • For operators: portable Docker containers, your own Vaultwarden, and a dedicated importer account. No changes to Vaultwarden are required.

The restriction applies to the producer. The importer has vault access; keep its account and host private. Secrets included in AI tool arguments can still be seen by the AI provider. Use the CLI or Node module directly when a script can generate and deposit a secret without involving the model.

Release 0.1.0. Install from npm (npm install vaultwarden-drop-slot-mcp, or run npx -y vaultwarden-drop-slot-mcp), from this repository, or from a locally packed tarball. The MCP server is also listed in the MCP Registry as io.github.ip2k/vaultwarden-drop-slot-mcp. Containers are built locally. Original code is Apache-2.0. This is an independent project, not affiliated with Bitwarden or Vaultwarden. See the verification record for tested behavior and limits.

Start here: Setup walkthrough · MCP connections · Operations · Security design

From a new credential to your vault

mermaid
flowchart TB    producer["Agent or deployment script"]    client["Local MCP, CLI or Node client<br/>Encrypt with pinned age public key"]    inbox["HTTPS inbox<br/>Store ciphertext and receipt state"]    importer["Private importer<br/>Decrypt with age private key"]    vault["Vaultwarden<br/>Dedicated organization and collection"]    owner["You<br/>Existing Bitwarden clients"]    producer -->|New login or secure note| client    client -->|Ciphertext plus writer authentication| inbox    importer -->|Claim encrypted job| inbox    inbox -->|Ciphertext job| importer    importer -->|Create and privately verify| vault    vault -->|Normal vault sync| owner    importer -.->|Verified delivery acknowledgment| inbox    inbox -.->|Opaque receipt and status only| client    classDef publicSide fill:#e8f1ff,stroke:#315f99,color:#122842    classDef privateSide fill:#e7f4ec,stroke:#36704a,color:#173422    class producer,client,inbox publicSide    class importer,vault,owner privateSide

The inbox cannot decrypt the payload. Only the private importer holds the age identity and the dedicated Bitwarden CLI session. The public API has no vault read, search, list, edit, or delete operations. Item URLs are stored as text; the service never fetches them.

How it fits together

ComponentHasCan do
Local MCP / CLI / Node clientWriter token, pinned public recipientEncrypt, deposit, check own receipts
HTTPS inboxToken hashes, encrypted queueAuthenticate, queue, return delivery states
Private importerage private key, dedicated vault sessionDecrypt and create; privately read to verify delivery
Optional remote MCP adapterOAuth configuration, writer credentialsAuthenticate users, encrypt plaintext tool arguments, forward deposits

The writer capability is create-only. The importer is trusted and can read everything its account can access. Use a dedicated automation account and a separate organization shared with your normal account. A folder or collection is not an independent cryptographic boundary. Personal-vault mode requires an explicit configuration opt-in.

An HTTP MCP adapter sees plaintext, as does an AI provider receiving those tool arguments. For secrets generated by a deployment script, pipe directly into the local CLI or call the Node module. No arbitrary file-path, URL-fetch, shell, read, search, edit, or delete tools exist.

Setup overview

Follow the complete setup walkthrough for copyable commands, file permissions, TLS, owner login, routing and a first test. It assumes a Linux Docker host with Compose v2 and an existing HTTPS Vaultwarden instance; the local client/module needs Node.js 24.2+. Image builds support amd64 and arm64; execution has been verified on amd64.

  1. Build from source. Clone this repository, run npm ci --ignore-scripts, npm test, and npm run build. Build the default runtime and optional importer images. The default image contains no Bitwarden CLI.
  2. Create a private deployment directory. Generate enrollment material and split producer, inbox and importer files. Keep it outside the checkout.
  3. Configure TLS and start the inbox. Use certificates trusted by the clients and importer. Publish only the HTTPS intake port; the worker port stays private.
  4. Enroll a dedicated vault account. Create an organization and collection, invite the importer as a User, accept and confirm membership, and explicitly grant collection edit access. Log in from your private terminal.
  5. Set the destination and start the importer. Map the writer ID to the organization and collection UUIDs in private configuration.
  6. Test, then connect MCP. Deposit a synthetic item, wait for imported, and open it in your normal Bitwarden client. Then follow the client-specific MCP instructions.
sh
git clone https://github.com/ip2k/vaultwarden-drop-slot-mcp.gitcd vaultwarden-drop-slot-mcpnpm ci --ignore-scriptsnpm testnpm run buildnode dist/cli.js --help

For a Node application, npm install vaultwarden-drop-slot-mcp. To use a local build instead, run npm pack here and install the resulting .tgz with npm install /absolute/path/vaultwarden-drop-slot-mcp-0.1.0.tgz.

What a receipt means

mermaid
sequenceDiagram    participant P as Producer    participant I as Encrypted inbox    participant W as Private importer    participant V as Vaultwarden    P->>I: Encrypted item and request UUID    I-->>P: Opaque receipt (queued)    W->>I: Claim job    I-->>W: Ciphertext (importing)    Note over W: Decrypt, check destination, record intent    W->>V: Create item with private submission marker    W->>V: Verify marker in the selected destination    V-->>W: Matching item    W->>I: Acknowledge verified import    Note over I: Delete queued ciphertext and retain receipt    P->>I: Check own receipt    I-->>P: imported    Note over P,I: Same UUID means same ciphertext<br/>and the same receipt

queued means accepted by the inbox; imported means privately verified in the vault. A locked importer leaves work queued. Failures and ambiguous creates use bounded retries and private reconciliation; see delivery limits.

Local MCP

After completing setup, configure your MCP client to launch the executable with a private producer config file. Use absolute paths; the paths below are examples. See MCP connections for Claude Code, Codex, desktop clients, Docker stdio and remote HTTP instructions:

json
{  "mcpServers": {    "vaultwarden-drop-slot": {      "command": "node",      "args": ["/absolute/path/to/dist/cli.js", "stdio", "/private/path/client.json"]    }  }}

Exactly two tools are available:

  • deposit_secret({request_id, payload}): queue a new login or secure note.
  • deposit_status({receipt}): return queued, importing, imported, or failed.

Use a fresh UUID for each new item. Reuse it only to retry the original item. The client retains the original encrypted envelope in its private spool; changed arguments with the same request ID do not create or overwrite anything. Retrying after a timeout therefore uses exactly the same ciphertext. Keep the spool until retries are no longer needed; it is bounded at 10,000 entries.

Tools return receipts only. Keep tokens in host configuration; never put them in prompts, tool arguments, or checked-in MCP settings.

CLI and Node module

The deposit command reads {request_id,payload} JSON from stdin. A secret generator can pipe to it without putting the secret in shell arguments or a file:

sh
your-secret-generator | node dist/cli.js deposit /private/path/client.jsonnode dist/cli.js status /private/path/client.json RECEIPT_UUID

The npm module exports a typed DepositClient, seal, fingerprint, validation schemas, and protocol types. Example inside your own deployment program:

ts
import { DepositClient } from 'vaultwarden-drop-slot-mcp';
const client = new DepositClient(enrolledClientConfig);const receipt = await client.deposit(persistedRequestId, {  type: 'login',  name: 'New service',  username: generatedUsername,  password: generatedPassword,  urls: ['https://service.example.com'],});// Only the receipt is safe to log.console.log(receipt);

prepare() writes a ciphertext-only spool entry; submit() sends that exact envelope. These are available separately for applications with their own retry logic. URLs in payloads are stored as data and are never fetched.

Remote MCP

mcp-http remote.json serves stateless Streamable HTTP at /mcp over native HTTPS. It requires an existing OAuth authorization server, audience-bound JWT access tokens, expiry, client_id and sub claims, and both deposits:write and deposits:status scopes. Configure issuer, JWKS URL, algorithm and approved subject/client mappings; discovery is exposed at /.well-known/oauth-protected-resource/mcp. No authorization server is built here.

See remote setup. Hosted assistants also need a reachable HTTPS endpoint and an OAuth provider/client-registration configuration they support. End-to-end hosted Claude/ChatGPT enrollment remains a separate check.

Delivery and operational limits

The queue and importer ledger use transactional SQLite in WAL mode with full synchronization. One logical importer/ledger per installation is supported. Idempotency is namespaced by writer and request UUID. Delivery is marked imported only after private verification in the vault.

There is no cross-system atomic transaction with Vaultwarden. A durable creation intent permits at most one automatic create attempt; ambiguous results are reconciled by a private encrypted marker. If the process dies between recording intent and sending the create, operator recovery is required. This deliberately prefers a visible failed/queued submission to silent duplicate creation. Do not claim universal exactly-once delivery.

Defaults: 100 new deposits per writer per UTC day, 100 pending per writer, 100,000 receipt tombstones per installation, five bounded delivery attempts, seven-day undelivered-ciphertext retention, and immediate ciphertext deletion after verified import. Locked vaults stay queued without consuming the retry budget, until retention expires. Token expiry/revocation takes effect on the next request. Successful receipts remain as compact idempotency tombstones.

Read the threat model, operations guide, OpenAPI contract, and dependency inventory.

來源:README.md,提交 ed74665

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Oct 15, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Drop 整合