Organizations and teams#
An organization is your tenant on bastn. Nothing in one organization is visible to another.
A team is the boundary inside an organization. Servers, agents, keys, connectors, approvals and audit rows belong to one team, and a team's agents see only that team's servers. The first account of a new organization gets a team named general.
Your email address is your account. One person can belong to several organizations and teams with one password.
When your organization is created from a company email domain, it is named after that domain. Other people join by invitation. An org admin can also turn on auto-join for the domain, so a verified address there joins the organization as a member, without a team until one is assigned.
Roles#
| Level | Role | What it can do |
|---|---|---|
| Organization | org_admin | Administer the organization and all its teams: invitations, teams, the bound domain, approval policies and the organization's activity log. |
| Organization | member | Belong to the organization. It grants no access by itself. |
| Team | admin | Administer the team: members, agents and their keys, categories, policy bundles, connectors, servers, tool pins and approvals. |
| Team | member | Use the team: connect MCP clients to it, and read its servers, agents, connectors, approvals, activity log rows and analytics. |
| Team | viewer | Read the team like a member, but hold no credential that acts in it. |
In these docs, "team admin" means the team's admin or an org_admin of its organization.
Agents#
An agent is a registered AI agent or automation. You create one under Agents, with New agent. It belongs to one team and calls that team's servers.
An agent records:
- a name and an optional one-line purpose;
- a business owner and a technical owner, both members of the organization;
- a risk tier:
low,medium,highorcritical, or unset. The tier selects a risk profile with extra requirements. For example,mediumholds destructive calls for approval, andcriticalalso holds every write and requires an owner.
Agent status#
An agent's status is its kill switch. It applies to every credential that resolves to the agent.
| Status | Its calls | Its keys | Back to active |
|---|---|---|---|
| Active | allowed by policy | valid | |
| Paused | refused | kept | Resume |
| Killed | refused | revoked, with its OAuth grants | Revive, with a reason. Revoked keys stay revoked; mint new ones. |
| Retired | refused | revoked | Never. Its record and history are kept. |
A change of status reaches every part of bastn within a second or two. Pausing, killing or retiring an agent also rejects its pending approval requests and cancels its running durable calls. A call already sent upstream when the status changes runs to its end.
Keys#
A virtual key (bastn-sk-...) is a bastn credential for /mcp. It is shown once, when it is minted. bastn stores only a hash of it.
- A key attached to an agent is the agent's credential. Its calls are attributed to the agent and stop with the agent's kill switch. A team admin gets the first one when creating the agent (New agent, with Create a key for it now), and more from the agent's drawer with Mint key for this agent or under Agents › Keys with New key.
- Every key acts as an agent. New keys are minted for an agent. Keys made before v0.4.0 may act as no agent; since v0.5.0 their calls are refused. The Keys tab counts them and offers Make an agent in each one's menu, which creates an agent named after the key and attaches the key to it. A team admin can also attach a key to an existing agent of its team.
- A key can expire, up to one year ahead. Without an expiry it never expires.
- You can revoke your own keys, and an org admin can disable or revoke any key of the organization's teams. Clients using a revoked key stop working at once.
OAuth grants#
MCP clients that support MCP sign-in can connect with your dashboard account instead of a key. When you sign in, you pick the team the access is for and, if you administer it, the agent the access acts as. bastn then issues the client its own short-lived tokens and refreshes them.
A grant bound to an agent behaves like a key attached to it, kill switch included. Since v0.5.0 a grant must be bound to an agent: the sign-in asks for one, and calls from an older grant bound to none are refused. Grants are listed under Agents › Connected apps, where you can pause or revoke them. See Connect MCP clients.
Servers and tools#
A server is an MCP server or API that bastn fronts. Each server belongs to a team, has a name, and carries its own policy. Its tools appear on /mcp as <server>__<tool>.
A server reaches its upstream in one of these ways:
| Transport | What it is |
|---|---|
http | A remote MCP server over Streamable HTTP. |
connector | One capability of a connector on your network: a local MCP server or a REST API. |
federation | Several upstreams behind one server name and one policy. |
commands | The team's reviewed command specs, run on its connectors. One per team. See Commands and scripts. |
fleet | Tools for the team's agents to list its connectors, push scripts and propose command specs for review. One per team. |
Pins record a tool's definition. Servers you create in the dashboard hide tools until they are pinned, so a new tool never appears to agents unannounced, and a pinned tool whose definition later changes is flagged as drift. See Add servers.
Categories#
A category is a named set of tools for one agent, for example a support-kit of jira__search, billing__refund and notes__read. An agent assigned a category sees only those tools on /mcp. A category only narrows: adding a tool to it never makes reachable a tool that the server's policy denies. Manage categories under Agents, then Categories in the More menu of the tabs.
Policies and approvals#
Each server's policy allows and denies tools, checks arguments and limits rates. Approval policies hold chosen calls for a person. See Policies and Approvals.