Agents

Last updated: September 30, 2026

An agent is a non-human member of a Floxar account: an AI worker, an integration or a scheduled job that reads and runs your processes through Floxar’s MCP tools, with its own credentials and its own role. It runs on your infrastructure and your own AI keys; Floxar gives it an identity, a permission level and a place in the audit trail. This page is for someone building or deploying one.

To work in Floxar from an AI app you use yourself, such as Claude, ChatGPT or Cursor, you do not need an agent: you sign in from the app with your own login. See MCP clients. Register an agent when software acts on its own, under an identity of its own.

What an agent is

Floxar treats an agent like any other user in the account. It has a name, a role and, where you assign them, organization or group memberships; the same permission checks apply to every call it makes, and everything it does is recorded under its identity. It appears in trail lists and trail histories like a person would, with (Agent) after its name so it is easy to tell apart.

Role What the agent can do
View Find and read flows, steps, references and trails. It cannot start or change anything, except to report that it found no flow for a task it was given.
Engage Everything View allows, and run work: start trails, submit step data, move a trail forward, pause, complete or abandon it, hand it off, or claim queued work.
Edit Everything Engage allows, and author: create and change flows, steps, connections and references, and change a trail’s details.
Admin The same tools as Edit. No MCP tool needs Admin, so Edit is the widest role an agent needs for MCP.

Registering an agent

An account admin registers agents in the Floxar application’s Agent Registry (Automations → Agents → Agent Registry). Registration takes a minute:

  1. Select Register Agent.
  2. Give it a name (unique within the account), choose its type, add an optional description, and choose its role.
  3. Select Register. Floxar shows the agent’s credentials once:
    • Client ID — public, of the form floxar_agent_…. Safe to log and to mention in a support request.
    • Client secret — shown only this once. Floxar keeps no copy. Store it in your secret manager, never in code, configuration files you commit, or logs.
  4. Confirm that you have saved the secret. If it is lost later, rotate it (below); the old secret cannot be recovered.

Once registered, the agent can be edited (name, description, role, organization and group memberships), deactivated and reactivated, or deleted, from the same page. The registry also shows when each agent last obtained a token (Last Auth), which lags real use by up to an hour because agents cache their tokens.

Signing in

An agent does not sign in through a browser. It obtains an access token with the OAuth 2 client-credentials grant from Floxar’s token issuer, then presents the token as a bearer on every call.

Request a token

curl -X POST https://tokens.floxar.com/oauth2/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=$FLOXAR_CLIENT_ID" \
  -d "client_secret=$FLOXAR_CLIENT_SECRET" \
  -d "resource=https://mcp.floxar.com/a/$FLOXAR_ACCOUNT_ID"

The answer is a standard token response: access_token, token_type Bearer and expires_in. The details that matter:

The token endpoint answers failures in the standard OAuth shape, { "error": "…", "error_description": "…" }: invalid_client (401) when the client ID or secret is wrong or the agent is deactivated — stop and tell an admin, do not retry; invalid_target (400) when resource is not exactly your own account URL; and 429 with a Retry-After header when the credential has minted too often.

Connecting

An agent connects to the same URL a person’s AI client uses, the account URL:

https://mcp.floxar.com/a/<account-id>

It is shown on the Floxar application’s MCP page (Automations → Agents → MCP) and, for admins, under MCP Connections. The account id is in lower case, with nothing after it. An agent can also build it from the account_id claim of any token it requests, one without resource included, and the get_identity tool reports it.

The difference from a person’s connection is what the client sends. A person’s client starts a sign-in when the URL answers 401; an agent’s client sends its bearer token as a static Authorization header from the first request, and no sign-in happens. The account’s switch for people’s AI clients (Allow MCP connections for this account, under MCP Connections) does not apply to agents: a registered, active agent connects whether it is on or off.

Claude Code, as an agent

claude mcp add --transport http floxar-acme https://mcp.floxar.com/a/<account-id> \
  --header "Authorization: Bearer $FLOXAR_TOKEN"

The official TypeScript MCP client

const transport = new StreamableHTTPClientTransport(
  new URL(`https://mcp.floxar.com/a/${accountId}`),
  { requestInit: { headers: { Authorization: `Bearer ${await getToken()}` } } },
);

Either way the header holds a literal 60-minute token, and no client renews it for you. A header in a configuration file works for a session; a process that runs longer must mint a fresh token before the hour is up and reconnect with it — in the second example, where getToken() returns a cached token or mints one, by creating a new transport — or attach the current token to each request through the client’s own hook for that, where it has one.

Good to know once connected:

What an agent can do

Floxar’s MCP server offers 36 tools. The list an agent sees depends on its account role, raised by the level of any organization or group assignment (whose tools then work inside that organization or group only), and a tool it cannot see is also refused if called by name (PERMISSION_DENIED, naming the role it needs):

Role Tools Adds
View 17 get_identity and describe_platform; search and read flows, steps, references and trails; report an unmatched context
Engage 23 Create and run trails: submit step data, move forward, pause, resume, complete, abandon, hand off or claim queued work
Edit and Admin 36 Create and change flows, steps, connections and references; change a trail’s name, priority and categories

Every tool answers in the same envelope: { "success": true, "data": … }, or { "success": false, "error": { "code", "message", "errorId", "timestamp" } } with the result marked as an error. Quote the errorId when you write to support. Each tool also declares whether it reads or writes and whether it is safe to repeat; the two trail-writing tools an agent calls most take an optional key of your choosing, to send every time and reuse on a retry after a lost answer. When starting a trail, a repeat with the same origin_dedup_key from the same agent within 30 days returns the trail already started instead of a second one. When submitting step data, a repeat with the same client_intent_id and the same data returns the original outcome and writes nothing; the same key with different data is refused.

Two things have no MCP tool, by design: approving or rejecting a flow’s review, and managing the account (people, agents, settings). They are not available over MCP; use the application or the REST API.

Capacity and rate limits

Attribution in the audit trail

An agent is a user, so Floxar records its work the way it records a person’s, under the agent’s own identity:

Floxar keeps only a hash of the agent’s secret, and the request records it keeps never carry bearer tokens.

Rotating and revoking credentials

All of these are actions in the Agent Registry, for an account admin:

There is no separate switch for a single credential: an agent has one, and rotating or deactivating the agent is how it is revoked.

Agents and AI clients

People connecting an AI app and agents reach the same account URL and the same tools, and both are limited by a role. The rest differs:

What differs A person’s AI client An agent
Who acts The person, through the client The agent, under its own identity
How it gets in Sign-in in a browser, then consent Client ID and secret, exchanged for a token
Set up by The person, in their client An account admin, in the Agent Registry
What limits it The person’s role, narrowed by what the person allowed and what the account lets clients have The agent’s role, and the level of its organization or group assignments inside them
Account switch MCP connections must be on for the account None; the registration is the switch
Staying connected Renews on its own; signs in again after 7 days unused or 30 days Requests a new token before each hour is up
Ending it The person disconnects their applications under Profile → Security, or an admin revokes the connection under MCP Connections An admin rotates, deactivates or deletes the agent
Recorded as The person, marked as made through MCP with the client’s name The agent, marked as made through MCP

If something stops

For anything else, contact help@floxar.com.