unfour
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Unfour exposes workspace-scoped API, database, SSH, activity, and health tools over the command bus. Default policy is environment-aware: dev workspaces allow ordinary read/write repair actions, test workspaces guard higher-risk actions, and prod workspaces are read-only except safe diagnostics. The coding client owns repository inspection, code edits, code-level tests, and source-control actions through its own tools; Unfour MCP provides controlled runtime access and does not edit the repository. The user controls the workspace, environment, risky actions, and final decision. Recommended flow: (1) unfour.system.health; (2) unfour.activity.list; (3) inspect workspace variables or API history and saved requests to reproduce or inspect the visible API symptom before changing configuration; (4) inspect database connections and schemas, use unfour.db.query_readonly or unfour.db.explain first, then unfour.db.execute for confirmed fixes; (5) for hosts, inspect unfour.ssh.list_history for recent workspace-scoped commands, then use unfour.ssh.run_diagnostic/list_dir/read_file or inspect saved SSH tasks. If asked to turn recent commands into a reusable task, draft steps from history and wait for user confirmation; do not call unfour.ssh.save_task or unfour.ssh.run_task unless the user explicitly asks. Then use unfour.ssh.exec/write_file/patch_file/run_task only when appropriate. (6) Summarize the evidence and propose the next action for the user's review; (7) if the coding client changes code using its own coding tools, re-run the original runtime check against the updated backend in the user-selected workspace and environment, subject to the same policy and confirmation checks; (8) verify that the original symptom is gone and relevant runtime and database state is consistent, and report checks that could not be completed. Re-checking requires the updated code to be running in the target environment; a local code edit alone does not verify a runtime fix. This is a recommended flow, not an automatic workflow runner. High-risk tools return CONFIRMATION_REQUIRED with a content-bound confirmation_text; re-run with confirm=true and that exact value to execute. Secrets are masked and never returned in usable form. Judge risk from tool annotations first. Server-side MCP policy and guarded confirmation are the final access control. When present, _meta.riskLevel is advisory call metadata; do not read structuredContent.risk_level.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| unfour.workspace.currentA | Returns the active local workspace through the Unfour command bus. |
| unfour.workspace.listA | Lists all local workspaces through the Unfour command bus, marking which one is active. |
| unfour.connection.listB | Lists safe connection summaries for the active workspace through the Unfour command bus. |
| unfour.workspace.list_variablesA | Lists workspace-global variables through the command bus. Secret variables and sensitive keys are masked before returning to the MCP client. |
| unfour.workspace.replace_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. |
| unfour.workspace.create_variableC | Creates one workspace-global variable through the command bus. Returned values are masked when secret or sensitive. |
| unfour.workspace.update_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. |
| unfour.workspace.delete_variableA | Soft-deletes one workspace-global variable. Guarded policy requires the content-bound confirmation handshake. |
| unfour.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. |
| unfour.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. |
| unfour.api.list_foldersA | Lists API folder metadata and parent IDs in the selected workspace, optionally restricted to a collection. |
| unfour.api.create_folderA | Creates a folder in a saved API collection. Parent must belong to that collection; null means root. |
| unfour.api.rename_folderA | Renames a folder. expectedUpdatedAt from list_folders prevents overwriting a concurrent edit. |
| unfour.api.move_folderA | Moves a folder within its collection, including to root with parentFolderId=null. Cycles and foreign workspace/collection targets are rejected. |
| unfour.api.delete_folderB | Recursively soft-deletes a folder, descendant folders and their saved requests. Guarded policy requires confirmation bound to the current subtree and request revisions. |
| unfour.api.reorder_foldersB | Reorders sibling folders in one collection and parent. Supply their IDs in the desired order; no requests are executed. |
| unfour.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. |
| unfour.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. |
| unfour.db.list_saved_sqlA | Lists saved SQL metadata in the selected workspace without executing or returning SQL. |
| unfour.db.get_saved_sqlB | 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. |
| unfour.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. |
| unfour.db.delete_saved_sqlA | Deletes a saved SQL snippet, never database tables or rows. Requires expectedRevision; guarded policy requires content-bound confirmation. Concurrent changes are rejected atomically. |
| unfour.db.list_catalogsA | Lists catalogs for a saved database connection through CommandBus. The connection must belong to the selected workspace; accepts no ad-hoc credentials. |
| unfour.api.list_collectionsA | Lists API request collections for the active workspace through the Unfour command bus. |
| unfour.api.list_requestsA | Lists saved API requests for the active workspace through the Unfour command bus. Sensitive URL parameters are redacted. |
| unfour.api.get_requestA | Returns a saved API request with sensitive headers, query parameters, body fields, and URL parameters redacted through the Unfour command bus. |
| unfour.api.send_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. |
| unfour.api.create_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. |
| unfour.api.update_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. |
| unfour.api.delete_requestA | 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. |
| unfour.api.create_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. |
| unfour.api.update_collectionA | Renames an API collection in local Unfour metadata through the command bus. Dev/test allow it; prod blocks by workspace policy. |
| unfour.api.delete_collectionA | 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. |
| unfour.api.list_historyA | 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. |
| unfour.api.get_historyA | 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. |
| unfour.api.create_environmentA | Creates an empty API environment in local Unfour metadata through the command bus. Dev/test allow it; prod blocks by workspace policy. |
| unfour.api.update_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. |
| unfour.api.delete_environmentA | Soft-deletes an API environment through the command bus. Guarded policy requires a content-bound confirmation_text; read-only policy blocks deletion. |
| unfour.api.set_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. |
| unfour.api.delete_environment_variableA | Deletes one API environment variable by environmentId and key through the command bus. Guarded policy requires confirmation; read-only policy blocks deletion. |
| unfour.api.list_environmentsA | 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. |
| unfour.db.export_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. |
| unfour.db.create_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. |
| unfour.db.list_connectionsA | Lists saved database connections for the active workspace through the Unfour command bus. Returns safe summaries without passwords, tokens, or connection strings. |
| unfour.db.list_tablesA | 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. |
| unfour.db.describe_tableA | 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. |
| unfour.db.query_readonlyA | 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. |
| unfour.db.executeB | 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. |
| unfour.db.explainA | 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. |
| unfour.db.test_connectionA | Tests connectivity to a saved database connection through the Unfour command bus. Returns whether the connection succeeded and the server version when available. |
| unfour.redis.check_keyA | 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. |
| unfour.system.healthA | Returns command-bus and storage readiness for diagnostics through the Unfour command bus. |
| unfour.activity.listA | 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. |
| unfour.flow.listA | List saved Flow summaries; use get for the complete definition. |
| unfour.flow.getC | Read a saved Flow definition for use in Desktop Canvas or MCP. |
| unfour.flow.saveA | Save a FlowDefinition using existing validation and revision checks. Empty id creates; updates require the current revision. |
| unfour.flow.deleteA | Soft-delete a saved Flow definition at expectedRevision while retaining local run history. Guarded workspaces require confirmation bound to that revision. |
| unfour.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. |
| unfour.flow.cancel_runA | Request cancellation of a running Flow; remote effects are not rolled back. |
| unfour.flow.list_runsB | Read lightweight FlowRunSummary history without loading run details. |
| unfour.flow.get_runC | Read the complete redacted Flow run history shared with Desktop. |
| unfour.ssh.create_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. |
| unfour.ssh.list_connectionsA | 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. |
| unfour.ssh.run_diagnosticA | 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. |
| unfour.ssh.execA | 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. |
| unfour.ssh.read_fileB | 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. |
| unfour.ssh.write_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. |
| unfour.ssh.patch_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. |
| unfour.ssh.list_dirB | Lists a bounded remote directory through SSH and returns structured entry summaries when the remote find utility is available. Safe in dev/test/prod. |
| unfour.ssh.list_historyA | 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. |
| unfour.ssh.list_tasksB | Lists saved SSH task summaries for a workspace. |
| unfour.ssh.get_taskA | Returns one SSH task with steps and local connection binding. Sensitive fields inside step configuration are masked. |
| unfour.ssh.save_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. |
| unfour.ssh.duplicate_taskB | Duplicates a saved SSH task and its steps through the command bus. |
| unfour.ssh.reorder_tasksA | Reorders all active SSH tasks in a workspace. taskIds must contain the exact active task set. |
| unfour.ssh.delete_taskB | Soft-deletes a saved SSH task. Guarded policy requires content-bound confirmation. |
| unfour.ssh.run_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. |
| unfour.ssh.cancel_task_runB | Cancels an active SSH task run through the command bus. |
| unfour.ssh.list_task_runsA | Lists saved run summaries for one SSH task without exposing local log paths. |
| unfour.ssh.read_task_run_logA | Reads a capped SSH task run log. The SSH engine redacts configured secret inputs and the MCP response omits the local log path. |
| unfour.ssh.clear_task_runsB | Deletes saved SSH task run records and local log files for one task or the workspace. Guarded policy requires content-bound confirmation. |
| unfour.db.update_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. |
| unfour.ssh.update_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. |
| unfour.db.delete_connectionA | Soft-deletes a saved connection through CommandBus. Guarded policy requires confirmation bound to workspace, connection and revision; read-only policy rejects deletion. |
| unfour.ssh.delete_connectionB | Soft-deletes a saved connection through CommandBus. Guarded policy requires confirmation bound to workspace, connection and revision; read-only policy rejects deletion. |
| unfour.ssh.test_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. |
| unfour.ssh.get_host_keyA | 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. |
| unfour.db.list_historyA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.