Skip to content

Database tables for secrets, commands and asks

This page lists the columns of secrets, templates, webmcp_origins, commands, approval_rules and asks. Database tables says how to read the columns.

Secret names only. Values never enter Postgres. A row names a secret that an agent’s plugins or a person need.

Column Type Notes
id uuid key
team_id uuid references teams
scope text one of person, team, agent
person_id uuid optional; references people
agent_id uuid optional; references agents
name text
description text optional
stored_in text
created_at timestamptz default now()

Check ((scope = 'agent') = (agent_id IS NOT NULL)). Check ((scope = 'person') = (person_id IS NOT NULL)). Check (name ~ '^[A-Z][A-Z0-9_]*$').

An agent’s setup saved as a recipe under a name. Saving it again under the same name raises version.

Column Type Notes
id uuid key
team_id uuid references teams
name text
version integer default 1
recipe jsonb
share_slug text unique
visibility text default 'team'; one of public, team
created_at timestamptz default now()

The sites whose WebMCP tools a team’s agents may use. A team with no rows gives its agents’ browsers no page tools.

Column Type Notes
id uuid key
team_id uuid references teams
origin text
added_by uuid optional; references people
created_at timestamptz default now()

Unique (team_id, origin). Check (origin ~ '^https?://[^/[:space:]]+$').

Work for a machine. Its daemon claims each command and reports back.

Column Type Notes
id uuid key
team_id uuid references teams
instance_id uuid references instances
session_id uuid optional; references sessions
kind text one of answer, exec, interrupt, message, push, remove_workspace, setup_workspace, start, stop, suite, verify
payload jsonb default '{}'
event_id bigint optional; references events
status text default 'queued'; one of queued, claimed, done, failed
error text optional
created_at timestamptz default now()
claimed_at timestamptz optional
done_at timestamptz optional
result jsonb optional

A standing answer to a tool approval. A row allows or denies a tool, for a team, one machine or one agent. The auto-approve switch is one of these rows.

Column Type Notes
id uuid key
team_id uuid references teams
instance_id uuid optional; references instances
agent_id uuid optional; references agents
tool_name text
pattern text optional
decision text one of allow, deny
created_by uuid optional; references people
created_at timestamptz default now()

A card that waits on a person, such as a tool approval, a gate, a question or a form. kind lists the kinds.

Column Type Notes
id uuid key
team_id uuid references teams
kind text one of tool_approval, gate, question, form, draft, secret_request, connector_grant, credential_request
session_id uuid optional; references sessions
run_id uuid optional; references runs
conversation_id uuid optional; references conversations
message_id uuid optional; references messages
tool_use_id text optional
payload jsonb default '{}'
status text default 'open'; one of open, answered, expired
answer jsonb optional
answered_by uuid optional; references people
answered_at timestamptz optional
created_at timestamptz default now()
request_ended_at timestamptz optional