---
title: Give agents one gateway to your apps
description: How agents reach your MCP apps through Admiral, how to connect an app, and what the tool counts mean.
section: Guides
order: 15
---

# Give agents one gateway to your apps

Admiral gives every agent session one gateway to your apps. An app is an MCP server or an API you connected in **Extensions → Connectors**. Every chat can use every app in Connectors.

Without the gateway, an agent loads every tool of every app before it does any work. Five apps can mean 500 tool descriptions sent with every request. Some agents slow down or fail mid-request. With the gateway, the agent sees a few tools and looks up the app tool it needs when it needs it.

## What Admiral does for each session

When Admiral starts a session, it adds these servers:

- The connector service, which reaches every app in Connectors.
- `admiral`, which lets the agent open terminals and manage child sessions.
- `browse`, OpenCode Browse, which lets the agent use your own browser.

Your agents may also list the same apps in their own settings, such as `~/.config/opencode/opencode.json` or `~/.claude.json`. Admiral imports those apps into Connectors when it starts. For each session it then turns off the agent's own copy, so the agent reaches the app only once, through the gateway.

| Agent | What Admiral turns off for its sessions |
| --- | --- |
| OpenCode | Its global servers that are also in Connectors. |
| Claude Code | Its servers that are also in Connectors. claude.ai connectors and plugin servers stay. |
| ChatGPT / Codex | Its servers that are also in Connectors. |
| Cursor and the other agents | Nothing. Their own servers stay, and Connectors marks them as loaded directly. |

Admiral changes only the sessions it starts. It does not edit your agent settings files. OpenCode, Claude Code, or Codex started from a terminal still loads its own servers.

If you remove an app from Connectors, agents load their own copy again.

## Read the tool counts

Each app card shows how many tools the app has, for example "195 tools". Open an app to see:

- **Tools.** The same count.
- **Used by.** "Every agent, through Admiral", or which agents load the app themselves.

The **Agents** group at the bottom of Connectors has one line per agent. For example, "Reaches 7 apps through Admiral · Loads 2 directly: 45 tools". If an agent would load more than 40 tools directly, the line shows **Too many tools**. Add that agent's servers to Connectors, or remove them from the agent's settings.

## Connect an app

1. Open **Extensions → Connectors**.
2. Select **Add connector**.
3. Search for the app and select it. If the app is not listed, select **Custom** and enter its name and address.

If the app needs a sign-in, your browser opens to the app's sign-in page. Sign in there. Connectors shows the app as **Connected** when it is done. If you add an app on another device, finish the sign-in on that device.

Connectors also adds the servers your agents already list in their own settings. You do not need to add those again.

## How agents use the gateway

The gateway gives an agent one tool, `execute`. The agent writes a few lines of code that find the app tool, call it, and return only what it needs. For example, to list Linear issues the agent searches for "linear issues", calls the tool it finds, and returns each issue's title and state.

This keeps each answer small. Admiral also cuts any single result longer than 40,000 characters (about 10,000 tokens) and tells the agent to ask for less, for example the first 50 rows.

## If an app stops working in a session

Connectors shows each app's state. **Needs sign-in** and **Can't reach** apply to every session, because every session reaches the app through Admiral. Fix the app in Connectors, then start a new session.

## Next steps

- [Let an agent use the browser and terminal](let-an-agent-use-the-browser-and-terminal.md): what the `admiral` server gives agents.
- [Settings pages](../reference/settings.md): what each settings page controls.
