Claude Apps, MCP Apps (SEP-1865) & Antigravity Studio UI (v0.12.0)
JouleDB v0.12.0 ships a built-in, zero-CDN interactive MCP App (SEP-1865 / @modelcontextprotocol/ext-apps) directly inside the single jouledb binary (ui://jouledb/studio.html, MIME text/html;profile=mcp-app).
When connected to Claude (Claude Desktop, Claude on the web / mobile via remote MCP connectors, Claude Cowork, or Claude Code), Google Antigravity (inline chat cards, aux_pane side panel, and global sidebar view), ChatGPT, VS Code, Cursor, or Goose, calling db.studio, db.query, db.branch_list, or db.schema_inspect renders a live sandboxed JouleDB Studio workbench directly inside the conversation — while simultaneously returning compact token-efficient text + structuredContent for hosts without UI rendering.
1. Architecture & SEP-1865 Compliance
The built-in Studio UI (crates/joule-db-server/src/mcp_app_ui.rs) is served over both MCP transports from the same jouledb binary:
- Local
stdioMCP (jouledb mcp --data <dir>): Opens a durable localDurableAmorphicStore+SimpleQueryExecutor+DatabaseToolHandlerover JSON-RPC 2.0stdin/stdout(notifications/initializedsilent handling compliant with Claude Desktop & Claude Code). - Remote Streamable HTTP MCP (
POST /mcponjouledb --port 8080): Serves remote Claude Connector / multi-agent HTTP clients with session headers (Mcp-Session-Id) and SSE streaming.
Security & Sandbox Posture
- Strict Content Security Policy:
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data:;">— zero external CDN requests, zero third-party scripts, zero telemetry beacons. - Standard
SEP-1865Lifecycle Handshake: Sendsui/initialize(protocolVersion: "2026-01-26") overwindow.parent.postMessage, emitsui/notifications/initialized, tracksui/notifications/tool-input,ui/notifications/tool-result, andui/notifications/host-context-changed(data-theme+--color-*host CSS custom properties), and reports iframe height viaResizeObserver(ui/notifications/size-changed). - Interactive Capabilities Inside the Sandboxed Iframe:
- SQL & Vector/Graph Workbench: Run arbitrary SQL queries (
Cmd/Ctrl+Enter) viatools/call->db.query, sort any result column client-side, and switch between tabular grid and automatic inline distribution bar charts. - Live Schema & Sample Inspector: Browse tables via
db.schema_inspectand one-click sample (SELECT * FROM <tbl> LIMIT 25). - Copy-on-Write (
O(1)) Branch Manager: List, fork (db.branch_create), switch, and merge (db.branch_merge) isolated database branches for safe agentic sandboxing before mutatingmain. - Thermodynamic Receipt Telemetry & Model Context Sync: Displays latency (
ms), row counts, active branch, and joule telemetry (reported_jhardware RAPL /powermetricswhen metered, orest_janalytical fallback), plus one-click "Pin to Claude Context" (ui/update-model-context) and "Ask Claude to Analyze" (ui/message).
- SQL & Vector/Graph Workbench: Run arbitrary SQL queries (
2. Four Ways to Connect JouleDB to Claude & Antigravity
Option A: One-Click Claude Desktop Bundle (.mcpb, manifest_version: "0.3")
Each GitHub Release (v0.12.0+) attaches platform-native .mcpb bundles (jouledb-0.12.0-aarch64-apple-darwin.mcpb, jouledb-0.12.0-x86_64-apple-darwin.mcpb, jouledb-0.12.0-x86_64-unknown-linux-gnu.mcpb):
- Download the
.mcpbfile for your OS/architecture from GitHub Releases (v0.12.0). - Double-click the
.mcpbfile (or drag it into Claude Desktop -> Settings -> Extensions). - Choose an optional local data directory (defaults to
~/.jouledb/claude-studio). - Ask Claude: "Open JouleDB Studio, create a
sensorstable with 5 rows, fork branchexp-threshold, and compare aggregates."
(Source manifest: deploy/claude-app/manifest.json)
Option B: Claude Code CLI (claude mcp add)
# Install jouledb v0.12.0 via cargo-binstall (or GitHub Release tarball)
cargo binstall -y jouledb
# Register local durable JouleDB MCP server + Studio App in Claude Code
claude mcp add jouledb -- jouledb mcp --data ~/.jouledb/claude-code
Option C: Claude Desktop Manual claude_desktop_config.json
{
"mcpServers": {
"jouledb": {
"command": "jouledb",
"args": ["mcp", "--data", "/Users/you/.jouledb/studio"]
}
}
}
Option D: Remote Streamable HTTP Connector (Claude Web / Cowork / Mobile) & Google Antigravity Plugin
For remote Claude Connectors (Settings -> Connectors -> Add Custom Connector) or multi-user deployments, expose https://<your-host>/mcp in front of jouledb --port 8080 --data ./data.
For Google Antigravity, copy or symlink deploy/antigravity-plugin/ — db.studio declares com.google.antigravity/ui.entrypoints: ["aux_pane", "global"] so JouleDB Studio opens both inline in chat and as a docked side-pane or full-screen sidebar panel.
3. UI-Linked MCP Tools (50 Total Tools)
| Tool | UI Resource URI | Visibility | Purpose |
|---|---|---|---|
db.studio | ui://jouledb/studio.html | ["model", "app"] (aux_pane, global) | Opens the interactive JouleDB Studio workbench (optionally pre-running sql on branch) |
db.query | ui://jouledb/studio.html | ["model", "app"] | Executes SQL and renders sortable table + distribution chart + joule receipt |
db.branch_list | ui://jouledb/studio.html | ["model", "app"] | Lists O(1) CoW branches (main + forks) and hydrates the Studio branch bar |
db.schema_inspect | ui://jouledb/studio.html | ["model", "app"] | Inspects table columns/types and hydrates the Studio schema sidebar |
All remaining 21 core database/branch/capsule/migration tools and 25 agentic extension tools (db.memory_*, db.semantic_cache_*, db.fabric_*, db.continuum_*) remain available in the 50-tool catalog (includeAgenticExtensions: true).