---
title: "Selan MCP — usage data and remote agents · Selan"
description: "One MCP server lets Claude Code read your company's Selan data, such as spend and usage, and manage Reactor remote agents as the signed-in member, by role."
url: https://selan.ai/docs/mcp
updated: 2026-11-24T21:14:23+02:00
---

Tools (MCP)

Docs · Selan MCP

# Selan MCP server

One MCP server for your company's Selan data and its Reactor remote agents. It acts as the member who signed in, with that member's role.

## What is Selan MCP?

Selan MCP is one MCP server at `https://mcp.selan.ai/selan/mcp`. Claude Code connects to it from your terminal.

A client reads your company's Selan data through it: who you are, the provider credentials you may see, spend, the roster, company settings, connectors, models and recent requests. It also manages Reactor remote agents: workspaces, runners, agents and their versions, [groups](#groups), environment variables, [questions](#questions), runs, triggers, the company webhook and connector access. An owner mints API tokens through it, and an agent's run uses it to start the other agents of its workspace.

**Every call acts as the member who signed in.** That member's role decides what the call may see and do.

## How do I connect to it?

**Claude Code through the Selan CLI needs nothing.** The CLI already configures the server and signs its calls with your Selan session. The server's URL, if you need it:

```text
https://mcp.selan.ai/selan/mcp
```

To add Selan together with your other connectors in one step, use `https://mcp.selan.ai/mcp`; see [One URL for every connector](https://selan.ai/docs/mcp-connections#one-endpoint).

Any other MCP client signs in through the browser, as you would to Selan itself, and gets an access token that lasts 30 days and a refresh token that lasts 90. Each refresh hands back a new pair, so a connection used at least every 90 days never asks you to sign in again. A refresh token works once; a reused one ends that sign-in and every token it issued. Removing a member, or switching them off, ends their connections at once.

**An owner must have the Selan connector switched on.** When an owner switches it off, the company loses it within the minute.

## What may each role do?

| Role | What it may do |
| --- | --- |
| read | Sees and uses the read tools, except the owner-only virtual identity tools, and `selan_feedback`, and the tools that change things inside a workspace, which its role in that workspace decides. The company's own write tools, such as making a workspace, runners and the company webhook, do not appear in its tool list, and a call to one by name is refused before anything is sent. |
| edit | Everything read may do. Also creates, changes, starts, cancels, pauses and resumes. |
| owner | Everything edit may do. Also deletes, changes runners, sets up the company webhook, mints API tokens, and manages credits and the card on file. |

**Reactor checks the role itself on every call.** Hiding tools is a courtesy to the client, not the lock. An edit member sees the owner tools, and Reactor refuses them outside a workspace the member owns.

**Inside a workspace, your role in that workspace decides.** A workspace's agents, runs, schedules, memory, variables, connectors and the workspace itself follow your role there; making a workspace, runners, the company webhook and company-wide variables follow your company role. A company owner is an owner of every workspace, and whoever makes a workspace starts as its owner. Anyone else has the highest of the role granted by name, the role granted their team and, in a public workspace, their company role. A private workspace that grants you nothing is hidden: it and everything in it answer as missing. A call your role does not allow is refused with both roles named, such as `this needs the owner role in this workspace; your role here is edit`. This holds over MCP too: a read member of the company whom a workspace grants edit or owner changes that workspace's agents, runs, schedules, variables and connectors from their client.

**A running remote agent cannot manage Reactor.** Its calls to the management tools are refused. It calls with the read role: it reads with `selan_remote_agents_list`, `selan_remote_agent_runs_list`, `selan_remote_agent_run_get` and `selan_remote_agent_run_transcript`, reads its own workspace's triggers with `selan_remote_agent_triggers_list`, as the person the run was started for, and starts other agents with the tools under [From inside a run](#from-a-run). `selan_agent_start` and `selan_feedback` are the write tools a run sees.

**Inside a run, those reads cover the run's own agent.** `selan_remote_agents_list` lists that agent only, and `selan_remote_agent_runs_list` its runs; another agent's `id` answers an empty list. `selan_remote_agent_run_get` reads another agent's run as missing unless this agent started it, and `selan_remote_agent_run_transcript` refuses a run this agent started: read how it went with `selan_remote_agent_run_get`.

**A workspace supervisor's run is the exception.** A workspace may have one supervisor, an agent whose prompt is its mission. Its run manages the other agents of its workspace with the agent, schedule, run and environment variable tools, as the person who turned the supervisor on: it makes, changes, starts, messages and cancels. It cannot set workspace rules, change itself or its own variables, or call the webhook and event trigger tools. Every other run stays read-only.

Over MCP only an owner of the workspace may delete in it, except a group or an agent's question, which an editor may delete or drop too. In the Reactor web app an editor can delete there too. Runners and the company webhook are owner-only everywhere.

## Why does it say Reactor is not enabled?

Reactor is switched on per company, by Selan. While it is off, every Reactor tool, reads included, answers:

```text
Reactor is not enabled for this company
```

The switch stops management only. Scheduled triggers still fire, and runs already going finish.

## How are agents grouped on a workspace's canvas?

**A group is a coloured box on a workspace's canvas that holds some of its agents in an order.** An agent is in one group or in none. Grouping changes nothing a run does, and an agent moved to another workspace leaves its group.

In the Reactor web app, **New group** in the workspace's cog menu draws an empty box and opens its name: 1 to 60 characters, then Enter, then a description of up to 500 and Enter again (Shift+Enter for a new line). Each box's menu renames it, edits its description, sets its colour (violet, cyan, green, amber, orange or pink) and ungroups it: **Ungroup** removes the box, and its agents stay on the canvas in no group. Drag an agent's card into a box, within it, or out; on a touch screen rest a finger on the card until it comes up (a swipe before then pans the canvas), and Escape puts a carried card back. While a tag filter is on, no card can be dragged and **New group** leaves the menu.

**Owners and editors of the workspace change its groups.** A reader sees the boxes and changes none. Over MCP, `selan_remote_agents_canvas` reads the groups and seven tools change them, under [Groups](#tools) in the tools.

## How does a remote agent ask a person?

**An agent blocked on something only a person can do asks one question and ends its run.** Every run has an `ask_user` tool beside `final_status`. It takes a question of at most 2 sentences and 300 characters; details of up to 2,000 characters; and up to 6 images from its working directory, PNG, JPEG, WebP or GIF of up to 5 MB each. The agent is told to ask only for something such as a credential, a sign-in, an access or a setting, never for a decision or an approval. An agent has at most one question open, and it is filed when the asking run ends.

In the Reactor web app the workspace's **Need you** pill counts the questions, and its popover lists them newest first under **Asking you**, with **Details** and the images, which open in Reactor; over MCP `selan_remote_questions_open` answers their addresses. The agent's card reads **Waiting for you** until a newer run takes the card.

**Owners and editors of the workspace answer or drop a question**, and anyone who may read the workspace sees it. Type a reply, or none, and press **Resume**: Reactor starts a new run of the agent that resumes the asking run's Claude Code session, with your reply and who sent it; an empty reply tells the agent just _done_. The new run is on a new machine, so anything the agent had not committed or pushed is gone, and it is told so. A session is kept for 14 days; an answer after that starts the agent fresh, with the question and the answer in its message. If the new run gets no machine, the question opens again. **Drop** closes the question unanswered: the agent is not resumed or told, its stored session is deleted, and it may ask again later. A question already answered or dropped says so, and nothing changes.

**From the terminal**, `selan reactor questions` lists the questions waiting on you across every workspace you reach, and `selan reactor answer _id_ [_text_]` answers one as **Resume** does. In [Herdr](https://herdr.dev), the [Selan Reactor mod](https://github.com/selan-ai/herdr-reactor) shows them in a panel; the [Selan layout for Herdr](https://selan.ai/docs/herdr) includes it. See the [command reference](https://selan.ai/docs/reference#commands).

Through Selan's Slack app, the question also goes as a direct message to the person who made the agent, found by their email address. A reply in the thread is the answer, from someone who may edit the agent's workspace. The same app messages that person when a run ends `failed` or `timed_out`, or its agent says a warning or an error as its final status, once, when the agent's run before it was not in trouble; a run that asked a question, was lost or never provisioned, or was cancelled sends none.

Over MCP, `selan_remote_workspaces_list` counts each workspace's open questions as `asking`, and three tools read, answer and drop them, under [Questions](#tools) in the tools.

## Which tools does it offer?

The tools, by what they act on. **Role** is the least role that may call the tool: read means any member. "In the workspace" and "of the workspace" mean your role in the workspace the tool acts in, which a read member of the company may hold as edit or owner. **Destructive** marks a tool that deletes.

**A long list comes in pages.** The tools below take an optional `limit`, a whole number up to the most the list allows (a larger one is read as the most), and an optional `cursor`. The answer's `next` is the `cursor` that reads the next page, and null on the last page; the agent and run lists also answer `more`, true while a page is left. A cursor is only good for the list that wrote it: if the list changed between two pages, the call says so, and leaving `cursor` out starts again from the first page.

| Tool | A page holds | At most | Narrow it with |
| --- | --- | --- | --- |
| `selan_members_list` | 25 people | 50 | `name`, in a name or an email |
| `selan_connectors_list` | 25 connectors | 50 | `name`, in a name or a slug |
| `selan_remote_workspaces_list` | 25 workspaces | 50 | `workspace_id` or `name` |
| `selan_remote_agents_list` | 20 agents | 200 |  |
| `selan_remote_agents_overview`, `selan_remote_agents_tagged` | 16 agents | 200 | `tags`, for the second |
| `selan_remote_agents_canvas` | 4 agents | 25 | `agent_id`, one agent whole |
| `selan_remote_agent_history` | 10 versions | 30 | `version`, one entry whole |
| `selan_remote_agent_runs_all` | 8 runs | 200 |  |
| `selan_remote_agent_runs_list` | 16 runs | 50 | `agent_id` |
| `selan_remote_agent_run_blocks` | 15 blocks | 50 | `at`, one block whole |
| `selan_remote_agent_triggers_list` | 15 triggers | 50 | `agent_id` or `trigger_id`, whole |

A long text in a page is counted rather than carried: its length and first words stand in for it. An agent's version gives `systemPromptChars` and `systemPromptStart`; a trigger gives `promptChars` and `promptStart`, or `sentenceChars` and `sentenceStart`; a block gives `bodyChars` and `bodyStart`, or `outputChars` and `outputStart`. Ask for that one item, by the argument in the last column, to read it whole. Read a trigger whole before changing it.

### Company and spend

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_whoami` | Who this call acts for, their company and role | read |  |
| `selan_tokens_list` | The provider credentials this caller may see | read |  |
| `selan_token_detail` | One provider credential by id | read |  |
| `selan_my_usage` | The caller's own spend against their own limits | read |  |
| `selan_company_usage` | Company spend over a trailing window | owner |  |
| `selan_members_list` | The company roster, 25 a page: each person's role, whether they are paused and their `teams`; send `name` to find one person | read |  |
| `selan_settings_get` | The company-wide switches | read |  |
| `selan_connectors_list` | The MCP connectors this developer may add, 25 a page; send `name` to find one. `availability` is `open` where it works once added, `needsClient` where an owner must set a value first, and `notConnected` where this person cannot add it. `who` names who a company config is for, and `mayChange` whether the caller may change or delete it | read |  |
| `selan_models_list` | The model ids this developer may pass to `--model` | read |  |
| `selan_recent_requests` | The newest 50 requests this caller may see | read |  |
| `selan_cli_token_create` | Mint an API token, and show its secret once | owner |  |
| `selan_cli_token_revoke` | Revoke an API token, so its secret stops working | owner | Yes |
| `selan_credits` | The company's credits: spendable, held, balance, auto top-up, card on file and the newest ledger lines | owner |  |
| `selan_credits_top_up` | Start a credits top-up and answer the payment URL | owner |  |
| `selan_credits_auto_top_up_set` | Turn auto top-up on or off | owner |  |
| `selan_credits_card_add` | Add or replace the card on file, and answer the page to do it on | owner |  |
| `selan_credits_card_remove` | Remove the card on file | owner | Yes |
| `selan_virtual_identity_status` | Whether the company's Google Workspace is connected, its eligible domains and whether domain access needs approving again | owner |  |
| `selan_virtual_identities_list` | The company's virtual identities, with the connected provider accounts that use each | owner |  |
| `selan_virtual_identity_detail` | One virtual identity by id | owner |  |
| `selan_virtual_identity_create` | Make a Google account on an eligible domain, and show its password once | owner |  |
| `selan_virtual_identity_reset_password` | Set a new password for an identity and show it once; the old one stops working | owner |  |
| `selan_virtual_identity_delete` | Delete an identity's Google account | owner | Yes |

`selan_company_usage` is listed as a read tool, but Selan answers it for owners only.

`selan_my_usage` counts what is billed to you: requests served by a pay-as-you-go credential. A request a subscription or plan credential served, a signed-in Claude or ChatGPT seat or a provider's plan key, adds 0, and so does one that could not be priced. `selan_recent_requests` shows such a request's equivalent pay-as-you-go price as `costNanos` (null when it could not be priced), so its rows need not add up to `selan_my_usage`. An owner reads the subscription part of the company's spend as `subscriptionCostNanos` in `selan_company_usage`.

`selan_cli_token_create` mints the same token as [**Settings → API tokens**](https://control.selan.ai/settings/access), for a job with no browser to carry as `SELAN_TOKEN`. It takes a `name` of 1 to 60 characters and an optional `ttl`: `1d`, `30d`, `90d` (the default), `365d` or `never`. The secret is shown in the answer only. It is refused when the company already holds 50 live API tokens, or 10 on the Free plan. `selan_cli_token_revoke` takes the token's `id` and stops the token at once; a revoked token cannot be restored. Both are for an owner signed in as a person: an API token or an agent's run is refused, whatever its role.

**Credits pay for runs on a Selan Isolated VM, hosted apps, dictation, phone calls and Brave Search searches (€8 per 1,000).** What runs on your own keys, runners and Google Cloud projects needs none. A run on a Selan Isolated VM or a phone call starts only when what can be spent now covers what it holds; otherwise it is not started, whether `selan_remote_agent_run_start`, `selan_agent_start` or `selan_remote_agent_trigger_run` begins it, and its `detail` says why. A Brave Search search with no credits left is refused with a tool error that says to add a card or credits under Billing, where an owner adds credits. The five `selan_credits` tools are the **Credits** screen of [Billing](https://control.selan.ai/billing), and only an owner signed in as a person may call them: an API token or an agent's run is refused, whatever its role.

`selan_credits` answers `canSpendNow`, the balance less what is held (€0.00 once the credits are used up); `held`, what Selan VM runs still going and phone calls under way hold, freed as each ends; the ledger's `balance`, which still counts what is held; `autoTopUp` with `belowEur` and `addEur`; the `card` on file; and `lines`, the first page of the ledger, newest first. A null `autoTopUp` or `card` means it could not be read or there is no card; a null `canSpendNow` or `held` means it could not be read, not that it is zero. `historyUnread` true means `lines` is empty because the ledger could not be read, and `more` true means older lines exist.

`selan_credits_top_up` takes `amount_eur`, euros before VAT with at most two decimals, and answers a Stripe `url` for the person to open. Nothing is charged until they pay there. It is refused below the minimum, past what a card may add at once and past a new card's €50 in its first week; a bank transfer goes beyond that.

`selan_credits_auto_top_up_set` takes `enabled`, `below_eur` and `add_eur`. While it is on, whenever the balance falls below `below_eur`, `add_eur` plus VAT is charged to the card on file, at most 3 times a day; a declined card turns it off and the owner gets an email. Both amounts are saved whether it is on or off, so send the ones `selan_credits` answered to keep them. With no card on file it saves nothing: `saved` is false and `addCardUrl` is the page to add one on.

`selan_credits_card_add` answers a Stripe `url` and changes nothing until the person finishes there; the card they add replaces any on file, and auto top-up and the plan are charged to it. `selan_credits_card_remove` takes the card off, so nothing is charged after it, and answers `removed`, false when there was none. It is refused while an invoice is unpaid or a paid plan still bills.

### Workspaces

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_workspaces_list` | The workspaces you reach, oldest first, 25 a page: agents held, open questions (`asking`), `rulesChars`, your role and whether it is public or private. Send `workspace_id`, or `name` (up to 40 characters, matched anywhere without case), to list only those, each with its `rules` text | read |  |
| `selan_remote_workspace_create` | Create an empty workspace | edit |  |
| `selan_remote_workspace_rename` | Rename a workspace | owner of the workspace |  |
| `selan_remote_workspace_set_rules` | Set the rules every agent in a workspace reads before its own system prompt | edit in the workspace |  |
| `selan_remote_workspace_delete` | Delete an empty workspace | owner of the workspace | Yes |

**Every agent is in exactly one workspace, and starts only agents in its own.** A workspace name is 1 to 40 characters, and two workspaces of a company cannot share one, whatever the case. A workspace is deleted only while it holds no agent, counting agents deleted in the last 7 days, and the last workspace cannot be deleted.

**A workspace is public or private.** Every member of the company reaches a public one, at their company role unless it grants them another. Only the company's owners and the people and teams it grants reach a private one. A new workspace is public. Roles are set in the workspace's Access dialog in the Reactor web app: its editors and owners change it, and only an owner grants or removes owner. `selan_remote_workspaces_list` answers each workspace's `visibility` and your `role` in it; its `canEdit` says only whether you may make a workspace.

**A workspace's rules are one text every agent in it reads before its own system prompt.** `selan_remote_workspace_set_rules` takes the workspace's `id` and `rules`, 0 to 2,000 characters, and replaces them whole; an empty text clears them. Every run started after the change reads the new rules. `selan_remote_workspaces_list` shows the rules when you send `workspace_id` or `name`; the whole list carries only their length, `rulesChars`.

### Runners

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_runners_list` | The company's runners, the machines agents can run on, and its own Google Cloud projects with where each one's runs go | read |  |
| `selan_remote_runner_create` | Add a runner, with tags if you give any, and get its token once and the lines that install it | owner |  |
| `selan_remote_runner_update` | Change a runner's name, how many runs it takes at once, and its tags | owner |  |
| `selan_remote_runner_delete` | Delete a runner no agent names | owner | Yes |
| `selan_remote_cloud_networks` | The subnets of a company Google Cloud project that a run may go in, and its default network's zone pairs | owner |  |
| `selan_remote_cloud_templates` | The templates a company Google Cloud project starts from, with what each sets and what an hour of its vm costs in a region | read |  |
| `selan_remote_cloud_update` | Rename a company Google Cloud project, or change its zones, template, size, pricing, network and ranges | owner |  |

**A runner is a machine your company keeps on, such as a VPS, that runs an agent's runs in seconds instead of on a vm made for each run.** Every run sent to a runner is handed all of its agent's secrets, so only an owner adds or removes one. [Self-hosted runners](https://selan.ai/docs/runners) covers adding, installing and removing a runner. `selan_remote_runners_list` answers each runner's `slots`, `tags`, `busy`, `online`, `lastSeenAt`, `version`, `agents` (how many agents name it) and `load` (CPU, memory and disk use in percent, with each one's 24-hour `peak`; null for a runner that sends none). `updateNeeded` is true for a runner still behind `newestVersion` a day after.

**`selan_remote_runner_create` adds a runner.** It takes a `name` of 1 to 40 characters that no other runner of your company holds, optionally its `tags`, and answers the `runner`, whose `id` is the `runnerId` agents take, the `token` it polls with, shown once, and `install`, one line per system that installs it with that token: `linux` for [Ubuntu 24.04](https://selan.ai/docs/runners#linux), `mac` for an [Apple Silicon Mac](https://selan.ai/docs/runners#mac), and `macPrivileged`, the Mac line with `--mac-host` for [Xcode builds](https://selan.ai/docs/runners#mac-host). A new runner starts at 2 slots.

**`selan_remote_runner_delete` deletes a runner.** It takes the runner's `id`, and Reactor refuses the runner's token from then on. It is refused while `agents` in the list is above 0, which counts archived agents and deleted ones not yet purged, or while a run on the runner is still going; the refusal names the agents you may see. Move a live agent elsewhere with `selan_remote_agent_update` first, and unarchive an archived one to move it. A deleted agent holds the runner until its `restorableUntil`. Then [remove it from the machine](https://selan.ai/docs/runners#remove-a-runner).

**`selan_remote_runner_update` sets a runner's `name` and `slots` together.** It takes the runner's `id`, a name of 1 to 40 characters and `slots`, the runs it takes at once, from 1 to 16. Both are replaced, so send the current name to change only `slots`. A name another runner of your company holds is refused. `tags` is optional: left out, the runner keeps its tags, `[]` removes them all, and a list replaces them. An owner sets the same in the runner's dialog in the Reactor web app, where `slots` is **Runs at once**. The machine takes a new `slots` from its next poll; a `RUNNER_SLOTS` in its env file is not read.

**A runner's tags send a run to the machine that can do it.** A runner carries up to 8 tags, such as `mac` or `xcode`, each 1 to 24 letters, digits, spaces, `-` and `_`. A run that asks `runner_tags` goes only to a runner of your company carrying every one of them, whatever its agent's runners say: a free one first, else the one with the shortest queue, and never a Google Cloud project or a vm. When none carries them all, the run ends `unprovisioned` with `no runner carries every tag of mac, xcode`. A workspace's supervisor runs only on a vm made per run, so a run of it that asks tags is refused.

Send `runner_tags`, up to 8, to `selan_remote_agent_run_start`, `selan_agent_start`, `selan_remote_agent_trigger_create`, `selan_remote_agent_trigger_update`, `selan_remote_agent_event_trigger_create` or `selan_remote_agent_event_trigger_update`. Every run a schedule or an event trigger starts asks them, and `selan_remote_agent_trigger_run` fires with the schedule's own. On an update, leaving `runner_tags` out keeps the trigger's tags and `[]` clears them. `selan_remote_agent_run_detail` answers the `runnerTags` a run asked, and `selan_remote_agent_triggers_list` each trigger's `runnerTags`. [Runner tags](https://selan.ai/docs/runners#tags) shows the same in the Reactor web app.

A run started in the Reactor web app may carry no message: with **What it should do** empty on **Start run**, the run is asked what its agent's first schedule asks, an enabled schedule before a paused one, or `Run as usual.` when the agent has no schedule. `selan_remote_agent_run_start` takes an `input` of 1 to 4,000 characters.

A run goes to the first of its agent's runners that is online with a slot free. When every online one is full and the agent does not also run on a [Google Cloud project of yours](https://selan.ai/docs/runners#google-cloud) or a vm, the run stays `queued` on the one whose queue is shortest until a slot frees, and ends `unprovisioned` if none does within its 4-hour limit, which runs while it waits. When none is online and the agent does not also run on a Google Cloud project or a vm, it ends at once as `unprovisioned`, saying why for each runner. A run whose runner stops polling for 2 minutes ends `lost`.

**`selan_remote_runners_list` also answers `clouds`, the [Google Cloud projects](https://selan.ai/docs/runners#google-cloud) of your company that runs are placed in.** Each has its `id`, `name`, `project`, `state`, `zone`, `secondZone`, `machineType`, `agents`, `network`, `subnetwork` (both `default` on the default network), `region` (empty there), `ranges`, `size`, `zonePair` (null on a subnet), `template` and `pricing` (null on a project saved before they existed) and `pricePerHour` in euros for one run's vm, null where Google's price list could not be read. `size`, `zonePair`, `template` and `pricing` are what `selan_remote_cloud_update` takes as `size`, `region`, `template` and `pricing`. No tool connects or disconnects a project: an owner does that in Reactor.

**`selan_remote_cloud_templates`** takes a Google Cloud `region`, such as `europe-west1`, and answers the `templates`, `custom` last: each has its `template` (what `selan_remote_cloud_update` takes), `name`, `goodFor`, `chips`, the `size` and `pricing` it sets, and `pricePerHour` in euros in that region. `size` and `pricing` are null for `custom`; `pricePerHour` is null for `custom` and wherever the price could not be read.

**`selan_remote_cloud_networks`** takes the cloud's `id` and answers `subnets`, the private subnets of the cloud's own project, each with its `id` (`<region>/<subnetwork>`, what `selan_remote_cloud_update` takes as `network`), `network`, `subnetwork`, `region`, `ipCidrRange` and `zones` that offer the cloud's machine now; and `default`, the zone pairs of the default network, each by the `region` that `selan_remote_cloud_update` takes for it. A project Selan can no longer read is refused with the reason.

**`selan_remote_cloud_update` sets a cloud's placement whole.** Every field is required, so send the current values for what stays. It takes the cloud's `id`; `name`, 1 to 40 characters and unique among your company's clouds; `region`, `europe` (europe-north1-b, then europe-west4-a; a cloud whose Selan hosts were connected while Europe was europe-west1-b keeps europe-west1-b, then europe-west4-a) or `us` (us-central1-a, then us-east4-a), the zone pair on the default network, which a subnet does not read; `template`, `android`, `backend`, `agents` or `custom`; `size`, `small` (`c4-standard-4`), `medium` (`c4-standard-8`) or `large` (`c4-standard-16`); `pricing`, `standard`, on demand, or `spot`, cheaper, and Google may take the vm back; `network`, `default` or a subnet's `id` from `selan_remote_cloud_networks`, such as `europe-west4/staging-subnet-1`; and `ranges`, the private ranges its runs may reach in that network, such as `10.100.0.0/16`: each inside 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16 and written as its own network, each once, 5 at most, and `[]` for none, which the default network requires.

`android` sets `large` and `spot`; `backend` and `agents` set `medium` and `spot`; `custom` takes `size` and `pricing` as sent. Any other template is refused when the `size` or `pricing` sent differs from what it sets. A cloud whose `template` and `pricing` are null is sent as `custom` and `standard`. When Google takes a Spot vm back, the run is started once more on a fresh vm; a second take-back ends it as lost.

A change of the zone pair, the template, the size, the pricing or the name alone is saved at once and answers `outcome` `saved`. A new `name` is saved at once whatever else changes, and never needs a Google sign-in. A changed `network` or `ranges` is not saved by the call: Selan's firewall rules in that network are written with the owner's own Google sign-in, which only a person can give in a browser. The answer is then `outcome` `signIn` with a `url` and a `relay` sentence, and nothing is written until an owner of your company opens the link, once, within ten minutes. It signs them in to Google as someone who may write firewall rules in the project, saves exactly that change and ends on a page that says **Saved**, or why not. Check with `selan_remote_runners_list` afterwards. Runs placed from then on use the new placement; a run already going stays where it is.

### Reactor agents

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_agents_list` | The company's remote agents, newest first, a page at a time | read |  |
| `selan_remote_agents_overview` | The agents of the workspaces you reach, each naming its workspace, newest first, a page at a time | read |  |
| `selan_remote_agents_tagged` | The agents carrying any of up to 8 tags, a page at a time | read |  |
| `selan_remote_agents_canvas` | One workspace's agents, 4 a page, and their groups, with each agent's last run, triggers and expired connectors | read |  |
| `selan_remote_agents_recap` | How one workspace's agents ran over the last 24 hours, and which need a person now | read |  |
| `selan_remote_agent_detail` | One remote agent in full, system prompt included | read |  |
| `selan_remote_agent_create` | Create a remote agent in a workspace, on a runner or a vm made per run, with a limit on its parallel runs | edit in the workspace |  |
| `selan_remote_agent_update` | Change an agent's name, system prompt, model, effort, tags, workspace, runner or parallel runs | edit in the workspace |  |
| `selan_remote_agent_delete` | Delete an agent, its triggers and its service account | owner of the workspace | Yes |
| `selan_remote_agent_history` | Every version of an agent and of its schedules, newest first, 10 a page | read |  |
| `selan_remote_agent_revert` | Put back an earlier version of an agent or of one of its schedules | edit in the workspace |  |

`selan_remote_agents_canvas` and `selan_remote_agent_create` take a `workspaceId` from `selan_remote_workspaces_list`. `selan_remote_agent_update` takes one too, to move the agent: it moves with its triggers, runs and memory, the lists of agents that may start it, or that it may start, are cleared, and it leaves its group.

`selan_remote_agent_create` and `selan_remote_agent_update` take where the agent's runs go as `runnerIds`, the whole list in the order runs try it, or `runnerId`, one place; send one of the two. Each entry is a runner's `id` from `selan_remote_runners_list`, `#tag` for any of your runners carrying that tag (such as `#jobs`, tried first), a Google Cloud project's `id`, or `null` for the Selan pool. `["#jobs", null]` is your runners tagged `jobs`, else the pool. Send `null` rather than leaving both out. `selan_remote_agent_update` replaces all its fields at once except `parallelRuns`: send the ones not changing as `selan_remote_agent_detail` shows them. That answers the whole list as `runnerIds` and its first entry as `runnerId`; sending the first entry back as `runnerId` keeps the whole list, and any other value replaces it with that one runner or the pool. A workspace's supervisor runs only on the Selan pool: a runner for it answers 400.

**An agent can limit how many of its runs go at once.** Both tools take `parallelRuns`: `"unlimited"`, or a whole number from 1 to 20. `selan_remote_agent_create` requires it; `selan_remote_agent_update` keeps the limit when it is left out. A run started past the limit stays `queued` and starts when one of the agent's live runs ends, oldest first, so `1` runs the agent one at a time; `detail` on `selan_remote_agent_run_get` says what a queued run waits for, and one still queued when its time limit ends ends `unprovisioned`. A run started from inside that agent's own run, directly or through a chain of agents, is refused while the limit is full rather than queued. In the Reactor web app it is **Parallel runs** in the agent's form: **Run one at a time**, and **Max parallel runs**, from **No limit** to 20.

Effort is `low`, `medium`, `high`, `xhigh` or `max`. An agent carries at most 8 tags, each 1 to 24 characters; `selan_remote_agents_tagged` compares them lower-cased and trimmed, so `Prod` finds `prod`.

**Every change to an agent or one of its schedules is kept as a version.** `selan_remote_agent_history` takes the agent's `agentId` and lists each version with its `kind` (`agent` or `trigger`), `id`, `version`, `at`, who made it (`by`: their `email`, and the `runId` of the supervisor run that made it, null for a person) and the whole `config` it left. `selan_remote_agent_revert` takes an entry's `kind`, `id` and `version` and writes that version again as a new one, so a revert can itself be reverted. Reverting an agent moves it back to the workspace it was in then. An unknown version answers `no such version`, and an agent trigger, whose id starts `agent:`, keeps no versions.

**`selan_remote_agents_recap` says how one workspace's agents ran over the last 24 hours.** It takes a `workspaceId` and answers `attention`, the agents that need a person now, each with its `kind` (`runFailed`, `reportedError`, `reportedWarn`, `connectorExpired` or `fireMissed`), a `detail`, and the `runId` to read with `selan_remote_agent_run_detail` or the `triggerId` whose fire was missed; `recovered`, the agents that failed in the window and need nobody now; the window's `stats`; and `recap`, a few sentences Sonnet wrote, with its `state`, answered only while the problems it was written from still stand. Each recap is one Sonnet call billed to your company, at most 96 a workspace a day. Recaps are on unless Selan switches them off for the company; then `state` is `off` and there is no text, and a workspace of four agents or fewer, not counting its supervisor, has none either (`tooFew`).

**An agent can be installed from a file, and exported to one.** An agent file is one Reactor agent in Markdown; Selan's are in [github.com/selan-ai/selan-remote-agents](https://github.com/selan-ai/selan-remote-agents) and listed at [Agents for Reactor](https://selan.ai/reactor/agents). With Selan MCP connected and the edit role in the workspace, tell Claude `Install` and the file's address on GitHub: it shows you the whole file, asks which workspace and each `## Setup` line, asks once more, _Create the agent in the workspace?_, then calls `selan_remote_agent_create` and `selan_remote_agent_trigger_create`. A schedule whose connector is not yet signed in is made paused, and Claude gives you the sign-in links and resumes it once they are done. A file from outside Selan's repository is not reviewed by Selan, and Claude says so. To export, ask Claude to write an agent to a file: it reads the agent, its first schedule and its connectors, turns your company's own values into Setup lines for you to confirm, and never reads environment variables, memory or secrets. The Reactor web app's Marketplace lists the same agents.

### Groups

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_group_create` | Add an empty group to a workspace's canvas | edit in the workspace |  |
| `selan_remote_group_rename` | Rename a group | edit in the workspace |  |
| `selan_remote_group_describe` | Set what a group is for | edit in the workspace |  |
| `selan_remote_group_recolour` | Change a group's colour | edit in the workspace |  |
| `selan_remote_group_delete` | Delete a group; its agents stay on the canvas, in no group | edit in the workspace | Yes |
| `selan_remote_group_place` | Put an agent in a group, at a position | edit in the workspace |  |
| `selan_remote_group_release` | Take an agent out of its group | edit in the workspace |  |

`selan_remote_agents_canvas` answers the workspace's `groups`, in the order they are drawn, each with its `id`, `name`, `description`, `colour` and `agentIds`. The other group tools take that `id` as `groupId`. A group or agent of another workspace answers as missing.

`selan_remote_group_create` takes a `workspaceId`, a `name` of 1 to 60 characters, a `description` of at most 500, an empty one for none, and a `colour`: `violet`, `cyan`, `green`, `amber`, `orange` or `pink`. Each call makes another group, so after a call that timed out, read `groups` before trying again. `selan_remote_group_describe` replaces the description whole, and an empty one clears it.

`selan_remote_group_place` takes an `agentId` and an `index` from 0 to 10,000 among the group's agents: 0 is first, and past the last is last. The agent leaves any other group. `selan_remote_group_release` takes an `agentId`; the agent then stands in no group. `selan_remote_group_delete` is the one delete an editor of the workspace may make over MCP; its name, description and colour cannot be had back, and its agents stay on the canvas in no group.

### Runs

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_agent_runs_list` | The company's remote agent runs, newest first, a page at a time | read |  |
| `selan_remote_agent_runs_all` | The runs of every agent you reach, newest first, a page at a time | read |  |
| `selan_remote_agent_runs_of_agent` | One agent's newest runs | read |  |
| `selan_remote_agent_run_get` | One run: what it was asked, how it ended, its answer | read |  |
| `selan_remote_agent_run_detail` | One run in full, with its event log | read |  |
| `selan_remote_agent_run_transcript` | A run's transcript, 6,000 characters at a time, or up to 20,000 | read |  |
| `selan_remote_agent_run_blocks` | A run's transcript as blocks, newest first, 15 a page | read |  |
| `selan_remote_agent_run_start` | Start a run of a remote agent, on a runner carrying the tags you name | edit in the workspace |  |
| `selan_remote_agent_run_cancel` | Cancel a run | edit in the workspace |  |
| `selan_remote_agent_run_send` | Send a message to a run still going | edit in the workspace |  |

### Triggers

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_agent_triggers_list` | The company's triggers, 15 a page | read |  |
| `selan_remote_agent_trigger_history` | When a trigger fired, by whom, and what became of each event | read |  |
| `selan_remote_agent_trigger_create` | Schedule a trigger for an agent | edit in the workspace |  |
| `selan_remote_agent_trigger_update` | Change a schedule's target, timing, prompt or runner tags | edit in the workspace |  |
| `selan_remote_agent_trigger_set_enabled` | Pause or resume a trigger | edit in the workspace |  |
| `selan_remote_agent_trigger_run` | Fire a trigger now | edit in the workspace |  |
| `selan_remote_agent_trigger_delete` | Delete a trigger and its fire history | owner of the workspace | Yes |
| `selan_remote_agent_trigger_set_callers` | Set which agents of the same workspace may start this one from inside their run | edit in the workspace |  |
| `selan_remote_agent_event_trigger_create` | Start an agent when an outside event matches a sentence | edit in the workspace |  |
| `selan_remote_agent_event_trigger_read_sentence` | Which events a sentence is about, to fill an event trigger's reads | edit |  |
| `selan_remote_agent_event_trigger_update` | Change an event trigger's sentence, reads and runner tags | edit in the workspace |  |

`selan_remote_agent_run_send` takes 1 to 4,000 characters, which the agent reads while it works. An ended run refuses it, and so does a run with 20 messages already waiting.

**`selan_remote_agent_run_get` answers a run's `answer`, its final message.** A run that ends without writing one, because its time limit cut it off or it was lost or cancelled, answers its last message instead, and `detail` then ends ``it wrote no final answer, so `answer` is its last message, partial``. `answer` is empty while the run is still going and for a run that said nothing. A run whose agent's last status said `error` ends `failed`, not `succeeded`.

`selan_remote_agent_run_blocks` answers the newest 300 blocks of a transcript, newest first, 15 a page. A body or output past 320 characters is counted and its start given; send a block's `at` to read that block whole. A block longer than its cap is cut and ends in `…`: a result at 20,000 characters, text, thinking and a message at 4,000, a tool call's input and output at 1,600. Past a cut, `selan_remote_agent_run_get` answers a run's final answer whole, for a person or for a run this agent started, and `selan_remote_agent_run_transcript` reads every character, for a person or for a run of the caller's own agent: 6,000 characters at a time, or `chars` up to 20,000. It answers `text`, and `next`, the `from` that reads the next piece, null at the end.

**A company keeps a finished run for 30 days unless an owner picks otherwise.** In the Reactor web app an owner opens **Run history** from the cog menu and picks 24 hours, 7, 30 or 90 days, or turns deletion off; an editor reads the setting. Each time a run ends, Reactor deletes up to three finished runs older than the setting, with their transcripts, messages and question. A run an open question still needs waits. With deletion off the runs stay, and a transcript still goes after 90 days.

`selan_remote_agent_trigger_set_callers` replaces the agent's list of callers; an empty list means none. It answers nothing: a person reads the list back with `selan_remote_agents_canvas` and `agent_id`, as that agent's `agent:<agentId>` trigger's `callers`. `selan_remote_agent_triggers_list` holds no `agent:` trigger and refuses its id.

`selan_remote_agent_trigger_create` and `selan_remote_agent_trigger_update` save a schedule straight away. `selan_remote_agent_trigger_update` changes a schedule only: an event trigger's `id`, which starts `event:`, or an agent trigger's is refused with a message that names the tool to use instead.

`selan_remote_agent_trigger_history` names how each fire began in `source`: `schedule`, `manual`, `agent`, `wake`, `gitlab`, `github`, `custom` or `trello`, a card landing in a watched Trello list. For `github`, `actor` is the GitHub login that acted. Each row also carries `kind`, the event's kind (null for a fire no event set off), `outcome`, `delivery` and `why`; an event is one row each time something became of it, and its rows share a `delivery`. `outcome` is `delivered`, `refused`, `undeliverable`, `retry`, `gave_up`, `ignored`, `held`, `dropped` or `unmatched`. A comment held while runs go is a `held` row whose `why` says which runs hold it; a later `delivered` row of the same delivery is a fire that came late, not one dropped. `dropped` is a comment let go without being judged, and `why` names the rule, or the thread (the whole merge request or issue, not one discussion) and each run holding it. An event the model judges at once and finds not a match is an `unmatched` row whose `why` gives the model's words; a comment judged at once that does not match has no row.

**An event trigger starts an agent when an outside event matches a sentence.** `selan_remote_agent_event_trigger_create` takes the agent's `agentId`, a `sentence` of 1 to 2,000 characters in plain words and its `reads`. A model reads each event the company webhook lets in against the sentence, and a match starts a run of the agent as the member who made the trigger.

**An event trigger's `reads` say which events it is judged against.** An event they leave out never reaches the model for that trigger. Both write tools require `reads`: call `selan_remote_agent_event_trigger_read_sentence` with the sentence first, show the person the `reads` it answers, and send them, changed where the person wants, with `source` `person` once they are. It writes nothing, and it is refused while the model cannot be asked: try again shortly rather than guessing the reads. `reads` is an object of four fields:

-   `from`, the one source its events come from: `gitlab` (issue, merge\_request, comment, job, pipeline), `github` (issue, merge\_request, comment, pipeline, push, release), `jira` (issue, comment) or `custom` (custom). Events from two sources are two triggers.
-   `kinds`, each kind once and at least one, each a `kind` that source sends. A `job` or `pipeline` carries `statuses` (`success`, `failed`, `canceled`, `skipped`; it is heard only once finished), a `merge_request` its `merge_request_actions` (`opened`, `pushed` for new commits, `edited` for fields alone, `labelled`, `approved`, `unapproved`, `merged`, `closed`, `reopened`) and an `issue` its `issue_actions` (`opened`, `updated`, `labelled`, `moved` for a new status or board column, `closed`, `reopened`, `deleted`). Each set is non-empty, and every value stands for any. `comment`, `push`, `release` and `custom` take no set and are read whole. A status or action a source sends that none of these names is read by every trigger of its kind.
-   `projects`, up to 20, each once, written as the sentence writes them: a GitLab project or group path (`acme/web`, `acme`), a GitHub owner or `owner/repository`, or a Jira project key (`WEB`). Each reads itself and every project under it, `*` stands for any characters, `/` included (`acme/web-*`), and case is not read. Always sent: `[]` reads every project, and `custom` names none.
-   `source`, `sentence` when Selan's model read it from the sentence and `person` once a person has confirmed it.

`selan_remote_agent_triggers_list` answers each event trigger's `reads` in the same shape, null on one Reactor has not read yet.

A GitLab or GitHub comment event does not fire an event trigger while a run that holds it is going, or within two minutes of one ending. The runs that hold it are every run an event trigger of your company started, in any workspace, and every run of the trigger's own agent. The comment is held until the last of them ends, or, if they had all ended already, until your company's next event or run end; it is then judged again, so it fires late rather than never; it is given up after five tries or a day, shown as `gave_up` on the trigger's card. One judged again and found not to match shows as `ignored`.

`selan_remote_agent_event_trigger_update` takes the trigger's `id`, a new `sentence` and its `reads`, which replace the old ones whole: to keep them, send those `selan_remote_agent_triggers_list` shows. Leaving `runner_tags` out keeps the trigger's. Only a person makes that change, from their own client or on the Reactor screen: a run that needs a sentence reworded asks a person, naming the trigger's `id` and the new sentence. Pause, resume, fire and delete an event trigger with the same tools as a schedule.

### Company webhook

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_webhook_get` | The webhook's url and what it lets in | edit |  |
| `selan_remote_webhook_create` | Create the company's webhook and show its secret once | owner |  |
| `selan_remote_webhook_rotate` | Replace the secret, and optionally the url | owner | Yes |
| `selan_remote_webhook_allow` | Let one GitLab group, or one GitHub owner or repository, in | owner |  |
| `selan_remote_webhook_disallow` | Stop letting one GitLab group, or one GitHub owner or repository, in | owner | Yes |

**A company has one webhook, where outside events arrive for its event triggers.** `selan_remote_webhook_get` answers `webhook` (null until an owner creates it; otherwise its `url` and `allowed`, a list of `source` and `value`, never the secret) and `canEdit`, whether the caller is an owner.

`selan_remote_webhook_create` answers the `url` and the `secret` once. One url serves GitLab and GitHub alike, with the same secret. Give GitLab both under Settings, Webhooks in each project, the secret as the `X-Gitlab-Token`, with Issues events, Comments and Merge request events ticked, and Job events and Pipeline events for a trigger about CI. Give GitHub both under a repository's or an organization's Settings, Webhooks: the url as the Payload URL, Content type `application/json`, the secret as the Secret, and the events to send. GitHub signs each delivery with the secret, and one without a matching SHA-256 signature, or sent as a form, answers 401. Selan reads pull requests, reviews, review comments, issue comments, issues, pushes, workflow runs, check suites and releases, and ignores every other event. A company that already has a webhook is refused: rotate it. `selan_remote_webhook_rotate` requires `newUrl`, true or false, and answers the new `secret` once, with the `url`. The old secret stops at once, so each GitLab project and GitHub webhook needs the new one, and with `newUrl` true the old url stops answering too.

**GitLab and GitHub events are let in only once an owner allows them.** `selan_remote_webhook_allow` takes a `source` and a `value`. For `gitlab`, a group path such as `selan.ai` lets in events from the projects under it that carry the secret, and other groups are dropped. For `github`, an owner such as `acme` lets in signed events from all of its repositories, and one repository such as `acme/checkout-service` lets in that one alone; any other repository is dropped. An invalid entry answers 400, and so does a `custom` one. A company without a webhook answers 404. `selan_remote_webhook_disallow` removes an entry: the event triggers stay, and stop hearing that source.

**Your own service posts with the url alone.** Any request that is neither GitLab's nor GitHub's is `custom`: JSON of up to 1 MB, such as Jira's issue events, posted to the url with no secret, from any address. The url is the only key, so whoever holds it can post; `selan_remote_webhook_rotate` with `newUrl` true shuts out whoever held the old one. An `Idempotency-Key` header makes a repeated post count once.

### Google Cloud and connectors

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_agent_connectors_list` | An agent's connectors; an OAuth connector's `account` is the provider account its sign-in reached, `offered` the workspace connections it can act as and `shared` the one it does | read |  |
| `selan_remote_agent_connector_connect` | A link a person opens to sign an agent in to a connector | edit in the workspace |  |
| `selan_remote_workspace_connections_list` | A workspace's shared connections, several to one connector where it holds them, never a token | read |  |
| `selan_remote_agent_workspace_connection_choose` | Pick which of its workspace's connections to a connector an agent acts as | edit in the workspace |  |
| `selan_remote_agent_connector_forget` | Drop an agent's sign-in to one connector | owner of the workspace | Yes |

**An agent signs in to a connector from your terminal.** `selan_remote_agent_connector_connect` takes an agent id and a connector slug and answers with a link. Paste it into your browser's address bar and sign in to the provider: a link followed from another website starts no sign-in. Reactor then shows:

```text
Connected. You can close this tab and go back to your terminal.
```

If the sign-in fails it shows `Not connected`. The link works for 10 minutes and needs edit or owner in the agent's workspace. If your browser is signed in to a company that does not hold the agent, the page offers **Switch account**: sign in as the account that owns the agent and the link carries on.

**A workspace can share one sign-in among its agents.** Its owners sign an account in once, under the workspace's **Connections** in the Reactor web app: one or more connections for each connector. Every agent in the workspace then acts as one of them, the oldest unless an editor picks another for that agent, unless the agent has a sign-in of its own for that connector (or, for Postgres, logins of its own). A shared connection is never given to another workspace's agents, and only an owner of the workspace removes one; agents acting as it then act as the oldest remaining one, or, with none left, have no sign-in for that connector until it is connected again. See [Shared connections](https://selan.ai/docs/mcp-connections#shared-connections).

`selan_remote_workspace_connections_list` takes a `workspaceId` and answers each shared connection's `id`, `name`, connector `slug`, `account`, who added it, `expiredAt` (when the provider refused it for good; empty while it works) and `canManage`. `selan_remote_agent_connectors_list` shows the connection an agent acts as on the connector's row as `shared`, and lists the workspace's others to that connector as `offered`. `selan_remote_agent_workspace_connection_choose` takes the agent's `agentId`, the connector's `slug` and the `connectionId` of one of those; the agent acts as it from then on, or as the oldest again once an owner removes it. It also turns the workspace's connection back on for an agent that had it off with **Don't use**. A connection of another workspace or connector answers not found, and an agent's own sign-in still wins. Adding, signing in again and removing a shared connection stay in the Reactor web app.

Google Cloud signs an agent in like any other connector, with the slug `gcp`. After **Allow** the person chooses one of the [Google Cloud connections](https://selan.ai/docs/mcp-connections#google-cloud) an owner added; the agent then reads that connection's projects and products, and nothing else.

Jira & Confluence needs your Atlassian admin to allow Reactor first, or Atlassian's page stops at _Access to this domain is restricted_. See [Jira & Confluence](https://selan.ai/docs/mcp-connections#jira).

### Environment variables

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_agent_env_list` | An agent's environment variables by name, who set each and when; never a value | read |  |
| `selan_remote_agent_env_set` | Set one of an agent's environment variables for its next run | edit in the workspace |  |
| `selan_remote_agent_env_remove` | Remove one of an agent's environment variables | owner of the workspace | Yes |

**An agent's runs start Claude with its environment variables, and their values are write-only:** no tool or screen shows a value once it is set. Each tool takes the agent's `agentId`. `selan_remote_agent_env_list` answers `vars`, the agent's own, each `name` with `setBy` and `setAt`; `inherited`, the company-wide ones and its workspace's that its runs get too, with `overridden` where a nearer layer sets the same name and its value wins; and `canEdit`.

`selan_remote_agent_env_set` takes a `name` and a `value`, adds the variable or replaces its value, and answers `{ name }`. A name is capitals, digits and `_`, not starting with a digit, at most 64 characters. A value is 1 to 16,384 bytes of UTF-8 with no NUL byte. An agent holds at most 50 variables; replacing one never counts toward that. Names the runner owns are refused, with the rule in the message: any starting `SELAN_`, `ANTHROPIC_`, `CLAUDE_` or `GIT_`, and system names such as `PATH`, `HOME`, `NODE_OPTIONS`, `LD_PRELOAD` and `HTTPS_PROXY`. `selan_remote_agent_env_remove` takes the `name`; after it, its workspace's or a company-wide variable of that name reaches the agent's runs.

A change reaches the agent's next run, never one already going. Company-wide and workspace variables are set in the Reactor web app, under **Company variables** and **Workspace variables** in the workspace menu.

### An agent's own MCP servers

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_agent_mcp_list` | An agent's own MCP servers: names, hosts and header names, never a header value | read |  |
| `selan_remote_agent_mcp_set` | Add or replace one of an agent's own MCP servers, with the headers its runs send it | edit in the workspace |  |
| `selan_remote_agent_mcp_remove` | Remove one of an agent's own MCP servers | owner of the workspace | Yes |

**An agent can have MCP servers of its own, which only its runs get.** Claude Code reaches each from the run's own machine: a private address needs the agent placed on a company [Google Cloud project](https://selan.ai/docs/runners#google-cloud) whose network reaches it. The run's own Selan credential is never sent to them. Each tool takes the agent's `agentId`. `selan_remote_agent_mcp_list` answers `servers`, each with its `name`, the `host` of its address (never the path or query, which can carry a key), its `headerNames`, `setBy` and `setAt`; `inherited`, the servers of its workspace that its runs get too, with `overridden` where the agent's own server of that name is used instead; and `canEdit`. Header values are write-only: no tool or screen answers one.

`selan_remote_agent_mcp_set` takes a `name`, a `url` and `headers`, adds the server or replaces the one of that name, and answers `{ name }`. A name is a letter, then letters, digits, `-` and `_`, at most 40, unique per agent whatever the case; the server's tools reach Claude as `mcp__<name>__<tool>`. A name a connector of the catalog takes, or `selan-run` or `postgres`, is refused. The `url` is `https` with a hostname, or plain `http` only to an address in 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16, with no user or password; an empty string keeps the stored address of the server replaced. `headers` is 1 to 8 `{ name, value }`, each name once whatever the case and none the connection sets itself, such as `Host`, `Content-Type`, `Accept` or `Mcp-Session-Id`. A value is at most 4,096 characters of printable ASCII on one line and never holds `${`; an empty value keeps the one stored for that name. The server's headers become exactly those sent, so one it had that is left out is removed. An agent holds at most 8 servers, their header values together at most 16,384 bytes.

`selan_remote_agent_mcp_remove` takes the `name`, deletes the server and its header values, and answers `{ name }`; a name the agent has no server of is refused as not found. A change reaches the agent's next run, never one already going. In the Reactor web app it is **Your own MCP server** on the agent's Connectors tab.

### A workspace's MCP servers

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_workspace_mcp_list` | A workspace's MCP servers: names, hosts and header names, never a header value | read |  |
| `selan_remote_workspace_mcp_set` | Add or replace one of a workspace's MCP servers, which every agent in it gets | edit in the workspace |  |
| `selan_remote_workspace_mcp_remove` | Remove one of a workspace's MCP servers from every agent in it | owner of the workspace | Yes |

**A workspace can have MCP servers that every agent in it gets beside its own.** They work as an agent's own do, with the same rules for names, addresses and headers and the same limit of 8 servers, but each tool takes the `workspaceId` in place of an `agentId`. Where an agent has its own server of the same name, whatever the case, its runs get that one; `selan_remote_agent_mcp_list` shows each agent's inherited servers. Removing a workspace's server leaves an agent's own of that name in place. A change reaches each agent's next run, never one already going. These three tools are for your own signed-in session: a run, a supervisor's included, and a token a run or the CLI carries are neither offered them nor allowed to call them. In the Reactor web app they are **MCP servers** under **Connections** in the workspace menu, where an editor of the workspace adds and changes them.

### Questions

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_remote_questions_open` | What a workspace's agents are waiting on a person for, newest first | read in the workspace |  |
| `selan_remote_question_answer` | Answer an agent's question: its run resumes with the answer | edit in the workspace |  |
| `selan_remote_question_drop` | Close an agent's question unanswered | edit in the workspace | Yes |

How an agent asks, and where else it can be answered, is under [Questions](#questions) above. `selan_remote_questions_open` takes a `workspaceId` from `selan_remote_workspaces_list`, whose `asking` says which workspaces have any. It answers up to 50 questions, each with its `id`; `agentId`; `runId`, the run that asked; `question`; `details`; `askedAt`; and `imageUrls`, the images it attached, in order, each an address in Reactor that opens for a signed-in member who may read the question (an empty list when it attached none).

`selan_remote_question_answer` takes the question's `id` and a `text` of 0 to 2,000 characters, which it requires: an empty text tells the agent just _done_. It resumes the asking run's session as a new run of the agent, started for you, and answers `{ runId }`, the new run: follow it with `selan_remote_agent_run_detail`. Starting the run can take minutes. A question already answered or dropped, by anybody, is refused and nothing changes. A run that could not start is refused and leaves the question open to answer again. If the call times out, check `selan_remote_agent_runs_of_agent` before answering again: a refusal as already answered may be your first answer landing.

`selan_remote_question_drop` takes the `id` and closes the question for good, answering `{ id }`. An editor of the workspace may do it over MCP. The workspace whose role decides an answer or a drop is the one the agent is in now, not where it asked. A running agent cannot call these tools.

### Feedback

| Tool | What it does | Role | Destructive |
| --- | --- | --- | --- |
| `selan_feedback` | Tell Selan's team a Selan tool failed, misled you or is missing, or worked notably well | read |  |

`selan_feedback` takes a `kind`: `broken`, `confusing`, `missing` or `worked`; a `tool`, the Selan tool it is about, named as Selan lists it, such as `selan_whoami`, or `none`; and a `text` of 1 to 2,000 characters, refused rather than cut when longer. It answers with the number of the recorded report. Every member and every agent's run may send one, up to 20 an hour each. Never put secrets, credentials or customer data in `text`.

## Can a remote agent's run use it?

A remote agent's run reaches Selan MCP too, and starts other agents of its own workspace. **An agent may start another only when that one's list of callers names it**, set with `selan_remote_agent_trigger_set_callers`. `selan_agents_startable` and `selan_agent_start` do not appear in a person's tool list, and a call to one is refused with a pointer to `selan_remote_agent_run_start`. `selan_agent_run_wait` also answers a person, who may wait on any run they can read, where a running agent waits only on runs it started or its own.

| Tool | What it does |
| --- | --- |
| `selan_agents_startable` | The agents this run may start, each with its `agentId` and name |
| `selan_agent_start` | Start a run of another agent with a message of 1 to 4,000 characters, and optionally wait for its answer |
| `selan_agent_run_wait` | Wait up to 45 seconds for a remote agent run to end |

With `wait` true, `selan_agent_start` waits up to 45 seconds. `finished` true carries the run's `state` and `answer`, its final message, or its last one where `detail` says it is partial. `finished` false means the run is still going: call `selan_agent_run_wait` with its `runId` rather than starting it again, since a second start is a second run.

A start is refused when this agent is not on the other's list, when this chain of runs has already reached that agent, which is how a loop would begin, and while a run this one started of that agent is still going: a run has one run of each agent going at a time, so put everything for that agent in one message, or wait with `selan_agent_run_wait` before starting it again.

## What is not available over MCP?

-   **Secrets.** No tool returns a provider key. The secrets any tool shows are the company webhook's, once, to an owner, from `selan_remote_webhook_create` and `selan_remote_webhook_rotate`, a new runner's token, once, to an owner, from `selan_remote_runner_create`, and a new API token's secret, once, to an owner, from `selan_cli_token_create`. A credential is shown by its label, its vendor, whether it is serving and who added it, never by its value. An agent's environment variable is shown by its name, never by its value.

## Related

-   [Self-hosted runners](https://selan.ai/docs/runners): where the remote agents it manages can run.
-   [MCP connections](https://selan.ai/docs/mcp-connections): the other MCP servers Selan connects Claude to.
