fabro CLI.
Workflow agents can opt in to that same run-management tool catalog with [run.agent] fabro_tools = true. This is not the same as configuring external MCP servers for the agent. When a workflow agent calls fabro_run_create, created runs are always child runs of the current run; an explicit parent_id must match the current run ID.
Fabro as an MCP server
Usefabro mcp init to configure an MCP client to launch Fabro:
claude, cursor, and windsurf. The generated configuration launches fabro mcp start over stdio and reuses the CLI’s normal server selection, OAuth refresh, dev-token handling, proxy behavior, and local storage.
You can also print the MCP configuration JSON or start the server directly:
--server when the MCP client should connect to a specific Fabro server, or --storage-dir when it should use a non-default CLI storage directory.
Both commands register the entry under the mcpServers key fabro by default. Pass --name to choose a different key. Each named entry launches its own single-target fabro mcp start process, so you can register more than one Fabro server in the same MCP client:
fabro mcp init keeps entries with other names and replaces only the entry that matches --name.
Register workflow contents from a sandbox
Use shell and read tools in your sandbox to acquire the workflow and all its local config, graph, prompt, script, import, and child-workflow files. For example, clone a repository with your sandbox’s shell tool, then readworkflow.fabro and its
referenced prompt.md. Submit the actual contents:
fabro_workflow_version_create with this object and keep the returned
workflow_version_id. You can reuse it in a RunIntent submitted through the
Create Run API. Registration packages and uploads
child workflows before their parents; callers do not calculate dependency IDs.
entrypoint is an exact supplied key, including when it has no extension. File
values are text, never host paths or URLs to fetch. Missing references and paths
that escape the supplied tree fail. The source tree is limited to 512 files,
512 KiB per file, and 2 MiB of text; each resulting serialized version must also
fit the existing 2 MiB API limit. Case-insensitive file and ancestor collisions
are rejected before staging. Graph nesting through child workflows and imports
is limited to 64 levels, including the entrypoint. A supplied sibling
workflow.toml must be valid even when a graph is the entrypoint; a valid config
that selects another graph is omitted. Collection follows declared file references; command
script values remain literal text, and paths embedded in shell commands are not
inspected or acquired.
Registration resolves no runtime secrets, selects no environment, and starts no
execution. It requires a user credential or a worker token with agent:run_tools;
ordinary worker tokens and same-run Ask Fabro sessions cannot register versions.
If an upload fails, retry the same contents: previously registered immutable
versions remain reusable. Use the returned ID with fabro_run_create.
Create runs
Callfabro_run_create with a registered workflow version ID and an independent
workspace target. You can reuse the same ID for multiple runs without uploading
again:
target: Git coordinates, kind: none
for an empty workspace, or a server-local folder for a compatible Local environment.
A folder path refers to the server’s filesystem, not the MCP client’s filesystem.
Workflow content does not determine the target. Native workflow-agent calls may
omit target to inherit the parent’s execution target; see Child Runs.
Supplying parent_id in standalone MCP does not enable that inheritance.
args uses the same fields as RunIntent: inputs, labels, model, provider,
dry_run, auto_approve, and preserve_sandbox. Omitted boolean overrides stay
omitted; explicit false is preserved. environment_id selects a server environment;
omission uses the server default. title, literal goal, and an exact parent_id
are optional. Caller/project/machine run settings are not read by the tool.
Workflow-owned settings remain in the registered workflow.toml.
Run creation accepts registered IDs only. Replace workflow strings and inline
sources with a preceding
fabro_workflow_version_create call. Move flat run
options into args, use environment_id instead of environment, and send goal
text instead of goal_file. Obtain local or remote files using the caller’s own
shell/read tools. Neither Fabro tool fetches remote sources or reads a caller path.start: false to start later. Batches contain 1–50 items and stop at the first
failure. If creation succeeded before a start, summary lookup, or later item
failed, the error includes the already-created run IDs. Inspect those runs before
retrying to avoid creating duplicates.
Run summaries returned by the MCP server include parent metadata. Use parent_id on fabro_run_create to create a child run, parent_id on fabro_run_search to list direct children, and the link_parent or unlink_parent actions on fabro_run_interact to change an existing run’s parent. See Child Runs for the orchestration model.
Pending runs can be approved or denied through fabro_run_interact:
fabro_run_pair when an MCP client needs to pair with an active API-mode agent stage. The tool can inspect current pair status, start a pair session for a selected stage, send messages, end the session, and read transcript entries.
Fabro agents as MCP clients
When an agent session starts with MCP servers configured, Fabro:- Connects to each server using the configured transport (stdio, HTTP, or sandbox)
- Performs the MCP handshake — exchanging protocol versions and capabilities
- Discovers tools — calls
tools/listto get every tool the server exposes - Registers tools — each MCP tool is added to the agent’s tool registry with a qualified name
Tool naming
MCP tools are registered with a qualified name that combines the server name and original tool name:filesystem exposing a read_file tool becomes mcp__filesystem__read_file. Special characters in server or tool names (hyphens, dots, etc.) are replaced with underscores.
Agent MCP configuration
MCP servers available to Fabro agents can be configured in two places:- User configuration —
~/.fabro/settings.tomlcan define shared workflow MCP servers under[run.agent.mcps.<name>], orfabro exec-only servers under[cli.exec.agent.mcps.<name>]. See User Configuration. - Run config TOML — workflow config can define run-specific MCP servers under
[run.agent.mcps.<name>]. See Run Configuration.
Server-managed catalog
Fabro servers can also manage a shared MCP catalog from Settings → MCP servers in the web UI or through the MCP servers REST API. Workflows reference a catalog definition by id instead of repeating its transport configuration:mcps/*.toml next to the active settings.toml, Fabro validates and imports the directory during startup. Existing SQLite rows win on id conflicts. After a successful transaction, Fabro renames the source directory to a timestamped backup such as mcps.imported-20260711T120000000000Z.bak.
Transport env/header values preserve their existing plaintext-at-rest behavior in SQLite. Prefer {{ secrets.NAME }} interpolation over literal credentials where possible.
Set enabled = false to keep an inline server or catalog reference in configuration without connecting to it:
Runtime interpolation
Inline transport fields can interpolate values at the run boundary:
Interpolation applies to stdio and sandbox commands and env values, plus HTTP URLs and headers. Variable tokens are replaced in the created run configuration. Secret expressions remain in persisted configuration, while resolved secret values do not. A missing or non-token secret fails MCP startup instead of passing an unresolved token to the transport.
{{ env.* }} is unsupported and also fails before launch.
Standalone fabro exec has no server vault, so a {{ secrets.* }} reference fails with an explicit error in standalone execution.
Transports
Stdio
The most common transport. Fabro spawns a child process on the host and communicates over stdin/stdout:HTTP
For remote MCP servers accessible over Streamable HTTP:Sandbox
Runs the MCP server inside the workflow’s sandbox (e.g., a Daytona cloud VM). Fabro starts the server as a background process, waits for it to listen on the specified port, obtains an authenticated preview URL, and connects via HTTP. This is the right transport for MCP servers that need access to the sandbox environment — for example, Playwright for browser automation.
The sandbox transport requires a remote sandbox provider (Daytona) that supports preview URLs. During session initialization, Fabro:
- Launches the server inside the sandbox with
setsid "$BASH" -cto fully detach the process while reusing the provider-selected Bash - Polls until the server is listening on the configured port (up to 30 seconds)
- Obtains an authenticated preview URL from the sandbox provider
- Connects to the server over HTTP using the preview URL
Lifecycle
Startup
Each MCP server is started sequentially during session initialization. The startup sequence for each server is:- Spawn / connect — For stdio, spawn the child process. For HTTP, create the HTTP client. For sandbox, start the server inside the sandbox and connect via preview URL.
- Handshake — Perform the MCP protocol handshake within the
startup_timeoutwindow. - Tool discovery — Call
tools/listto enumerate available tools. - Registration — Add each tool to the agent’s registry with its qualified name.
Tool execution
When the LLM calls an MCP tool:- Fabro looks up the qualified name in the connection manager
- The call is routed to the correct server using the original (unqualified) tool name
- The server executes the tool and returns a result
- The result is converted to text and returned to the LLM as a tool result
tool_timeout configured on the server. If a call exceeds the timeout, it fails with a timeout error.
Content handling
MCP tool results can contain multiple content blocks. Fabro converts them to text:
If the server marks the result as an error (
is_error: true), the tool result is returned to the LLM as an error.
Example: Playwright browser automation
A workflow that uses Playwright MCP to automate a browser inside a Daytona sandbox:run.toml
mcp__playwright__browser_navigatemcp__playwright__browser_clickmcp__playwright__browser_snapshotmcp__playwright__browser_take_screenshotmcp__playwright__browser_typemcp__playwright__browser_fill_form
browser_snapshot (accessibility tree) for structured page understanding and browser_take_screenshot to save visual captures. Screenshots saved to screenshots/ can be collected as artifacts by including screenshots/**.
When using Playwright MCP with the sandbox transport, call the
browser_install tool first to ensure the Playwright browser binaries are available inside the sandbox.MCP servers that fail to start do not block the agent session. The agent proceeds with its built-in tools plus any MCP tools from servers that started successfully.
Protocol details
For agent-side MCP connections, Fabro implements the MCP client side using thermcp SDK (protocol version 2025-03-26). The client identifies itself as fabro-mcp and supports:
- Tool listing and invocation
- Server logging notifications (routed to Fabro’s tracing system)
- Progress notifications
- Resource update notifications
- Cancellation notifications