Skip to main content
This page lists the servflowai commands, the general shape of an agent in a config file, and the tools of the MCP management server. It is for readers who keep agents in files or manage an instance from a terminal or an AI client. Everything here can also be done in the dashboard. To build an agent there, see Create an agent. The settings of one entry handler, action, integration, or provider are not on this page. Each has its own section on its catalog page: Available entry handlers, Available actions, Available integrations, and Available providers.

The servflowai command

start

resource

resource works on the store directly, so it needs no running server. A command that writes signals a running server to reload. What the verbs do: Flags on commands that write:

template

template list prints the published templates. template show <slug> prints a template’s inputs and what it requires. template install <slug> creates the template’s agents and secrets. Nothing is written until every input and requirement has been checked.

settings

settings view prints the instance settings in use, from the TOML file. settings reset overwrites that file with the built-in defaults. It does not touch agents, secrets, or anything else in the store.

completion

servflowai completion <shell> prints a completion script for bash, zsh, fish, or powershell. servflowai completion <shell> --help says how to load it.

Resource bodies

One body per noun. Each example passes --dry-run.

Agent

A stored agent. The document under config is described in The shape of an agent.

Integration

Each field of config is an object holding a literal, as value, or the name of a stored secret, as secret. The fields of each type are on Available integrations.

Provider

config holds the type’s fields as plain values. api_key is the key itself, not the name of a secret. The fields of each type are on Available providers.

Workspace

The server names the workspace’s folder and creates it.

Secret

A secret takes flags, not a body.

The shape of an agent

The document under config. servflowai resource agent schema prints the same shape as JSON Schema, and is the authority when this page and the binary differ.

entries

The three shapes: An agent with more than one entry has to pass three rules:
  • At most one trigger entry.
  • At most one webhook entry, and at most one entry for each handler type.
  • No two entries on the same path.
An entry’s name is trigger for a trigger, the handler’s type for an entry handler, and default for a webhook. Traces and test runs use it to say which entry a run came in through.

agents

Each key under agents is a sub-agent’s id. Prompts are templates. See the Dynamic content reference.

tools

action Each field value is an object with two keys. The model is asked for every name in params, every param field, and every tool_param "<name>" call inside a raw string. Every input reaches the action as a string, and a template reads it with {{ tool_param "<name>" }}. mcp name and description are not used, because the server supplies its own. Guards on an mcp tool cover every name in toolsList. agent Each name in params is declared to the model as a required string. The called sub-agent’s prompts read it with {{ tool_param "<name>" }}. agent_task The model sends one input, instruction. The other agent reads it as {{ input "instruction" }}. params must be empty.

Built-in file tools

A sub-agent with a workspaceID has three tools with nothing to configure. Paths are relative to the workspace. A tool you add under the same name replaces the built-in one. Guards cannot be put on them.

guards

A guard is a condition on a tool. For what guards are for, see Guard rails. In structure, conditions in one inner list are joined with AND, and the inner lists are joined with OR.

contextGroups

Each key under contextGroups is a context group’s id. The dashboard calls a group Context gathering. See Context fetching. Each step:

References between parts

start and next take one of these. Sub-agent ids, context group ids, and step ids share one namespace, so no two of them can be the same.

A complete example

A webhook entry, one context step, and one sub-agent with one tool and one guard. Replace providerID with an id from servflowai resource provider list.

The MCP management server

The server at /api/mcp on the instance offers the same operations as the resource command to an AI client that speaks the Model Context Protocol. It has 37 tools. Who can use it depends on mode under [authentication]. See Configuration.

Create an agent

Build an agent in the dashboard, or create one from a file.

Available actions

Every action, its fields, and its shape in a config file.

Available entry handlers

Every entry, its settings, and its variables.

Dynamic content reference

The template functions a prompt, a field, or a guard can use.