---
title: "It connects to your tools · Tempo AI Platform docs"
description: "How an owner connects any remote MCP server (Linear, Notion, Sentry, Slack and others) once, and every cloud agent gets its tools while the credentials stay in the gateway."
url: "https://gateway.tempo-dev.workers.dev/docs/guides/connectors"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# It connects to your tools

A connector is a remote MCP server you connect once: Linear's, Notion's, Sentry's, Slack's or any other that speaks streamable HTTP. Its tools then reach your cloud agents in that app as `<connector>__<tool>`, and the token, header or OAuth grant behind it never leaves the gateway. GitHub has its own connector, with git and gh, in [Services](https://gateway.tempo-dev.workers.dev/docs/services.md#github).

[Get your Tempo Key](https://gateway.tempo-dev.workers.dev/key.md) · [API reference](https://gateway.tempo-dev.workers.dev/reference)

## Architecture

```text
POST /v1/connectors {name: "linear", url, auth}
  -> a row in D1 under the wallet and app, its secret sealed
       |
an agent's turn (Codex or Claude Code)
  MCP server "gateway"     the platform's own tools
  MCP server "connectors"  every connected server's tools, as
                           linear__list_issues, notion__search ...
       |
tools/call linear__list_issues
  -> the gateway opens a session with mcp.linear.app, with the
     stored token (refreshed when it expires), and relays the answer
```

The gateway proxies every connected server through one MCP server per agent session, adding the credentials it keeps on each call.

## Connecting a server

Connect one with `POST /v1/connectors` or the MCP tool `connectors_add`. Connecting a name again replaces it.

- **name**\
  Lowercase letters, digits and dashes, up to 24 characters. It prefixes the server's tools, so `linear` gives `linear__list_issues`.
- **url**\
  The server's streamable HTTP endpoint, such as `https://mcp.linear.app/mcp`. Plain http, private addresses and the gateway itself are refused, for this URL and for every URL the server or its authorization server points the gateway to; redirects are not followed off the origin.
- **auth**\
  One of four kinds, `none` by default:
  - `{ "type": "none" }` for a public server.
  - `{ "type": "bearer", "token": "…" }` sends `Authorization: Bearer` with an API key you made at the service.
  - `{ "type": "header", "name": "X-API-Key", "value": "…" }` sends any other header.
  - `{ "type": "oauth" }` signs in as you with OAuth 2.1, as the MCP authorization spec describes.

A server without OAuth must answer `tools/list` before it is saved, and the answer says how many tools it has. Secrets are encrypted at rest and never shown again.

**Connect DeepWiki, which needs no auth, and list the tools agents get from it.**

```bash
curl https://gateway.tempo-dev.workers.dev/v1/connectors \
  -H "Authorization: Bearer $TEMPO_KEY" -H 'content-type: application/json' \
  -d '{"name": "deepwiki", "url": "https://mcp.deepwiki.com/mcp"}'

curl https://gateway.tempo-dev.workers.dev/v1/connectors/mcp \
  -H "Authorization: Bearer $TEMPO_KEY" -H 'content-type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
```

## OAuth

With `oauth`, the gateway runs the whole sign-in itself:

1. **Discover.** It reads the server's protected resource metadata, from the `WWW-Authenticate` of its 401 or the well-known path, and then its authorization server's metadata.
2. **Register.** It registers itself as a client by dynamic client registration, with `/v1/connectors/callback` as its redirect URI. For a server without registration, pass `client_id` (and `client_secret`, if it has one) of a client you registered with that redirect URI.
3. **Authorize.** The answer has `authorize_url`, with a PKCE S256 challenge, a state and the server as the resource. Open it, or give it to the person whose account it is; the connector is `authorizing` until then.
4. **Callback.** The authorization server sends the browser back to the gateway, which checks the state (once, for 10 minutes), exchanges the code with the PKCE verifier and stores the tokens sealed. The connector is then `connected`.
5. **Refresh.** An expired access token, or a 401 from the server, is refreshed with the refresh token. When the authorization server refuses the refresh (`invalid_grant`, or a 400 or 401) the connector turns `expired`, and `POST /v1/connectors/:name/authorize` (or `connectors_authorize`) gives a new authorize URL; the old tokens keep working until it is opened. A network error, a timeout or a 5xx while refreshing fails only that call, and the connector stays `connected`.

## Which agents get it

Every agent of the wallet in the connector's app gets every connected connector, including ones connected later: a new agent at once, a running one within ten minutes. To narrow it, create the agent with `connectors: { mcp: ["linear"] }`, or `[]` for none.

- **Only the owner's turns**\
  A turn another wallet starts or pays for on a shared agent, and a turn an email, a text or a visitor woke, gets no connector tools, so nobody else acts with your accounts.
- **The tools as the server wrote them**\
  Names, descriptions and input schemas are the server's own, with the connector's name in front. A server that is down, refuses its credentials, takes more than 8 seconds to list its tools or pages them past 20 pages adds no tools until it answers again; the other connectors still list.

| Route                               | What it does                                                                       | Price |
| ----------------------------------- | ---------------------------------------------------------------------------------- | ----- |
| GET /v1/connectors                  | The wallet's connectors in the key's app, with their status                        | free  |
| POST /v1/connectors                 | Connect a remote MCP server, or replace the one of that name: { name, url, auth? } | free  |
| POST /v1/connectors/:name/authorize | A new OAuth authorize URL for a connector                                          | free  |
| DELETE /v1/connectors/:name         | Disconnect a server and forget its credentials                                     | free  |
| POST /v1/connectors/mcp             | The connectors as one MCP server, for your own MCP clients                         | free  |
| GET /v1/connectors/callback         | Where the authorization server sends the browser back                              | free  |

The MCP tools `connectors_list`, `connectors_add`, `connectors_authorize` and `connectors_remove` do the same from any MCP client or agent, and the gateway's MCP App lists them in its tools palette. Send `Gateway-App` to work in an app other than `default`.

[<- It supports every tool](https://gateway.tempo-dev.workers.dev/docs/guides/tools.md) · [It's an API ->](https://gateway.tempo-dev.workers.dev/docs/guides/api.md)
