About Nautilo
Nautilo is an MCP server published by agentsea in the Agents category: aI goes multiplayer. A self-hosted workspace for people and machine people. Create, code, and work together across desktop, mobile, and web. Open source. MIT licensed. Conduid read 21 tools from its source: backup_inspect, backup_list, backup_preflight, backup_save, backup_verify, electron_collect_panel_diagnostics and 15 more. No package is published for it, so it installs from a source checkout.
The repository has 300 stars and 8 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is cli-v0.1.41 (20 Nov 2026). It follows desktop-v0.14.64 (20 Oct 2026), and the 5 most recent releases go back to desktop-v0.14.61 (11 Oct 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include collaboration, electron, multi-agent, react-native and self-hosted.
Install
git clone https://github.com/agentsea/nautiloTools (21)
backup_inspectInspect a single dev-snapshot's contents. Returns: - Snapshot metadata (path, created-at, env key count, DB dump size, Logto DB dump size / absence) - Per-table row count + column list from the Nautilo gzipped pg_dump Streams the dump without holding it in memory, so it is safe to run on multi-hundred-MB dumps. READ-ONLY. Use this BEFORE a restore to see what data is actually in the snapshot and what schema (column list) the dump was taken against.backup_listList every dev-snapshot available in the current Nautilo repo. Returns a human-readable table with columns: NAME, CREATED, MODE, DB SIZE, LOGTO DB, KEYS. Sorted newest-first when created-at is available, then alphabetically. This is a READ-ONLY operation. No DB or filesystem writes.backup_preflightDry-run a restore and report what WOULD happen, without writing anything to the database. For each table in the snapshot, reports one of: OK — exact column match, clean COPY OK (additive) — current schema added nullable/defaulted cols REMAP (registry) — restore-migration hook handles shape change SKIP (table gone) — table dropped since snapshot SKIP (col dropped) — dump names a column that no longer exists SKIP (col required) — current schema added a NOT NULL column SKIP (not targeted) — table is not in DATA_TABLES allowlist Exit 1 if any table would fail — that tells the caller to add a restore-migration rule before running the real restore. READ-ONLY. Requires the nautilo-postgres container to be running for schema comparison. Without it, returns the dump side of the diff only.backup_saveCreate a new dev-snapshot of the CURRENT state. Captures: - Full pg_dump of the nautilo database (gzipped), by default - OR a physical pg_basebackup of the app Postgres cluster when mode=basebackup - Full pg_dump of the logto_nautilo database when the Logto stack is running - Current config.env (at ~/.nautilo/config.env) - ~/.nautilo/ tree (soul.md, state, certs, etc.) minus dev-snapshots mode=dump is portable and table-inspectable. mode=basebackup is intended for faster full-cluster rollback and cannot be used with backup_inspect or backup_preflight. Set requireLogto=true for Logto migration backups. That makes the snapshot fail unless logto_nautilo is captured too. This is a SAFE WRITE — the tool fails (does not overwrite) if a snapshot with the same name already exists. Use unique, descriptive names ("pre-D087-merge", "pre-migration-0017", etc.). Requires the nautilo-postgres container to be running. With requireLogto=true, the Logto Postgres container must also be running and contain logto_nautilo.backup_verifyPost-restore smoke check: run the full CLI `dev:verify` assertion set and return the pass/fail report. Checks: 1. nautilo-postgres container is running 2. nautilo database exists 3. NAUTILO_OWNER_ID matches a row in users 4. That user has a profile 5. Row counts for users / profiles / sessions / session_messages / memories 6. Server /health is 2xx (best-effort — server may not be running) READ-ONLY. Exit 1 if any check fails.electron_collect_panel_diagnosticsCollect a compact D242 right-panel diagnostic snapshot from Electron. Returns: - current URL/title - whether the visible UI still contains "Loading profile" - right-side panel text when it can be approximated from the DOM - recent structured [d242][profile] and [d242][react-scan] console lines - resource timings for profile/auth/health/ws requests visible to the renderer Typical flow: 1. electron_enable_panel_diagnostics({ clearLogs: true }) 2. Reproduce or wait for the panel load 3. electron_collect_panel_diagnostics({ last: 120 }) This tool does not decide the fix; it packages the evidence an agent needs to separate React render cost from profile JSON, avatar fetch/blob, and WS churn.| Parameter | Type | Description |
|---|---|---|
| includeAllLogs | boolean | Include non-D242 logs too (default false) |
| last | number | Recent console lines to inspect (default 120) |
| port | number | CDP port (default 9222) |
electron_console_logsRead console logs from the Nautilo Electron renderer. IMPORTANT — HOW LOG COLLECTION WORKS: - Logs are ACCUMULATED in a persistent buffer from the moment the MCP server connected to the app. NOT a time-windowed capture. - Logs captured before the MCP server connected are NOT available (they're lost CDP events). Console messages that appeared during the very first page load may be missing. - Buffer holds up to 2000 entries (oldest dropped first). Bumped from 500 by D082 PR C after real sessions were dropping events inside ~2 minutes of voice + tool activity. - Levels captured: log, warn, error, info, debug, exception. TYPICAL DEBUGGING FLOW: 1. electron_console_logs({ clear: true }) — reset buffer before an action 2. Trigger the action (in the UI, OR via electron_eval) 3. electron_console_logs({ last: 50 }) — see what was logged TO CAPTURE LOGS FROM PAGE LOAD: Logs emitted DURING the initial page load (e.g. WebSocket connection errors that fire synchronously on module init) may not all be captured even without clearing. If you need them, install a patch via electron_eval BEFORE the event: (() => { const o = console.error; console.error = (...a) => { o(...a); /* store */ }; })() Then trigger a reload with location.reload() and read logs. FILTERS: - last: N — most recent N entries only - level: 'error' — only errors (or 'warn', 'log', 'exception', etc) - clear: true — reset buffer after reading| Parameter | Type | Description |
|---|---|---|
| clear | boolean | Clear the log buffer after reading (default: false) |
| last | number | Return only the last N entries (default: all) |
| level | string | Filter: log, warn, error, info, debug, exception |
| port | number | CDP port (default 9222) |
electron_enable_panel_diagnosticsEnable Nautilo Workbench panel diagnostics in the Electron renderer. This is a convenience wrapper around electron_eval for D242-style React/profile debugging. It appends query flags to the current Workbench URL and reloads: - panelDiagnostics=1 — enables structured [d242][profile] timing logs - reactScan=1 — enables the optional React Scan overlay when the loaded Workbench bundle includes the debug hook Use this before reproducing a slow right-side Agent panel load. Then call electron_collect_panel_diagnostics after the reload or interaction. Notes: - Requires an Electron window on the given CDP port. - React Scan only works when the Workbench build contains the debug hook and permits it (normally local Vite/dev sessions). - This tool clears the MCP console buffer by default so the follow-up trace is compact.| Parameter | Type | Description |
|---|---|---|
| clearLogs | boolean | Clear collected console logs before reload (default true) |
| port | number | CDP port (default 9222) |
| reactScan | boolean | Also set reactScan=1 (default true) |
| reload | boolean | Reload after changing query flags (default true) |
electron_evalEvaluate JavaScript in the Nautilo Electron renderer (workbench UI context). USAGE NOTES: - Top-level 'await' is NOT supported. Wrap async code in an IIFE: GOOD: (async () => { const r = await fetch('/api/health'); return r.status; })() BAD: await fetch('/api/health') // SyntaxError - Promises ARE auto-awaited (awaitPromise: true), so returning a promise works. - Max 10 seconds per call. Don't await long-running work (setTimeouts > 10s). - You CAN install persistent hooks (e.g. patching window.WebSocket, window.fetch) — they survive across eval calls BUT are wiped on page reload (location.reload()). - The renderer is the WORKBENCH (React SPA at http://localhost:3000 in dev). Not the Electron main process. Use window.nautiloDesktop for desktop bridge API. PROBING PATTERNS: - Store results in window.__probeName to accumulate data across eval calls. - console.log() output is captured by electron_console_logs. - window.WebSocket / window.fetch can be wrapped to trace network activity. - WebSocket connections created BEFORE your patch won't be intercepted — patch first, THEN trigger page reload OR force reconnection. RETURN VALUE: - Prefixed with [type] — 'string', 'number', 'boolean', 'object', 'undefined', 'error'. - Objects are JSON-serialized. If circular, use JSON.stringify(x) in the expression.| Parameter | Type | Description |
|---|---|---|
| expression * | string | JavaScript expression. Wrap async in IIFE. No top-level await. |
| port | number | CDP port (default 9222) |
electron_list_windowsList all Chrome DevTools Protocol targets (windows, tabs, service workers) in the running Electron app. Use this first if you're unsure whether the app is running, or to find a specific window's URL/title. Target types: - 'page' — a BrowserWindow (the workbench UI) - 'iframe' — nested frames - 'service_worker' — background workers (PWA-related) - 'shared_worker' — shared workers If no targets appear, the Electron app isn't running OR wasn't launched with --remote-debugging-port=9222. The 'dev' script in apps/desktop/package.json enables this flag by default.| Parameter | Type | Description |
|---|---|---|
| port | number | CDP port (default 9222) |
electron_screenshotCapture a screenshot of the Nautilo Electron renderer (the workbench UI). Uses Chromium DevTools Protocol Page.captureScreenshot via the same CDP port as electron_eval / electron_console_logs. The app must be running with --remote-debugging-port=9222 (`bun run desktop` sets this by default). OUTPUT MODES: - Default: writes a PNG to a file in the OS temp dir and returns the absolute path. The path is stable for the life of the MCP session; the caller can attach it to a reply or re-read it. Claude Code / Cursor can inline images from disk paths. - With explicit `path`: writes to that path. Directories created as needed. - With `returnBase64: true`: returns a base64 string directly (no disk write). Note this can exceed MCP response size limits for large screens. FORMATS: - png (default) — lossless, best for UI diff / pixel inspection - jpeg — smaller file, requires `quality` (1–100, default 80) - webp — good compression, mid-browser support SCOPE: - Default: viewport only (what's visible in the BrowserWindow right now) - `fullPage: true`: captures the entire scrollable document (long pages) - `clip`: { x, y, width, height, scale? } captures a specific region COMMON PATTERNS: - Verify visual state after a UI change (reload, tab switch, modal open) - Diff before/after an action — capture twice, pixel-compare externally - Debug "I don't see the button" — screenshot + inspect - Attach to bug reports TIMING: - ~200ms for a viewport PNG. 1–5s for full-page on heavy pages. 15s max. - NOT a smooth-animation tool. If you need to capture during an animation, use electron_eval to pause the animation first.| Parameter | Type | Description |
|---|---|---|
| clip | object | Capture a specific region instead of full viewport. |
| format | string | Default: png |
| fullPage | boolean | Capture entire scrollable document, not just viewport. Default: false. |
| path | string | Absolute or tilde-expanded output path. Default: OS temp dir with timestamped name. |
| port | number | CDP port (default 9222) |
| quality | number | JPEG/WebP quality 1-100. Ignored for PNG. Default: 80. |
| returnBase64 | boolean | Return image as base64 string instead of writing to disk. Default: false. |
nautilo_db_queryRun a read-only SQL query against the local Nautilo Postgres database. The query runs inside a READ ONLY transaction with a 5-second statement timeout. Any attempt to INSERT/UPDATE/DELETE/CREATE/DROP will raise an error from Postgres itself. Only single statements are allowed. USE FOR - Confirming data exists ("is there a session row for user X?") - Counting / aggregating recent activity - Inspecting job / message / artifact state during debugging - Validating migrations / seed behavior DO NOT USE FOR - Mutating data — use a migration or a server route instead - Production databases — this MCP refuses non-localhost connections unless NAUTILO_DB_ALLOW_REMOTE=1 is set (don't do that) OUTPUT - Formatted as a pipe-delimited text table (header row, divider, data) - Cell values are not truncated by default. Pass `maxCellChars` to cap each cell when you intentionally want compact output. - Returns up to `limit` rows (default 100, max 1000). If the query has more rows, the footer says so. EXAMPLE nautilo_db_query({ sql: "SELECT id, status FROM jobs ORDER BY created_at DESC", limit: 20 })| Parameter | Type | Description |
|---|---|---|
| limit | number | Max rows to return. Default ${DEFAULT_LIMIT}, max ${MAX_LIMIT}. |
| maxCellChars | number | Maximum characters per cell. Default ${DEFAULT_MAX_CELL_CHARS} means no per-cell truncation; max ${MAX_CELL_CHARS}. |
| sql * | string | A single SELECT-style SQL statement. No DDL/DML; read-only is enforced by Postgres. |
nautilo_db_schemaShow column definitions for a table (or all public tables if table omitted). Returns: table, column, data_type, is_nullable, default. Useful before writing a query to remember exact column names and types.| Parameter | Type | Description |
|---|---|---|
| table | string | Table name (public schema). If omitted, returns schema for all tables. |
nautilo_db_tablesList tables in the public schema of the Nautilo database. Returns table name, row count (approximate, from pg_class.reltuples), and size. Useful as a first step when exploring the schema.nautilo_server_logsRead the Nautilo server log (logs/nautilo-server.log). HOW LOG COLLECTION WORKS: - The server process writes to a FILE (not a ring buffer). The file grows indefinitely unless rotated or cleared; this MCP can tail it without missing anything — logs from BEFORE this MCP started are still visible, unlike electron_console_logs. - Levels recognized: 'info' (unmarked default), 'debug' ([DEBUG] tag), 'warn' ([WARN] tag), 'error' ([ERROR] tag). - D082 PR B threads a per-turn UUID through every log line via AsyncLocalStorage. Use `turnId` to reconstruct one user-turn's full flow in chronological order. TYPICAL DEBUGGING FLOW: 1. Run the action (chat message, approval reply, PIN verify, etc.) 2. nautilo_server_logs({ last: 50 }) # recent tail 3. nautilo_server_logs({ turnId: "abc-123" }) # one turn end-to-end 4. nautilo_server_logs({ grep: "approval" }) # approval-related lines FILTERS (combine freely; they AND together): - last: N — most recent N matching entries - since: "5m" | "<ISO>"— lines with timestamp at-or-after; accepts relative (s/m/h/d) or full ISO-8601 - grep: "<regex>" — regex match against the full line - turnId: "<uuid>" — convenience for `grep '\[turn=<uuid>\]'` - level: 'info' | 'warn' | 'error' | 'debug' - clear: true — archive the log to <path>.<ts>.archived AND truncate the live file (destructive; use for a clean-slate test). The READ happens first, then the archive, so the response still shows what was there. - path: "<abs>" — explicit log file path (overrides env vars) - instance: "<id>" — read ~/.nautilo-<id>/logs/nautilo-server.log LOG-PATH DISCOVERY (first existing file wins): 1. tool call `path` arg 2. tool call `instance` arg (`default`/`(default)` → ~/.nautilo) 3. $NAUTILO_SERVER_LOG_PATH env var 4. $NAUTILO_INSTANCE_ID env var 5. ~/.nautilo/logs/nautilo-server.log Explicit args (`path`, `instance`) WIN over the env var — pass instance: "default" to read ~/.nautilo/logs even when the MCP env points at a different (e.g. stale main-repo) log. If none resolve, returns a clear error. Typical setup: register this MCP in Cursor with env { "NAUTILO_SERVER_LOG_PATH": "/abs/path/to/nautilo-worktree-1/logs/nautilo-server.log" }. PAIRS WITH: - electron_console_logs — renderer-side log buffer (different tool) - electron_eval — run JS in the renderer for correlated probes| Parameter | Type | Description |
|---|---|---|
| clear | boolean | After reading, archive the log to <path>.<timestamp>.archived AND truncate the live file. |
| grep | string | Regex pattern. Matched against the full line (after any other filters). |
| instance | string | Named Nautilo instance id. Reads ~/.nautilo-<id>/logs/nautilo-server.log. |
| last | number | Return only the last N matching entries. |
| level | string | Filter by log level. 'info' = lines without an explicit level tag (the unmarked default). |
| path | string | Explicit log file path. Overrides env vars. Absolute; tilde (~) expanded. |
| since | string | ISO-8601 timestamp OR relative (5m, 2h, 30s, 1d). Filter: only entries at-or-after this time. |
| turnId | string | D082 PR B turnId. Shorthand for grep '[turn=<id>]' — reconstructs one user-turn's chronological flow. |
run_security_smokeExecute the Nautilo security smoke matrix in disposable VMs. Starts a run, polls until complete, returns a summarized report. Use pattern to narrow the matrix (glob match on test id, e.g. 'PATH-*' or 'SCAN-01').| Parameter | Type | Description |
|---|---|---|
| maxWaitMs | number | Max time to wait for the run to finish (ms). Default 15min. |
| pattern | string | Test ID glob. Defaults to all tests. |
smoke_list_testsList the security smoke test catalog. Optional layer / platform / pattern filters map to query-string args on the HTTP API.| Parameter | Type | Description |
|---|---|---|
| layer | string | |
| pattern | string | |
| platform | string |
smoke_reportFetch a past run's report by run_id. Use this when run_security_smoke returned before the run finished (exceeded maxWaitMs).| Parameter | Type | Description |
|---|---|---|
| run_id * | string |
smoke_restoreRestore the VM to a named snapshot (default: baseline). Typically a few seconds per platform.| Parameter | Type | Description |
|---|---|---|
| name | string |
smoke_snapshotTake a named VM snapshot on the given platform. Useful before starting a multi-test run you want to roll back to.| Parameter | Type | Description |
|---|---|---|
| name | string |
smoke_statusSummarize VM health for both platforms (Lima/Linux and Tart/macOS). Any unreachable platform is reported explicitly.Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by bun.lock and 5 more.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 1.1K words, fetched yesterday. The original in the repository is authoritative.
Read full README