Where servers live#
A server belongs to one team. Its tools are on /mcp for that team's keys and OAuth grants, named <server>__<tool>. Team admins add and change their team's servers under Tools, on the Servers tab.
There are these ways to reach an upstream:
| You have | Add it as |
|---|---|
| An MCP server reachable over the internet | an http server |
| An MCP server or REST API on a private network or a laptop | a connector server, through a connector you run there |
| Several upstreams that should share one name and one policy | a federation server |
| CLIs on your hosts, served through reviewed command specs | the team's commands server, see Commands and scripts |
| Agents that should find the team's connectors, push scripts or propose command specs | the team's fleet server, see Reviewed scripts |
Add a remote MCP server#
- Open Tools and choose New server.
- Use a ready-made recipe at the top of the drawer, such as github, or fill in the form below it.
- Keep the HTTP transport. Connector is beside it, and the other transports are under More types.
- Enter a Server name. It becomes the prefix of every tool, for example
filesgivesfiles__read_file. Names are unique within your organization and cannot contain__. - Paste the Upstream URL of the server's Streamable HTTP endpoint, for example
https://files.example.com/mcp. - If the upstream needs a credential, tick Upstream needs a token and set the Auth header (for example
Authorization) and the Auth token. IncludeBearerin the token if the upstream expects it.
The server's drawer opens next. Its tools are hidden from agents until you enable them: see Choose which tools agents see.
The auth token is write-only. bastn stores it encrypted and never shows it again, and agents never see it.
Note
bastn refuses upstream URLs that point at loopback or link-local addresses, including cloud metadata endpoints. To reach a service on your own network, use a connector.
Per-user tokens#
Some upstreams should see each person's own account rather than one shared token. Open the server, then Advanced policy. Under Caller auth:
mountuses the shared auth token. This is the default.preferuses your own token when you have saved one, and the shared token otherwise.requireneeds your own token. Without it the call fails before it reaches the upstream.
Each person saves their token once under Your token, in the same section. It is stored encrypted, bound to that server and its upstream, and never shown again. Changing the server's upstream URL invalidates saved tokens.
Add a server through a connector#
Once a connector is online and offers a capability:
- Open Tools and choose New server.
- Pick the Connector transport and name the server.
- Choose the Connector and the Capability it offers.
The connector holds the upstream credential and calls the service locally. bastn never sees that credential. A team server can only use its own team's connectors.
For a REST API that the connector serves from an OpenAPI spec, the server's drawer has a Pick tools section listing the operations the connector offers. Pick the ones agents may use. Operations the connector's configuration excludes cannot be called whatever the gateway allows.
Choose which tools agents see#
Every server starts with New tools set to deny, including servers in a policy file that leave new_tools out. Their tools stay hidden and blocked until they are pinned. This way a tool the upstream adds later never reaches agents unannounced.
A server with nothing pinned says so at the top of its drawer, with the number of tools it lists. Enable all N tools pins every tool it lists at that moment. Review tools opens them on the All tools tab instead.
The All tools tab of Tools lists every tool of your servers. Pin one tool at a time, or use Pin the catalog in a server's menu there to pin all its current tools. A pin records the tool's definition at that moment.
New tools and the other protections below are in the server's drawer, under Advanced policy. Set New tools to allow on a server if you want every tool it lists to be available as soon as it appears, or to hold if you want each new tool put in front of you instead. hold hides and blocks unpinned tools like deny, and adds each one to Approvals, Tool reviews. See Review held tools.
Drift#
A pinned tool whose description or input schema changes upstream has drifted. Under When a tool changes on the server:
offdoes not check.alertrecords the change and still allows the call.blockrefuses every tool that is not pinned or has drifted.holdrefuses them likeblock, and adds each one to Tool reviews.
Review a drifted tool on the All tools tab and Re-pin it to accept the new definition, or decide it in Tool reviews when the server holds it.
Review held tools#
With New tools or When a tool changes set to hold, bastn queues every tool it keeps out. Open Approvals, then Tool reviews under More. Each card shows the tool's description and input schema; a changed tool shows the pinned definition beside the new one.
- Approve and pin pins exactly the definition shown. The tool appears to agents, and a call the agent retries goes through.
- Reject keeps the tool out. bastn does not queue that same definition again; a later change is queued.
While a tool waits, a call to it is refused with a message that it is waiting for review. A team admin of the server's team, or an org admin, decides; each decision is recorded in the audit log.
Protect results#
Under Advanced policy, each server can also:
- Scan results for secrets: private keys, cloud tokens and JWT-shaped secrets.
redact, the default for a new server, replaces a match with[redacted]before the client sees it.blockwithholds the whole result. The upstream has already run in both cases.offpasses results as they are. A result that streams progress is scanned as it arrives, so progress still reaches the client while the tool runs. - Redact personal data (email addresses, payment card numbers, IBANs and international phone numbers) in results and in what the audit log stores, replacing each match with
[redacted:kind]. - Sign the caller: send a signed assertion of the calling user, team and agent to an upstream you own. It is off by default.
Set the policy#
Each server carries its own tool policy: allow and deny lists, argument rules, roles and rate limits. See Policies. To hold chosen calls for a person, see Approvals.
What is not available on the hosted service#
Servers that start a local program (the stdio transport) run a process on the bastn host, so they are not available to teams on the hosted service. Run such a server next to your own systems with a connector instead: a connector can start a stdio MCP server as a child process.