grokbot-bitwarden MCP Companion
Enables human-approved, zero-plaintext access to Bitwarden logins for agent-driven website sign-in; the current MCP companion exposes non-secret connection status and guidance, with native item discovery and browser fill planned.
Supports self-hosted Vaultwarden servers as Bitwarden-compatible vault sources for the same approval-gated credential access model.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Grok Bot × Bitwarden (grokbot-bitwarden)
Zero-plaintext-to-LLM, per-login human-approved Bitwarden credential access for Grok Bot — built on the open Bitwarden Agent Access Protocol v0, a 100% Bun + TypeScript local-first monorepo, and Cloudflare-first edge infrastructure.
Why This Project Exists
Grok Bot users who store logins in Bitwarden (including Free accounts, EU cloud, self-hosted / Vaultwarden servers, and shared organization vaults) have no native, approval-gated way to let agents sign into websites without pasting passwords into chat or duplicating them into Grok Bot Vault.
This repository provides:
Complete engineering specification (DRAFT v3), 14 Architecture Decision Records (
ADR-001..014), a 6-pillar Well-Architected Framework review mapped to Cloudflare, a boundary-driven security audit, a 12-PR implementation roadmap, C4 hosting maps, and org-wide security/testing/migration standards.Reusable, Apache-2.0 Bun + TypeScript monorepo designed to run end-to-end on a single developer laptop (with zero cloud accounts) and deploy cleanly to Cloudflare Workers, Durable Objects, D1, and KV.
Delivery Tracks & Current Status
Track | Scope | Hosting | Status |
Track 1 — First-Party Native Provider | Native | Cloudflare Edge ( | Foundations implemented; native receiver and fill remain planned — Production activation requires SpaceXSI & Security Gates A–C; see |
Track 2 — Public MCP Companion Plugin | Streamable HTTP MCP endpoint for non-secret guidance and diagnostic redaction; plugin packaging and interactive cards remain planned | Cloudflare Workers, or local Wrangler behind an HTTPS tunnel | MCP endpoint implemented; Grok Bot connection not yet verified. No marketplace listing, plugin archive, OAuth service, or native autofill is supplied. |
Related MCP server: NetSage AI
How Grok Bot Finds This Application
Add the Track 2 MCP server by its HTTPS URL. Grok Bot does not discover this repository automatically, and uploading a source archive does not register a connector or install the native Bitwarden provider.
Goal | What to run or register | Current boundary |
Try the companion during development | Local MCP Worker + public HTTPS tunnel; enter | Synthetic, non-secret inputs only; no marketplace submission needed for this route |
Share a stable companion endpoint | Host | Deployment is operator-managed; this repository supplies no live service URL |
Appear in public app search | Submit an MCP server URL or public plugin repository for marketplace review | Separate publication step; no approved listing or install link exists for this project |
Fill browser logins without exposing secrets to the model | Track 1: Cloudflare relay + restricted extension receiver + host controller + platform-native integration | Unavailable today: requires platform ownership and verified security gates; a public MCP connector cannot grant host-side browser access |
See the connection and local-development guide for exact steps, hosting responsibilities, discovery checks, and registration requirements. The platform documents custom connectors separately from marketplace submission.
Try the Non-Secret Companion Locally
After the development setup below, start these in separate terminals:
wrangler dev --config packages/mcp-plugin/wrangler.toml --ip 127.0.0.1 --port 8787# Install cloudflared separately; this temporary tunnel exposes only the companion Worker.
cloudflared tunnel --url http://127.0.0.1:8787In Grok Bot desktop, open Connect apps → Add a custom connector, enter a name, choose Remote HTTPS, and enter https://<generated-tunnel-host>/mcp. Choose Add plugin, then check the three companion tools are available. Team policy may require admin approval. Keep both terminals running; update the connector when the tunnel URL changes.
The current endpoint has no authentication or live vault connection. Use only synthetic diagnostic text; do not send credentials, pairing tokens, or real logs containing secrets. A tunnel provides reachability, not authentication. Run bitwarden_connection_status to inspect guidance; it does not query an actual connection.
Native Bitwarden Settings entries, a secure pairing card, item discovery, and automatic browser fill remain target behavior, subject to platform access and security activation gates. The earlier native setup walkthrough was a proposal, not an available installation path.
High-Level Architecture (C4 System Context)
flowchart TB
classDef person fill:#08427B,stroke:#052E56,color:#FFFFFF
classDef our_sys fill:#1168BD,stroke:#0B4884,color:#FFFFFF
classDef ext_sys fill:#999999,stroke:#6B6B6B,color:#FFFFFF
OWNER["[Person] Vault Owner\nApproves each login in Bitwarden, manages Settings"]:::person
AGENT["[External System] Grok Bot Agent (LLM + computerUse)\nHosted by SpaceXSI; sees opaque bwg_ grant IDs only"]:::ext_sys
OUR_SYS["[Software System] grokbot-bitwarden\nTARGET: Cloudflare relay + restricted receiver + opaque host controller + Track 2 MCP"]:::our_sys
BW_CLIENT["[External System] Bitwarden UserClient (aac listen + bw)\nRuns on User Device; unlocks vault & prompts human"]:::ext_sys
BW_VAULT["[External System] Bitwarden Vault Server\nUS / EU Cloud or User Self-Hosted"]:::ext_sys
TARGET["[External System] Target Sign-In Website\nHTTPS login form in Managed Chromium"]:::ext_sys
OWNER -->|"Pairs once & reviews audit (HTTPS)"| OUR_SYS
OWNER -->|"Approves/denies each login"| BW_CLIENT
AGENT -->|"Tool calls (entry_id only)"| OUR_SYS
OUR_SYS <-->|"Noise_NNpsk2 E2E ciphertext (WSS)"| BW_CLIENT
BW_CLIENT <-->|"Encrypted vault sync"| BW_VAULT
OUR_SYS -->|"Receiver inserts approved item and submits"| TARGETThe diagram describes the proposed native target, not working autofill. Reference findings and verification limits are in the static analysis.
See docs/architecture-hosting-map.md for the full C4 Level 1–3 + Local-First Deployment diagrams and hosting ownership matrix.
Core Security Invariants
Zero plaintext to the model (
SEC-1,INV-1): Usernames, passwords, TOTP seeds/codes, pairing tokens, and Bitwarden item IDs never appear in tool results, LLM transcripts, logs, metrics, DB rows, or audit records.Fresh human approval (
SEC-2,INV-5): Every new item release requires an explicit human decision in Bitwarden; an already released item may serve the same origin-bound workflow only within its original TTL.Browser isolation: The proposed receiver owns decryption and input; the host controller carries opaque commands and receipts. Private worker control, browser files, screenshots, DOM and extension storage must be inaccessible to the agent. This replaces host plaintext fill as the target; see the extension profile and proposed architecture decision. These capabilities remain unverified.
Ephemeral memory-only secrets (
INV-3,ADR-010): In the target receiver, approved items live in transient memory for a default 300 s, maximum 900 s absolute TTL, with best-effort buffer wiping and DOM cleanup or browser quarantine. JavaScript wiping does not guarantee removal of all heap copies.Exact-origin + eTLD+1 binding (
SEC-6,SEC-7):https://only, exact active-tab origin verification before typing, andsubmittedis never conflated withsigned in.Permissive-license supply chain (
WA-SEC-06): Strictly Apache-2.0 / MIT / BSD dependencies (zero GPL/AGPL/LGPL), enforced on every commit and PR byscripts/check-licenses.ts.
Local Development Quick Start (Single Laptop, Zero Cloud Required)
Prerequisites: mise automatically installs and activates the pinned toolchain (bun, wrangler, lefthook, sops, age) from .mise.toml on folder enter/trust. Direct bun (package.json scripts) is the primary task runner. Docker is not required for default development — only for the optional self-hosted Vaultwarden E2E container.
# 1. Clone and trust the project toolchain (mise installs pinned bun, wrangler, lefthook, sops, age)
git clone git@github.com:salir-se/grokbot-bitwarden.git
cd grokbot-bitwarden
mise trust .mise.toml && mise install
# 2. Install workspace dependencies and Git hooks
bun install --frozen-lockfile
mise run hooks:install
# 3. Run the full quality & security gate locally (~200 ms: fmt, typecheck, test --coverage >= 85%, pele Mermaid/docs, licenses, SOPS)
bun run verifyOptional Real-Vault E2E (Local Self-Hosted Vaultwarden)
# Start a disposable local Bitwarden-compatible Vaultwarden server (~20 MB RAM, 127.0.0.1:8088)
mise run dev:e2e
# Run the E2E suite against it
bun run test:e2e
# Tear down the E2E container
mise run dev:downEncrypted Operator Secrets (mise + sops + age)
Operator infrastructure secrets (Cloudflare API tokens, Axiom OTLP tokens) use a project-unique age key stored in git-ignored .secrets/age.key and encrypted JSON files under secrets/*.enc.json. See secrets/README.md and docs/architecture/environment-and-secrets.md.
Tech Stack
Concern | Choice | Notes |
Runtime, Formatter, Typecheck, Test, Audit | 100% Native Bun ( |
|
Toolchain Guarantee |
| Auto-installs pinned |
Git Hooks |
| Parallel |
Primary Cloud Infra | Cloudflare ( | Workers, Durable Objects (WebSocket Hibernation), D1 (SQLite), KV, Workers Observability + optional Axiom OTLP |
Browser E2E | Flashwright + local Vaultwarden | Fast Chromium CDP E2E against |
CI/CD & Releases | GitHub Actions + | Path-filtered PR CI ( |
Repository Layout
.
├── AGENTS.md # Engineering principles, TDD/BDD, coverage & working agreements
├── CONTRIBUTING.md # Local setup, Conventional Commits & PR checklist
├── SECURITY.md # Private vulnerability reporting & security architecture
├── .bunfig.toml # Native Bun formatter, test coverage floor (>= 85%) & runtime config
├── .env.example # Configuration registry index (.env.example.d/*.env)
├── .github/workflows/ # SHA-pinned CI, Vaultwarden E2E, Cloudflare deploy & release-please
├── .lefthook.yml # Pre-commit & pre-push automated gates (direct bun calls)
├── .mise.toml # Pinned toolchain & non-Bun infra tasks (mise)
├── .sops.yaml # SOPS + age encryption rules for secrets/*.enc.json
├── docs/ # Full documentation hub (specs, ADRs, Well-Architected, audit, PR-train)
├── infra/ # Digest-pinned local Vaultwarden E2E compose file
├── migrations/ # Rollback-safe Cloudflare D1 / SQLite migrations (0001_initial_schema.sql)
├── packages/
│ ├── ap-relay/ # Cloudflare Workers + Durable Objects WebSocket Hibernation relay
│ ├── common/ # Shared ULIDs, ErrorCode, SecretBytes, token redactor, schema tests
│ ├── e2e-tests/ # E2E, SQLite migration & canary test suite
│ ├── fill-executor/ # Host controller contracts (runtime migration to opaque receiver pending)
│ └── mcp-plugin/ # Track 2 Cloudflare Workers Streamable HTTP MCP companion
├── schemas/ # Canonical Draft 2020-12 JSON Schemas for tool contracts
├── scripts/ # Docs/pele Mermaid validator, permissive-license audit, SOPS guard
└── secrets/ # Encrypted operator JSON secrets & non-secret templateEvery package in packages/* ships its own README.md with responsibilities, C4 architecture diagram, and test commands (enforced automatically in CI).
Documentation Hub
Documentation Index — Complete map of all specifications, ADRs, and reviews
Project Vocabulary — Canonical naming authority, topic shards, and collision map
C4 Architecture & Hosting Map — L1–L3 + Local-First Deployment diagrams
Engineering & Security Standards — OWASP ASVS 5.0 / CASA Tier 2, 190-principle catalogue, environment config, secrets runbook, D1/SQLite migrations, and testing strategy
Specification Pack (DRAFT v3) — PRD, requirements (
FR/NFR/SEC), user stories, JSON Schema tool contracts, architecture, test plan, gap analysis, and requirements resolution (single-file v3)Architecture Decision Records (
ADR-001..014) — Technology Radar, Y-statements, and dependency graphWell-Architected 6-Pillar Review (Cloudflare-Mapped) — 43 design gaps mapped to Cloudflare Workers/DO/D1/KV and cross-pillar trade-offs
Security Audit & Design Verification — Boundary-driven verification via
cloudflare/security-audit-skillPR-Train Implementation Roadmap (
v0.1.0-rc.1) — Approved 4-wave, 12-PR build plan with dependency graph
Contributing & Releases
Git hooks check changed Markdown at the repository root and in documentation and package directories. Install them with mise run hooks:install; normal pushes run the full configured quality gate.
Follow Conventional Commits (
feat:,fix:,docs:,chore:,ci:,test:) sorelease-pleasegenerates accurate SemVer bumps andCHANGELOG.mdentries.Every new workspace package under
packages/*must include aREADME.md(responsibilities, C4 Mermaid diagram, test commands) and followdocs/architecture/testing-strategy.md.All dependencies must use permissive open-source licenses (Apache-2.0, MIT, BSD).
Security issues: Never open a public issue with real credentials or exploitable vulnerabilities; report privately to the repository maintainers (or Bitwarden via
bitwarden/agent-accessSECURITY.mdfor upstream protocol flaws).
License & Trademark Notice
Licensed under the Apache License 2.0.
Bitwarden is a trademark or registered trademark of Bitwarden, Inc. in the United States and/or other countries. This project is an independent open-source integration specification and toolkit compatible with the open Bitwarden Agent Access protocol and is not officially affiliated with or endorsed by Bitwarden, Inc. or SpaceXSI.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Internal gateway for autonomous agents and machine-to-machine tooling (MCP streamable-http).
Connect CyberArk Certificate Manager to AI assistants via UniversalMCP stateless Streamable HTTP.
Audit remote MCP Streamable HTTP servers for OAuth 2.1, CORS, token bloat, and tool poisoning.
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceExposes the Veridexa S2S API to MCP clients (e.g., ChatGPT) via Streamable HTTP, allowing document verification and report retrieval.-
- FlicenseNot gradedqualityDmaintenanceEnables network troubleshooting through an MCP Streamable HTTP endpoint, exposing diagnostic tools for Cisco Packet Tracer labs with human-in-the-loop review and NIST/CIS security validation.-
- FlicenseNot gradedqualityDmaintenanceExposes the shared health-check service as an MCP tool, letting clients query status, uptime, and version through the streamable HTTP endpoint.-
- AlicenseNot gradedqualityBmaintenanceA remote Streamable HTTP MCP server that lets agents retrieve deterministic dating profile and lead photo evaluation rubrics, check service/discovery status, and score profile readiness from photo and prompt counts to surface first-impression bottlenecks. All public diagnostic tools work over HTTPS without credentials.MIT