Skip to main content
Glama

English · 简体中文

Unfour

一个面向后端开发者的本地优先桌面工作区,集成了 API 调试、SSH 终端和数据库管理——并通过本地 MCP 服务器将这些能力暴露给你的 AI 代理。

License CI Release Built with Tauri

Unfour overview

使用 Codex 与 GPT-5.6 构建

Codex 被用于审查 Rust 和 TypeScript 架构、实现和重构 Tauri 命令、添加测试,以及调查构建失败和 MCP 进程生命周期问题。

GPT-5.6 帮助设计了 AI 辅助的后端故障排查工作流,分析了 SSH 和数据库的权限边界,完善了 MCP 工具设计,并规划了项目架构和发布流程。

Codex 对 Unfour 而言也不仅仅是一个开发工具:通过 Unfour MCP 服务器,它可以使用 API、SSH 和数据库能力来复现 API 问题、检查服务日志、查询数据库、关联证据并定位根本原因。

敏感操作仍由开发者控制。工作区范围、凭据处理、主机信任、确认机制和工具权限限制了 Codex 可以访问和执行的内容;连接 Codex 默认不会授予无限制的访问权限。

[!WARNING] 源码树正在准备 Community Stable v0.5.0 版本。该版本未签名,仍需进行发布验证;安装程序可能触发 SmartScreen 或其他操作系统安全警告。

Related MCP server: Workspace MCP

下载

从 GitHub Releases 下载已发布的构建版本。最新的稳定版本是 v0.4.0;v0.5.0 将在发布后出现在那里。

  • Windows:NSIS .exe 安装程序。

  • macOS 和 Linux 包是实验性的,在记录真实设备冒烟检查之前未经验证;暂时不要将其视为受支持或已验证。

  • 使用发布附带的 SHA256SUMS.txt 资产验证下载的安装程序。

什么是 Unfour?

Unfour 是一个面向后端和运维工作的本地优先桌面工作区。它将 API 请求、SSH 连接、数据库连接、本地活动和工作区布局保存在一个本地优先的应用程序中,并通过本地 MCP 服务器将这些能力暴露给你的 AI 代理。这一基础支持跨这些工具的 AI 辅助故障排查工作流。

该应用使用 Tauri 2、React、TypeScript 和 Rust 构建。前端负责工作台 UI,而 HTTP、SSH、数据库驱动、本地存储和凭据引用等安全敏感的执行则位于 Rust 能力 crate 和命令总线之后。

模块

  • API Client - 编写并发送 HTTP 请求,将保存的请求组织到集合和文件夹中,解析共享的工作区变量,检查响应体/请求头/Cookie/计时,运行保存的请求前和响应后脚本,查看脚本测试和控制台输出,并保留脱敏历史记录。

  • SSH Terminal - 管理 SSH 连接和终端会话(分屏、搜索、剪贴板上下文菜单、持久的脱敏命令历史和输入建议、主机密钥信任、脱敏日志),通过 SFTP 浏览和传输远程文件,并从 Connections / Files / Tasks 侧边栏自动化多步骤 SSH 任务(命令、上传、下载)。

  • Database - 管理数据库连接,浏览模式,运行带有确认感知安全检查的 SQL(包括多语句的 Run Current / Run All),预览和编辑表行,并查看查询输出。

  • Workspace - 将保存的请求、共享环境/变量、连接、活动、标签页和布局状态限定在本地工作区范围内,并支持标题栏中的活动环境切换。

  • 面向 Codex 驱动的 API、SSH 和数据库调试的 MCP 集成 - 通过桌面应用使用的同一命令总线,将安全的本地诊断工具暴露给 MCP 客户端(如 Codex、Claude Code 或 Cursor),让你的 AI 代理能够使用相同的 API、SSH 和数据库上下文进行工作。

截图

应用概览 — 带有模块切换器的侧边栏和 API Client 工作区

Unfour overview

API Client — 带有参数、认证、请求头、请求体和响应的请求构建器

API Client

SSH Terminal — 连接、会话、远程文件和任务

SSH Terminal

Database — 模式浏览和 SQL 查询输出

Database

本地开发

要求:

  • Node.js 和 pnpm。

  • 稳定的 Rust 工具链。

  • 适用于你的操作系统的 Tauri 2 前置要求。

安装并运行:

pnpm install
pnpm tauri dev

pnpm install 还会通过 lefthook 安装 Git 钩子。提交时会使用 cargo fmt 格式化暂存的 Rust 文件,并使用 ESLint 自动修复暂存的 TypeScript。可以使用 LEFTHOOK=0 git commit 跳过一次。

常用命令:

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 tests

除非包文档另有说明,否则请从仓库根目录运行命令。pnpm tauri dev 默认使用 Test 发布渠道,而本地 pnpm tauri build 默认使用 Stable。使用 pnpm tauri build:test 生成隔离的 Test 渠道包。当开发数据应使用 ~/.unfour-dev 时,设置 UNFOUR_STORAGE_PROFILE=dev;此存储覆盖与发布身份无关。只有 CI 应使用 UNFOUR_RELEASE_CHANNEL=stable 和精确的 UNFOUR_BUILD_COMMIT 创建正式可发布的 Stable 工件。

项目结构

路径

说明

apps/desktop

Tauri/Vite 桌面应用入口和 Tauri 适配层。

packages/app-shell

全局外壳组合和模块挂载槽。

packages/api-client

API Client 前端模块。

packages/ssh-terminal

SSH Terminal 前端模块。

packages/database

Database 前端模块。

packages/workspace-core

共享的前端工作区状态。

packages/workspace-environments

工作区环境和变量管理 UI。

packages/workspace-local

保留的本地工作区生命周期边界。

packages/ui

共享 UI 原语和无状态布局辅助工具。

packages/command-client

类型化的 Tauri 命令包装器和前端命令类型。

crates/*

Rust 后端能力 crate 和适配器。

完整的包和 crate 映射请参阅 docs/architecture/project-structure.md。

发布状态

源码树正在准备 Community Stable v0.5.0;最新发布的稳定版本是 v0.4.0。发布就绪状态记录在以下文档中:

  • docs/testing/release-verification.md

  • docs/testing/manual-test-cases.md

  • docs/release/release-checklist.md

  • docs/release/distribution.md

  • docs/release/signing.md

Windows 分发 NSIS .exe 安装程序。安装程序未签名,可能触发 SmartScreen。在真实设备冒烟检查完成之前,macOS 和 Linux 仍处于实验性/未验证状态。除非针对目标平台成功运行了发布检查,或有当前仓库证据支持,否则不要声称发布检查已通过。

文档

  • AGENTS.md - 编码代理的仓库规则。

  • docs/agents/START_HERE.md - AI 代理的限定范围入门路径。

  • docs/architecture/package-boundaries.md - 包所有权和禁止的依赖方向。

  • docs/architecture/project-structure.md - 仓库、包、crate 和调用链映射。

  • docs/architecture/data-storage.md - 工作区数据、SQLite、凭据引用和本地活动规则。

  • docs/architecture/diagnostics.md - 本地结构化日志、脱敏、保留、诊断包和开发者日志记录指南。

  • docs/architecture/security-model.md - 安全态势、脱敏、主机密钥策略和危险操作规则。

  • docs/mcp/overview.md 和 docs/mcp/tools.md - 本地 MCP 服务器行为。

  • docs/testing/release-verification.md - 发布验证矩阵。

  • docs/release/release-checklist.md - 公开发布检查清单。

  • docs/user/USER_GUIDE.md - 面向用户的工作流指南。

贡献

在提交 pull request 之前,请阅读 CONTRIBUTING.md、CODE_OF_CONDUCT.md 以及 AGENTS.md 中的包边界规则。

安全问题应通过 SECURITY.md 报告,而不是公开 issue。

许可证

根据 Apache License 2.0 许可。

Available Tools

88 tools
unfour.activity.listList Workspace ActivityA
Read-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 CollectionA
Destructive

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 EnvironmentA
Destructive

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 VariableA
Destructive

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_folderB
Destructive

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 RequestA
Destructive

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 DetailA
Read-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 DetailA
Read-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 CollectionsA
Read-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 EnvironmentsA
Read-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_foldersA
Read-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 HistoryA
Read-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 RequestsA
Read-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 ConnectionsB
Read-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 ConnectionA
Destructive

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_sqlA
Destructive

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 TableA
Read-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 QueryA
Read-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_sqlB
Read-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_catalogsA
Read-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 ConnectionsA
Read-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 HistoryA
Read-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_sqlA
Read-onlyIdempotent

Lists saved SQL metadata in the selected workspace without executing or returning SQL.

Inputs: workspaceId. Returns: savedSql

unfour.db.list_tablesList Database TablesA
Read-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 QueryA
Read-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 ConnectionA
Read-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.deleteA
Destructive

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.getC
Read-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_runC
Read-onlyIdempotent

Read the complete redacted Flow run history shared with Desktop.

Inputs: runId (required), workspaceId. Returns: run

unfour.flow.listunfour.flow.listA
Read-onlyIdempotent

List saved Flow summaries; use get for the complete definition.

Inputs: workspaceId. Returns: flows

unfour.flow.list_runsunfour.flow.list_runsB
Read-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_keyA
Read-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 RunsB
Destructive

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 ConnectionB
Destructive

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 TaskB
Destructive

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 FingerprintA
Read-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 TaskA
Read-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 ConnectionsA
Read-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 DirectoryB
Read-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 HistoryA
Read-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 RunsA
Read-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 TasksB
Read-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 FileB
Read-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 LogA
Read-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 CommandA
Read-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 HealthA
Read-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 workspaceA
Read-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 VariableA
Destructive

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 workspacesA
Read-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 VariablesA
Read-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

    A3.5/5.0

    Scored across 88 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count1/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Production-grade MCP server that gives AI agents safe access to your local dev environment: filesystem, databases, processes, and OpenAPI specs.
      15
      55 npm
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Secure 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.
      -
    • A
      license
      C
      quality
      B
      maintenance
      Local-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.
      13
      3
      MIT