Workspace
Inspect the active workspace and manage supported workspace variables. Representative tools include unfour.workspace.current and unfour.workspace.list_variables.
MCP
Unfour runs a local stdio MCP server that lets compatible MCP clients use approved workspace-scoped API, SSH, database, activity, and system capabilities through the same command and policy boundaries as the desktop app.
Automatic configuration writes only that user-level file; it does not update project configuration or a custom CODEX_HOME. It preserves unrelated configuration, backs up an existing file, and refuses invalid TOML. It does not change workspace permissions or start tool calls.
For manual setup, copy the executable path or alias from Settings → MCP. The paths below are illustrative: replace them with your copied value. Codex launches the executable directly, even when its Windows path contains spaces; keep args empty. In a TOML single-quoted literal string, backslashes stay literal.
[mcp_servers.unfour]
command = 'D:\Program Files\Unfour\unfour-mcp.exe'
args = [] Alternatively, a TOML double-quoted basic string must escape each Windows backslash as \\. The two examples decode to the same executable path; use only one unfour entry.
[mcp_servers.unfour]
command = "D:\\Program Files\\Unfour\\unfour-mcp.exe"
args = [] For Microsoft Store/MSIX, use the stable execution alias below. On macOS or Linux, put the exact path copied from Settings → MCP in command and keep args empty.
[mcp_servers.unfour]
command = "unfour-mcp.exe"
args = [] Automatic configuration writes only the user-level file, not a project’s .cursor/mcp.json. It preserves unrelated configuration, backs up an existing file, and refuses invalid JSON. Project-level setup is a manual option: merge the unfour server entry into the project file yourself rather than replacing other servers.
For manual setup, use Copy command in Settings → MCP. On Windows, if the executable path contains whitespace, use command = cmd.exe and two args: /c, then the complete path as one string. JSON must escape each backslash as \\. Replace the illustrative path below with your copied path; do not split it at spaces or add embedded quote characters.
{
"mcpServers": {
"unfour": {
"command": "cmd.exe",
"args": ["/c", "D:\\Program Files\\Unfour\\unfour-mcp.exe"]
}
}
} Here /c and the path are arguments to cmd.exe; unfour-mcp itself takes no CLI arguments. For Microsoft Store/MSIX, use the stable alias directly with empty args, as below. For Windows paths without whitespace and for macOS/Linux, put the copied executable path directly in command with empty args; preserve JSON escaping.
{
"mcpServers": {
"unfour": {
"command": "unfour-mcp.exe",
"args": []
}
}
} Other MCP-compatible clients that support a manually configured local stdio server may also connect.
Inspect the active workspace and manage supported workspace variables. Representative tools include unfour.workspace.current and unfour.workspace.list_variables.
Inspect saved requests and redacted history, then send an approved request. Representative tools include unfour.api.list_requests and unfour.api.send_request.
Inspect history and tasks, run diagnostics or commands, and read or change remote files within policy. Representative tools include unfour.ssh.list_history and unfour.ssh.run_diagnostic.
List saved connections, browse structure, run read-only queries or explain output, and execute policy-controlled SQL. Representative tools include unfour.db.list_connections and unfour.db.query_readonly.
Manage and execute the same local runbooks as the desktop UI. Tools include unfour.flow.list, save, run, cancel_run, list_runs, and get_run.
Review recent redacted local activity and storage readiness with unfour.activity.list and unfour.system.health.
Restart your MCP client or its Unfour server after updating so it loads the updated binary. Select the intended workspace, inspect its policy, and list resources before changing them. Resource management is part of the Free core.
unfour.ssh.write_file and unfour.ssh.patch_file use a saved SSH connection under workspace policy. They support regular files only and reject observed symlinks and directories. Review the exact target and content, and complete any required confirmation.
Every tool call is checked against the target workspace MCP policy. The default auto policy maps dev to ordinary full access, test to guarded access, and prod to read-only access with safe SSH diagnostics.
The Flow tools share the desktop definitions, saved workspace resources, and run history. Select the workspace and environment explicitly, review the definition and inputs, then confirm the run. Flow execution requires confirmation even under full_access and is blocked under read_only, including runbooks made of read-only checks. Cancel does not undo effects; keep the MCP connection alive during a run.
MCP uses the same local database and command bus as the desktop app. SSH and database credentials are resolved through the OS secret store when needed. Saved API configuration has a separate local-storage and snapshot-redaction boundary; it is not automatically keychain-backed.
Open Unfour once, confirm Settings → MCP shows the MCP command as available, configure the client again, and restart it.
Copy the current command from Settings → MCP. Keep args empty and remove stale development or WindowsApps paths.
Start the desktop app once and verify that the client is using the same Stable, Test, or Dev storage profile. Do not use ephemeral mode.
Restart the MCP client so it opens a new stdio process with the updated command.
Check the active workspace, environment, explicit MCP policy, and whether the action is read-only, guarded, or requires confirmation.