unfour
Unfour MCP server exposes workspace-scoped tools over the local command bus for investigating and repairing backend issues across API, SSH, database, and Flow runbooks, with policy/confirmation and redaction safeguards.
Inspect workspaces, active workspace, variables, connections, system health, and activity.
API: list collections/requests/history; get redacted request detail; send saved or ad-hoc HTTP requests; create/update/delete requests and collections; manage environments and variables.
SSH: manage connections; run diagnostics and guarded commands; read/list/write/patch files; manage/run/cancel SSH tasks; inspect history and task logs; test connections and read host-key fingerprints.
Database: manage connections; list/describe tables; run read-only SQL, EXPLAIN, and guarded writes/DDL; export table structure/data; inspect query history; test connections.
Flow: list/get/save/delete Flow definitions; run/cancel Flows; list/get redacted run history.
Safety: environment/policy gating, confirmation handshakes for destructive or high-risk actions, secret/credential redaction, and OS credential-store references.
Limitations: it does not generate troubleshooting playbooks, correlate API/SSH/database evidence, detect root causes, or edit repository code.
Provides database integration for MySQL, allowing agents to list and describe tables, run read-only queries, execute EXPLAIN plans, and perform guarded writes against saved MySQL connections.
Provides database integration for PostgreSQL, allowing agents to list and describe tables, run read-only queries, execute EXPLAIN plans, and perform guarded writes against saved PostgreSQL connections.
Provides database integration for SQLite, allowing agents to list and describe tables, run read-only queries, and execute guarded writes against saved SQLite database files.
Unfour
A unified, local-first developer workspace for tracing backend failures from API requests through server logs and database state to verified fixes.
Unfour brings API testing, SSH, database tools, local Flow runbooks, and MCP-assisted troubleshooting into one desktop application.

Download
Download the latest stable release · Changelog
Windows x64 is the primary distribution. The NSIS
.exeinstaller is unsigned and may trigger SmartScreen or other operating-system security warnings.macOS offers
.dmginstallers for Apple Silicon (arm64) and Intel (x64). The installers are unsigned and unnotarized, so Gatekeeper may block them.Linux is Experimental and targets Ubuntu 22.04+. The x86_64 (x64) AppImage is the only published Linux package.
Verify downloaded installers with the release
SHA256SUMS.txtasset.
Related MCP server: Workspace MCP
What Is Unfour?
Unfour helps backend developers investigate failures that span an API, a server, and its database. Troubleshooting is Unfour's core product loop: reproduce an issue with an API request, inspect server logs over SSH, check database state, identify the cause, and make and verify a fix.
A unified, local-first workspace keeps requests, connections, local activity, and layout together throughout the investigation. API testing, SSH terminals, and database tools provide the capabilities for each step in that loop. Flow combines those capabilities into local runbooks for repeatable checks and tasks. Flow definitions are included in whole-Workspace import/export and the current Pro Cloud Sync client. Execution and run history stay on the device. Flow is a runbook for this workspace, not a general workflow platform.
MCP is an optional assisted layer: Codex and Cursor can use the local stdio MCP server to work with the same saved API, SSH, database, and Flow data as the desktop app. Its workspace-scoped tools run through the shared command bus, subject to MCP policy and high-risk action confirmation checks. MCP can save, run, cancel, and query Flows. It does not generate a troubleshooting playbook, correlate requests with logs and database state, or detect root causes. You author and start runbooks. Boundaries and confirmation are in the MCP overview.
Unfour is one application and one product. Its core desktop features are free and open source under Apache-2.0. An active Pro subscription unlocks Cloud Sync in the same application. Pro is an entitlement within Unfour, not a separate client, package, repository, or release.
The app is built with Tauri 2, React, TypeScript, and Rust. The frontend owns the workbench UI, while security-sensitive execution such as HTTP, SSH, database drivers, local storage, and credential references lives behind Rust capability crates and the command bus.
Troubleshooting Workflow
API error
↓
Inspect server logs over SSH
↓
Check related database state
↓
Identify the cause
↓
Repeat the request and verify the fixThe investigation stays in one workspace, while you remain in control of each request, SSH session, query, and verification step.
For Coding Agents
Codex or Cursor can use their own repository tools to inspect, change, and test code. Unfour complements those tools with controlled access to API behavior, SSH/server evidence, and database state through MCP, so the agent can help investigate the running backend and re-check it after a change.
Unfour does not edit the repository itself: the coding client owns code changes, while Unfour provides the runtime side of the investigation. You control the workspace, environment, risky actions, and final decision.
Modules
API Client - Compose and send HTTP requests, organize saved requests into collections and folders, resolve shared workspace variables, inspect response body/headers/cookies/timing, run saved pre-request and post-response scripts, review script tests and console output, keep redacted history, and import or export collections and environments.
SSH Terminal - Manage SSH connections and terminal sessions (split panes, search, clipboard context menu, persistent redacted command history and typing suggestions, host-key trust, redacted logs), browse and transfer remote files over SFTP on ordinary SSH connections, and automate multi-step SSH tasks (command, upload, download) from the Connections / Files / Tasks sidebar.
Database - Manage database connections, browse schemas, run SQL with confirmation-aware safety checks (including multi-statement Run All / Run Selected), preview and edit table rows, review query output, and export table structure as SQL and data as SQL, CSV, or JSON.
Flow - Compose saved API requests, SSH tasks, and Database queries into local runbooks with Condition branches and Wait Until checks. Author them on the Canvas and inspect step results and run history. Definitions travel with a whole-Workspace import or export and the current Pro Cloud Sync client. Only definitions sync; run history and actual runtime inputs/outputs remain local. Detailed manual acceptance is tracked separately. See Flow V1.
Workspace - Scope saved requests, shared environments/variables, connections, activity, tabs, and layout state to a local workspace, with title-bar active-environment switching. Export/import whole Workspace definitions, including Flow definitions, or create a password-encrypted local backup with optional saved credentials. Import previews create independent copies. See Workspace exchange and backups.
MCP integration for Codex and Cursor - Expose local stdio tools through the same command bus used by the desktop app. Codex and Cursor can use the same saved API, SSH, and database connections to reproduce issues, inspect logs and database state, and verify a fix. They can also save, run, cancel, and query local Flows under the same safety checks. MCP does not generate a troubleshooting playbook. See the MCP overview.
Encrypted backups are local files, separate from Pro Cloud Sync. A Workspace export includes Flow definitions and omits run history. The current client syncs Flow definitions with a 64 KiB payload limit, including input declarations and ordinary defaults, but excludes actual runtime inputs/outputs, history and credentials. Recognized sensitive/device-local material is rejected; arbitrary secrets in free text cannot be reliably detected. Keep secrets in runtime secret inputs or resource credential storage. Backups do not embed database or private-key files. Review free-form scripts and SQL before sharing or syncing.
Cloud Sync refreshes saved data in already-open modules and the workspace switcher after remote changes commit locally, while preserving drafts and execution state. SSH Tasks support reviewed reruns and previous-parameter recall, with shared English/Chinese feedback and retry for loading/refresh failures. Database MCP calls bind policy and execution to one workspace per call; guarded UPDATE/DELETE confirmation checks the parsed outer WHERE.
Screenshots
Captured in Unfour v0.14.0 on Windows using synthetic data in the Demo Lab.
App overview — API collection and the three baseline orders

API Client — order 1001 returned by the live Demo API

SSH Terminal — connected Lab session and SFTP sample files

This session uses the saved Lab root connection. It does not demonstrate ordinary-account SFTP permissions or transfer acceptance.
Database — read-only role querying the same three baseline orders

SSH Task — saved baseline check, completed with exit code 0

Flow — API health, SSH deployment, readiness, version, and database query

Local Development
Requirements:
Node.js and pnpm.
A stable Rust toolchain.
Tauri 2 prerequisites for your operating system.
Install and run:
pnpm install
pnpm tauri devpnpm install also installs Git hooks through lefthook. A commit formats staged
Rust files with cargo fmt and auto-fixes staged TypeScript with ESLint.
Skip once with LEFTHOOK=0 git commit.
Common commands:
pnpm tauri build # create local Stable-channel Tauri bundles
pnpm tauri build:test # create isolated Test-channel Tauri bundles
pnpm run build # build the desktop frontend only
pnpm run check # frontend build + Rust check + large-file check
pnpm run lint # ESLint
pnpm run test # frontend unit tests (Vitest)
pnpm run test:e2e # Playwright smoke tests
pnpm run check:rust # cargo check --workspace
pnpm run check:rust:ssh # cargo check with the ssh-native feature
pnpm run test:rust # cargo test --workspace
pnpm run test:release-env # release/channel contract unit testsRun commands from the repository root unless a package document says otherwise.
pnpm tauri dev defaults to the Test release channel, while local
pnpm tauri build defaults to Stable. Use pnpm tauri build:test for an
isolated Test-channel bundle. Set UNFOUR_STORAGE_PROFILE=dev when development
data should use ~/.unfour-dev; this storage override is independent from
release identity. Only CI should create formal publishable Stable artifacts,
with UNFOUR_RELEASE_CHANNEL=stable and an exact UNFOUR_BUILD_COMMIT.
Project Layout
Path | Role |
| Tauri/Vite desktop app entry and Tauri adapter layer. |
| Global shell composition and module mount slots. |
| API Client frontend module. |
| SSH Terminal frontend module. |
| Database frontend module. |
| Local Flow runbook editor, Canvas, and run history. |
| Shared frontend workspace state. |
| Workspace environments and variables management UI. |
| Local workspace lifecycle and whole-Workspace import/export UI. |
| Shared UI primitives and stateless layout helpers. |
| Typed Tauri command wrappers and frontend command types. |
| Rust backend capability crates and adapters. |
See docs/architecture/project-structure.md for the full package and crate
map.
Documentation
Read the document that owns the question. The README stays usable on its own; the links below are the detailed sources.
Question | Document |
How do I use the app? | |
What can MCP do, and what must be confirmed? | |
How do I connect Codex or Cursor? | |
What does a tool accept and return? | |
How do I build the MCP server? | |
What shipped, and what is only planned? | |
Where are the release notes? | |
How are releases verified? | |
How is the repository split? | |
How are secrets and local data stored? | |
How do Flow and Workspace exchange work? |
AGENTS.md and docs/agents/START_HERE.md are for coding agents working in
this repository. docs/architecture/diagnostics.md covers local logs and
diagnostic bundles.
Contributing
Please read CONTRIBUTING.md, CODE_OF_CONDUCT.md, and the package boundary
rules in AGENTS.md before opening a pull request.
Security issues should be reported through SECURITY.md, not a public issue.
Support Unfour
If Unfour is useful to you, you can support its continued open-source development through GitHub Sponsors.
Sponsorship is optional and does not include Unfour Pro or paid cloud services.
Why Unfour?
The name “Unfour” is partly inspired by the Chinese idea of 四不像 — something that doesn’t quite fit into any single category.
Unfour isn’t just an API client, an SSH tool, a database client, or an agent workspace. It brings those usually separate capabilities together, so the name carries a bit of self-deprecating humor: it’s not quite any one of them, but has a little of each.
In traditional Chinese mythology, 四不像 is also associated with an auspicious mythical creature. That gave the name another meaning for me — a small hope that Unfour can grow into something a little unusual, but genuinely useful and built to last.
License
Licensed under the Apache License 2.0.
Available Tools
88 toolsunfour.activity.listList Workspace ActivityARead-onlyIdempotent
Lists recent workspace activity events (workspace, connection, API, database, and SSH changes) through the Unfour command bus, newest first. Sensitive fields in event details are masked. Useful for diagnosing what changed before a failure started.
Inputs: limit, workspaceId. Returns: count, source, activity
unfour.api.create_collectionCreate API CollectionA
Creates an API collection in local Unfour metadata through the command bus. Dev/test allow it; prod blocks by workspace policy. Returns the new collection id and summary.
Inputs: name (required), workspaceId. Returns: object
unfour.api.create_environmentCreate API EnvironmentA
Creates an empty API environment in local Unfour metadata through the command bus. Dev/test allow it; prod blocks by workspace policy.
Inputs: name (required), workspaceId. Returns: object
unfour.api.create_folderunfour.api.create_folderA
Creates a folder in a saved API collection. Parent must belong to that collection; null means root.
Inputs: name (required), collectionId (required), parentFolderId (required), workspaceId. Returns: folder
unfour.api.create_requestCreate API RequestA
Creates a saved API request record in the workspace through the Unfour command bus. This mutates local Unfour metadata only; it does not send traffic. Dev/test allow it by default, while prod blocks by workspace policy. Returns the new request id and a redacted summary.
Inputs: url (required), name (required), method (required), auth, +9 more. Returns: object
unfour.api.delete_collectionDelete API CollectionADestructive
Soft-deletes an API collection and cascades soft-deletion to its folders and requests through the command bus. Dev/test require a content-bound confirmation_text; prod blocks by policy.
Inputs: collectionId (required), confirm, workspaceId, confirmationText, +1 more. Returns: object
unfour.api.delete_environmentDelete API EnvironmentADestructive
Soft-deletes an API environment through the command bus. Guarded policy requires a content-bound confirmation_text; read-only policy blocks deletion.
Inputs: environmentId (required), confirm, workspaceId, confirmationText, +1 more. Returns: object
unfour.api.delete_environment_variableDelete API Environment VariableADestructive
Deletes one API environment variable by environmentId and key through the command bus. Guarded policy requires confirmation; read-only policy blocks deletion.
Inputs: key (required), environmentId (required), confirm, workspaceId, +2 more. Returns: key, source, deleted, environmentId
unfour.api.delete_folderunfour.api.delete_folderBDestructive
Recursively soft-deletes a folder, descendant folders and their saved requests. Guarded policy requires confirmation bound to the current subtree and request revisions.
Inputs: folderId (required), confirm, workspaceId, confirmationText, +1 more. Returns: deleted, folderId
unfour.api.delete_requestDelete API RequestADestructive
Soft-deletes a saved API request through the Unfour command bus. Dev/test require a content-bound confirmation_text before deletion; prod blocks by policy. Returns the remaining request count and confirms softDelete=true.
Inputs: requestId (required), confirm, workspaceId, confirmationText, +1 more. Returns: object
unfour.api.duplicate_requestunfour.api.duplicate_requestA
Duplicates the original saved request in its current collection/folder through CommandBus, preserving authentication, scripts and untruncated content. Does not send traffic or return secrets.
Inputs: requestId (required), workspaceId. Returns: request
unfour.api.get_historyGet API Request History DetailARead-onlyIdempotent
Returns a sanitized API history snapshot through the Unfour command bus. Sensitive headers, query parameters, and body fields are masked. This is not a replayable template: original Auth, scripts and variable references are unavailable. To rerun a template, use its saved requestId with the intended environmentId; never resend mask placeholders.
Inputs: historyId (required), workspaceId. Returns: source, history
unfour.api.get_requestGet API Request DetailARead-onlyIdempotent
Returns a saved API request with sensitive headers, query parameters, body fields, and URL parameters redacted through the Unfour command bus.
Inputs: requestId (required), includeBody. Returns: source, request
unfour.api.list_collectionsList API CollectionsARead-onlyIdempotent
Lists API request collections for the active workspace through the Unfour command bus.
Inputs: workspaceId. Returns: count, source, collections
unfour.api.list_environmentsList API EnvironmentsARead-onlyIdempotent
Lists API environments and their variables for the active workspace through the Unfour command bus. Sensitive variable values are masked; non-sensitive values (e.g. base URLs) are shown so requests using variables can be understood.
Inputs: workspaceId. Returns: count, source, environments
unfour.api.list_foldersunfour.api.list_foldersARead-onlyIdempotent
Lists API folder metadata and parent IDs in the selected workspace, optionally restricted to a collection.
Inputs: workspaceId, collectionId. Returns: folders
unfour.api.list_historyList API Request HistoryARead-onlyIdempotent
Lists recent API request/response history for the active workspace through the Unfour command bus. Sensitive URL parameters are masked. Useful for diagnosing when a request started failing.
Inputs: limit, workspaceId. Returns: count, source, history
unfour.api.list_requestsList API RequestsARead-onlyIdempotent
Lists saved API requests for the active workspace through the Unfour command bus. Sensitive URL parameters are redacted.
Inputs: workspaceId, collectionId. Returns: count, source, requests
unfour.api.move_folderunfour.api.move_folderA
Moves a folder within its collection, including to root with parentFolderId=null. Cycles and foreign workspace/collection targets are rejected.
Inputs: folderId (required), parentFolderId (required), workspaceId. Returns: folder
unfour.api.move_requestunfour.api.move_requestA
Moves a saved request to a collection/folder in the same workspace. Explicit parentFolderId=null moves it to the collection root. Preserves its body, authentication and scripts without returning them.
Inputs: requestId (required), collectionId (required), parentFolderId (required), workspaceId. Returns: request
unfour.api.rename_folderunfour.api.rename_folderA
Renames a folder. expectedUpdatedAt from list_folders prevents overwriting a concurrent edit.
Inputs: name (required), folderId (required), expectedUpdatedAt (required), workspaceId. Returns: folder
unfour.api.reorder_foldersunfour.api.reorder_foldersB
Reorders sibling folders in one collection and parent. Supply their IDs in the desired order; no requests are executed.
Inputs: folderIds (required), collectionId (required), parentFolderId (required), workspaceId. Returns: folders
unfour.api.send_requestSend API RequestA
Sends either a saved API request by requestId or one ad-hoc request described by method/url/headers/query/body through the Unfour command bus. Use it to reproduce API failures during agent troubleshooting. Dev allows all HTTP methods; test allows sends but marks mutating methods as write risk; prod only allows GET/HEAD/OPTIONS. Non-2xx HTTP responses return structured status/body data rather than MCP tool failure. Sensitive headers, cookies, URL tokens, and JSON body fields are masked.
Inputs: url, body, name, query, +7 more. Returns: ok, error, source, status, +8 more
unfour.api.set_environment_variableSet API Environment VariableA
Creates or updates one API environment variable by environmentId and key through the command bus. Empty values are allowed. Omitted isSecret/description preserve existing metadata, and returned secrets are masked.
Inputs: key (required), value (required), environmentId (required), enabled, +3 more. Returns: source, created, variable
unfour.api.update_collectionUpdate API CollectionA
Renames an API collection in local Unfour metadata through the command bus. Dev/test allow it; prod blocks by workspace policy.
Inputs: name (required), collectionId (required), workspaceId. Returns: object
unfour.api.update_environmentUpdate API EnvironmentA
Updates an API environment name and variables through the command bus. Sensitive variable values are masked in the result. Dev/test allow it; prod blocks by workspace policy.
Inputs: name (required), variables (required), environmentId (required), workspaceId. Returns: object
unfour.api.update_requestUpdate API RequestA
Updates a saved API request record through the Unfour command bus. Omitted fields keep their existing values. This mutates local metadata only; dev/test allow it, prod blocks or requires future explicit policy. Returns the updated redacted request summary.
Inputs: requestId (required), url, auth, body, +10 more. Returns: object
unfour.connection.listList Unfour ConnectionsBRead-onlyIdempotent
Lists safe connection summaries for the active workspace through the Unfour command bus.
Inputs: type. Returns: count, source, connections
unfour.db.create_connectionCreate Database ConnectionA
Creates a saved database connection through the Unfour command bus. Optional password input is stored in the OS credential store and only a credential reference is persisted; the tool never returns the password or credential reference.
Inputs: name (required), driver (required), host, port, +9 more. Returns: object
unfour.db.delete_connectionDelete Database ConnectionADestructive
Soft-deletes a saved connection through CommandBus. Guarded policy requires confirmation bound to workspace, connection and revision; read-only policy rejects deletion.
Inputs: connectionId (required), confirm, workspaceId, confirmation_text. Returns: source, deleted, workspaceId, connectionId
unfour.db.delete_saved_sqlunfour.db.delete_saved_sqlADestructive
Deletes a saved SQL snippet, never database tables or rows. Requires expectedRevision; guarded policy requires content-bound confirmation. Concurrent changes are rejected atomically.
Inputs: savedSqlId (required), expectedRevision (required), confirm, workspaceId, +2 more. Returns: deleted, savedSqlId
unfour.db.describe_tableDescribe Database TableARead-onlyIdempotent
Describes a table's columns, available indexes, foreign keys and DDL, with runtime metadata capabilities, through the Unfour command bus. Does not read table data.
Inputs: tableName (required), connectionId (required), schema, catalog, +1 more. Returns: table, source, connectionId
unfour.db.executeExecute Database SQLB
Executes one SQL statement against a saved database connection through the Unfour command bus. Use for INSERT/UPDATE/DELETE/DDL when an agent needs to repair dev/test data. Dev allows non-high-risk writes by default; test allows small writes but high-risk SQL requires confirm; prod blocks writes. DELETE/UPDATE without WHERE, DROP, TRUNCATE, ALTER, and multi-row destructive statements require a second call with the returned confirmation_text. Returns affectedRows, statementType, durationMs, and engine safety metadata.
Inputs: sql (required), connectionId (required), limit, dryRun, +8 more. Returns: ok, rows, dryRun, safety, +10 more
unfour.db.explainExplain Database QueryARead-onlyIdempotent
Runs EXPLAIN for a read query against a saved database connection through the Unfour command bus. Use before optimizing slow SELECT/WITH queries. This is read-only in dev/test/prod; it returns structured columns/rows, durationMs, and truncation metadata.
Inputs: sql (required), connectionId (required), limit, schema, +3 more. Returns: ok, sql, rows, source, +5 more
unfour.db.export_tableExport Database TableA
Exports one table to a file in Unfour's managed exports directory. Optional columns, structured filters, and limit apply to the data portion. Data exports without limit require content-bound confirmation; omitted limit still means all matching rows. Returns file metadata; no destination path is accepted.
Inputs: format (required), content (required), tableName (required), connectionId (required), +9 more. Returns: path, format, rowCount, bytesWritten
unfour.db.get_saved_sqlunfour.db.get_saved_sqlBRead-onlyIdempotent
Reads a saved SQL diagnostic projection. Literals and sensitive constructs are masked; sqlRedacted indicates changes or truncation. Never execute or save the masked projection as original SQL.
Inputs: savedSqlId (required), workspaceId. Returns: savedSql
unfour.db.list_catalogsunfour.db.list_catalogsARead-onlyIdempotent
Lists catalogs for a saved database connection through CommandBus. The connection must belong to the selected workspace; accepts no ad-hoc credentials.
Inputs: connectionId (required), workspaceId. Returns: catalogs, connectionId
unfour.db.list_connectionsList Database ConnectionsARead-onlyIdempotent
Lists saved database connections for the active workspace through the Unfour command bus. Returns safe summaries without passwords, tokens, or connection strings.
Inputs: workspaceId. Returns: count, source, connections
unfour.db.list_historyList Database Query HistoryARead-onlyIdempotent
Lists workspace-scoped query history (default 50, maximum 200). SQL literals and quoted tokens are masked; statements with comments, dollar quoting or sensitive markers are withheld. Returns execution summaries, never raw errors or result rows.
Inputs: limit, workspaceId. Returns: count, source, history, workspaceId
unfour.db.list_saved_sqlunfour.db.list_saved_sqlARead-onlyIdempotent
Lists saved SQL metadata in the selected workspace without executing or returning SQL.
Inputs: workspaceId. Returns: savedSql
unfour.db.list_tablesList Database TablesARead-onlyIdempotent
Lists tables and views for a saved database connection through the Unfour command bus. Optional catalog and schema scope the listing. Requires a saved connectionId; does not accept ad-hoc connection strings.
Inputs: connectionId (required), limit, schema, catalog, +1 more. Returns: count, source, tables, truncated, +2 more
unfour.db.query_readonlyExecute Read-Only SQL QueryARead-onlyIdempotent
Executes a read-only SQL query against a saved database connection through the Unfour command bus. Only SELECT, WITH, SHOW, DESCRIBE, DESC, and EXPLAIN statements are allowed. Write operations, DDL, and multi-statement queries are rejected. Optional catalog, schema, and timeoutMs match unfour.db.execute and unfour.db.explain.
Inputs: sql (required), connectionId (required), limit, schema, +3 more. Returns: ok, rows, source, columns, +4 more
unfour.db.save_saved_sqlunfour.db.save_saved_sqlA
Creates or updates saved SQL metadata; never executes SQL. Creation requires name and sql. Updates require savedSqlId and expectedRevision; omitted fields preserve originals, including SQL. Null clears optional context, subject to the engine's default catalog inference. Returned metadata never contains SQL.
Inputs: sql, name, schema, catalog, +4 more. Returns: savedSql
unfour.db.test_connectionTest Database ConnectionARead-onlyIdempotent
Tests connectivity to a saved database connection through the Unfour command bus. Returns whether the connection succeeded and the server version when available.
Inputs: connectionId (required), workspaceId. Returns: ok, source, message, connectionId, +1 more
unfour.db.update_connectionUpdate Database ConnectionA
Updates saved connection metadata through CommandBus. The ID must exist in the selected workspace. Omitted fields and stored credentials are preserved. Secret rotation is not exposed; the result contains only connectionId, workspaceId and source.
Inputs: connectionId (required), host, name, port, +7 more. Returns: source, workspaceId, connectionId
unfour.flow.cancel_rununfour.flow.cancel_runA
Request cancellation of a running Flow; remote effects are not rolled back.
Inputs: runId (required), workspaceId. Returns: run
unfour.flow.deleteunfour.flow.deleteADestructive
Soft-delete a saved Flow definition at expectedRevision while retaining local run history. Guarded workspaces require confirmation bound to that revision.
Inputs: flowId (required), expectedRevision (required), confirm, workspaceId, +2 more. Returns: flowId, deleted
unfour.flow.getunfour.flow.getCRead-onlyIdempotent
Read a saved Flow definition for use in Desktop Canvas or MCP.
Inputs: flowId (required), workspaceId. Returns: flow
unfour.flow.get_rununfour.flow.get_runCRead-onlyIdempotent
Read the complete redacted Flow run history shared with Desktop.
Inputs: runId (required), workspaceId. Returns: run
unfour.flow.listunfour.flow.listARead-onlyIdempotent
List saved Flow summaries; use get for the complete definition.
Inputs: workspaceId. Returns: flows
unfour.flow.list_runsunfour.flow.list_runsBRead-onlyIdempotent
Read lightweight FlowRunSummary history without loading run details.
Inputs: flowId (required), limit, cursor, workspaceId. Returns: runs, nextCursor
unfour.flow.rununfour.flow.runB
Start a Flow with initiator=mcp. Requires payload-bound confirmation even with full_access. Read-only/disabled policy blocks execution. Cancellation does not undo effects.
Inputs: flowId (required), inputs, confirm, workspaceId, +4 more. Returns: run
unfour.flow.saveunfour.flow.saveA
Save a FlowDefinition using existing validation and revision checks. Empty id creates; updates require the current revision.
Inputs: definition (required), workspaceId. Returns: flow
unfour.redis.check_keyunfour.redis.check_keyARead-onlyIdempotent
Check one exact UTF-8 Redis key in a saved connection. Optionally check a hash field or compare the complete string/field against equals. Returns metadata and the comparison outcome.
Inputs: key (required), connectionId (required), field, equals, +1 more. Returns: exists, pttlMs, keyType, matched
unfour.ssh.cancel_task_runCancel SSH Task RunB
Cancels an active SSH task run through the command bus.
Inputs: runId (required), workspaceId. Returns: object
unfour.ssh.clear_task_runsClear SSH Task RunsBDestructive
Deletes saved SSH task run records and local log files for one task or the workspace. Guarded policy requires content-bound confirmation.
Inputs: taskId, confirm, workspaceId, confirmationText, +1 more. Returns: source, warnings, deletedLogs, deletedRuns
unfour.ssh.create_connectionCreate SSH ConnectionA
Creates a saved SSH connection through the Unfour command bus. Optional secret input is stored in the OS credential store by the SSH engine and only a credential reference is persisted; the tool never returns the secret or credential reference.
Inputs: host (required), name (required), authKind (required), username (required), +5 more. Returns: object
unfour.ssh.delete_connectionDelete SSH ConnectionBDestructive
Soft-deletes a saved connection through CommandBus. Guarded policy requires confirmation bound to workspace, connection and revision; read-only policy rejects deletion.
Inputs: connectionId (required), confirm, workspaceId, confirmation_text. Returns: source, deleted, workspaceId, connectionId
unfour.ssh.delete_taskDelete SSH TaskBDestructive
Soft-deletes a saved SSH task. Guarded policy requires content-bound confirmation.
Inputs: taskId (required), confirm, workspaceId, confirmationText, +1 more. Returns: object
unfour.ssh.duplicate_taskDuplicate SSH TaskB
Duplicates a saved SSH task and its steps through the command bus.
Inputs: taskId (required), workspaceId. Returns: object
unfour.ssh.execExecute SSH CommandA
Executes one non-interactive SSH command on a saved connection. Use for dev/test repair loops after diagnostics identify a fix. Dev allows ordinary commands; test allows safe diagnostics and guarded commands; prod only allows read-only diagnostic commands. High-risk commands such as rm -rf, restart/shutdown, kill, docker/kubectl delete, and curl-pipe-shell require confirm with the returned confirmation_text.
Inputs: command (required), connectionId (required), cwd, env, +5 more. Returns: warnings
unfour.ssh.get_host_keyGet SSH Host FingerprintARead-onlyIdempotent
Reads only the stored host fingerprint for a saved connection in the selected workspace. Returns known and a nullable fingerprint without contacting the host, changing trust, or exposing raw known_hosts.
Inputs: connectionId (required), workspaceId. Returns: known, source, fingerprint, workspaceId, +1 more
unfour.ssh.get_taskGet SSH TaskARead-onlyIdempotent
Returns one SSH task with steps and local connection binding. Sensitive fields inside step configuration are masked.
Inputs: taskId (required), workspaceId. Returns: object
unfour.ssh.list_connectionsList SSH ConnectionsARead-onlyIdempotent
Lists saved SSH connections for a workspace through the Unfour command bus. Returns connection id, name, host, port, username, and environment; never returns passwords, private keys, passphrases, or credential references.
Inputs: workspaceId. Returns: object
unfour.ssh.list_dirList SSH DirectoryBRead-onlyIdempotent
Lists a bounded remote directory through SSH and returns structured entry summaries when the remote find utility is available. Safe in dev/test/prod.
Inputs: path (required), connectionId (required), limit, timeoutMs, +1 more. Returns: warnings
unfour.ssh.list_historyList SSH Command HistoryARead-onlyIdempotent
Lists structured SSH command history for the current MCP workspace. Returns connection, command, executedAt, and cwd/exitCode/durationMs when recorded. Results are workspace-scoped and never include terminal buffers or full session logs. Sensitive commands are excluded or replaced with [redacted command]. Use this to inspect recent host activity, then draft a reusable SSH Task for the user to confirm. Do not call unfour.ssh.save_task unless the user explicitly asks to save the draft.
Inputs: limit, query, since, until, +2 more. Returns: count, source, history, workspaceId
unfour.ssh.list_task_runsList SSH Task RunsARead-onlyIdempotent
Lists saved run summaries for one SSH task without exposing local log paths.
Inputs: taskId (required), workspaceId. Returns: object
unfour.ssh.list_tasksList SSH TasksBRead-onlyIdempotent
Lists saved SSH task summaries for a workspace.
Inputs: workspaceId. Returns: object
unfour.ssh.patch_filePatch SSH FileA
Applies a search/replace patch through SSH stdin using Python 3 (4 MiB combined UTF-8 search/replace; 16 MiB target and result limit) and returns a diff summary without file content. Dev allows single-match project-file patches; test, system paths, or multi-match replacements require confirmation; prod is blocked by policy.
Inputs: path (required), search (required), replace (required), connectionId (required), +5 more. Returns: warnings
unfour.ssh.read_fileRead SSH FileBRead-onlyIdempotent
Reads a bounded remote file slice or tail through SSH. Useful for logs and config inspection. Dev/test/prod allow ordinary reads; output is capped and line-redacted by the SSH engine. Sensitive paths may still be blocked by connection or OS permissions.
Inputs: path (required), connectionId (required), limit, offset, +3 more. Returns: warnings
unfour.ssh.read_task_run_logRead SSH Task Run LogARead-onlyIdempotent
Reads a capped SSH task run log. The SSH engine redacts configured secret inputs and the MCP response omits the local log path.
Inputs: runId (required), workspaceId. Returns: object
unfour.ssh.reorder_tasksReorder SSH TasksA
Reorders all active SSH tasks in a workspace. taskIds must contain the exact active task set.
Inputs: taskIds (required), workspaceId. Returns: object
unfour.ssh.run_diagnosticRun SSH Diagnostic CommandARead-onlyIdempotent
Runs a single read-only diagnostic command on a saved SSH connection through the Unfour command bus and returns captured stdout/stderr. Safe in dev/test/prod for allowlisted diagnostics. For broader command execution use unfour.ssh.exec, which applies environment policy and high-risk confirmation.
Inputs: command (required), connectionId (required), timeoutMs, workspaceId. Returns: warnings
unfour.ssh.run_taskRun SSH TaskA
Starts a saved SSH task on its selected saved connection. Production/read-only policy blocks execution; guarded policy requires content-bound confirmation because a task may execute commands or transfer files.
Inputs: taskId (required), inputs, confirm, workspaceId, +4 more. Returns: object
unfour.ssh.save_taskSave SSH TaskA
Creates or updates a saved SSH task through the command bus. On update, omitted description and defaultConnectionId keep their current values; pass null for defaultConnectionId to clear it. Step types and configuration are validated by the SSH engine.
Inputs: name (required), steps (required), taskId, description, +2 more. Returns: object
unfour.ssh.test_connectionTest SSH ConnectionA
Tests a saved SSH connection using the existing CommandBus connection test and host-key checks. Requires native SSH. Returns only success status and a safe generic message, never credentials or raw engine error text.
Inputs: connectionId (required), workspaceId. Returns: ok, source, message, workspaceId, +1 more
unfour.ssh.update_connectionUpdate SSH ConnectionA
Updates saved connection metadata through CommandBus. The ID must exist in the selected workspace. Omitted fields and stored credentials are preserved. Secret rotation is not exposed; the result contains only connectionId, workspaceId and source.
Inputs: connectionId (required), host, name, port, +4 more. Returns: source, workspaceId, connectionId
unfour.ssh.write_fileWrite SSH FileA
Writes or appends a remote file through SFTP. Content is limited to 4 MiB of UTF-8 bytes; no terminal session or remote Python is needed. Overwriting an existing file requires SFTP posix-rename@openssh.com v1; unsupported servers leave the original untouched. Failed or timed-out appends may be partial; inspect before retrying. Dev allows ordinary project paths; test and high-risk paths require confirmation; prod is blocked by policy. The returned result contains only path/mode/byte counts and command status, never file content.
Inputs: path (required), content (required), connectionId (required), mode, +5 more. Returns: warnings
unfour.system.healthUnfour System HealthARead-onlyIdempotent
Returns command-bus and storage readiness for diagnostics through the Unfour command bus.
Inputs: no named parameters. Returns: source, appName, storageReady, commandBusReady
unfour.workspace.createunfour.workspace.createA
Creates a local workspace without activating it. Requires the current workspace to allow MCP writes. Inherits its environment and MCP policy; no policy override, cloud binding, or resource copying is accepted.
Inputs: name (required). Returns: workspace
unfour.workspace.create_variableCreate Workspace VariableC
Creates one workspace-global variable through the command bus. Returned values are masked when secret or sensitive.
Inputs: key (required), value (required), isSecret, isEnabled, +3 more. Returns: object
unfour.workspace.currentCurrent Unfour workspaceARead-onlyIdempotent
Returns the active local workspace through the Unfour command bus.
Inputs: no named parameters. Returns: mode, source, mcpPolicy, workspaceId, +3 more
unfour.workspace.delete_variableDelete Workspace VariableADestructive
Soft-deletes one workspace-global variable. Guarded policy requires the content-bound confirmation handshake.
Inputs: variableId (required), confirm, workspaceId, confirmationText, +1 more. Returns: object
unfour.workspace.listList Unfour workspacesARead-onlyIdempotent
Lists all local workspaces through the Unfour command bus, marking which one is active.
Inputs: no named parameters. Returns: count, source, workspaces, activeWorkspaceId
unfour.workspace.list_variablesList Workspace VariablesARead-onlyIdempotent
Lists workspace-global variables through the command bus. Secret variables and sensitive keys are masked before returning to the MCP client.
Inputs: workspaceId. Returns: object
unfour.workspace.renameunfour.workspace.renameA
Renames the explicitly selected workspace through CommandBus. Supply expectedName from workspace.list to prevent overwriting a concurrent rename. Does not change environment, policy or active workspace.
Inputs: name (required), workspaceId (required), expectedName (required). Returns: workspace
unfour.workspace.replace_variablesReplace Workspace VariablesA
Replaces the complete workspace-global variable set through the command bus. Omitted existing variables are soft-deleted. For items that include an existing id, omitted optional fields keep their current values. Returned values are masked when secret or sensitive.
Inputs: variables (required), workspaceId. Returns: object
unfour.workspace.update_variableUpdate Workspace VariableA
Updates one workspace-global variable through the command bus. Omitted optional fields keep their current values. Returned values are masked when secret or sensitive.
Inputs: key (required), value (required), variableId (required), isSecret, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 88 tools
Tools are grouped by domain and mostly have clearly distinct resource/action scopes, such as SSH exec vs. run_diagnostic vs. run_task. A few pairs require reading descriptions to distinguish, especially read-only query vs. execute vs. explain, and saved-task vs. ad-hoc execution paths.
Names consistently follow a namespaced snake_case pattern: unfour.<domain>.<verb>_<noun>. Despite the large surface, the convention is predictable across SSH, API, DB, flow, workspace, and system tools.
With 88 tools, the server is far beyond a well-scoped MCP surface and creates excessive cognitive load. Even across multiple domains, this is an extreme tool count that would benefit from consolidation or splitting into separate servers.
The surface covers CRUD and lifecycle operations across workspaces, API collections/folders/requests/environments, database connections/queries/saved SQL, SSH connections/tasks/execution/logs, flows, activity, and health. Obvious operational gaps are minimal for the apparent domain.
Maintenance
Related MCP Connectors
A full backend your AI coding agent can set up over MCP
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Agent-native backend: Postgres, auth, storage, functions, hosting and deploy, over MCP
Related MCP Servers
- AlicenseBqualityDmaintenanceProduction-grade MCP server that gives AI agents safe access to your local dev environment: filesystem, databases, processes, and OpenAPI specs.1555 npm4MIT
- FlicenseNot gradedqualityDmaintenanceSecure local development platform that exposes controlled developer capabilities (FS, Git, search, command execution) to AI assistants via MCP with deny-by-default security and audit logging.-
- AlicenseNot gradedqualityCmaintenanceLocal-first MCP server that provides project context, verification gates, and structured tools for coding agents to discover knowledge, run diagnostics, and execute allowlisted commands within a repository.MIT
- AlicenseCqualityBmaintenanceLocal-first MCP runtime for coding agents with bounded workspace access, content-preconditioned writes, AST search, LSP navigation and diagnostics, and Git status/diff. Designed to give coding agents useful repository access without treating unrestricted shell access as the default integration boundary.133MIT