Connections

For setup, access changes and your own connection settings through MCP or the installed CLI, see Manage a workspace. Admin operations appear only for workspace admins.

A connection is an MCP server the workspace's admins added, like DeepWiki or Linear, or an HTTP API (an OpenAPI spec: each operation is a tool) or a GraphQL endpoint (each Query and Mutation field is a tool). Your agent calls its tools through OpenBelt, which holds the token, decides whether you may, and keeps a record:

Finding one

Before building an app, search for what it's about: its data or its service.

connections({ search: "pokemon" }) // pokeapi, with pokemon_retrieve, pokemon_list, ...
connections({ search: "weather forecast" }) // weather-gov
connections({ search: "a team lunch poll" }) // none: build without one

OpenBelt's own tool list stays the same whatever the workspace adds: connection tools are called by name, <connection>.<tool>.

Skills from connections

When an MCP server advertises MCP's skills extension (io.modelcontextprotocol/skills), OpenBelt snapshots its skills and their files (up to 50 skills, 2 MB total per connection) on add and refresh. Each skill is named <connection>-<name> under skill://_connection/<connection>/<connection>-<name>/SKILL.md, so two connections with the same skill name never collide, and its cached bytes are hashed as served so digests stay consistent until the next refresh.

Connection skills follow the connection's access level: anyone whose effective level is none cannot see or read them. Everyone else sees them in skills/list (and the skills tool), in connections, and in search (which matches their names and descriptions too). Servers that don't advertise io.modelcontextprotocol/skills receive no skills/* calls.

Whose token

Each connection's credential belongs to one of:

credentialWho sets the tokenA call runs with
nonenobody: the server takes none (DeepWiki)no token
workspacea workspace admin, once for everyonethe workspace's token
personeach person, their ownyour own token
boththe workspace has one, and each person may set their ownwhichever there is; as when both

With both tokens there, connection_call needs as: "workspace" or as: "me", and is refused without it, naming both.

Most servers sign in with OAuth (below). For one that takes a pasted token, the person pastes theirs on the connection's page, <workspace host>/connections/<name>, or in a terminal (setYourToken says how):

pbpaste | bun run workspace connections token linear --mine     # from an OpenBelt checkout
curl -X POST https://acme.example.com/_me/connections/linear/token \
  -H "Authorization: Bearer $OPENBELT_TOKEN" --data-binary @-    # paste it, then Ctrl-D

Never paste a token into a chat with an agent, and an agent never asks for one. A token is never in a result, an error, a list or a log line; a server that echoes one back gets it replaced by ***.

Signing in with OAuth

Most servers (Linear, Notion, GitHub, Gmail, Jira and Confluence) take no pasted token: the person signs in to the service, in a browser, and allows OpenBelt. connections says signIn: "oauth" for such a connection.

Who may use what

Each connection has a level for everyone, and an admin may set one for a group or a person:

Your level is your own if an admin set one, else the lowest among your groups that have one, else everyone's. On top, an admin can turn a tool off for everyone.

That level is the most you can use. You can choose less for yourself, on the connection's page: read only, off, or one tool off. What you get is the stricter of the two, so an admin's limit always wins and nobody can choose their way past it; your own choice is yours alone to undo (an admin can't), and one made under a lower level is kept for when it rises. A refusal says which setting refused the call, whose it is (own for your own choice), and who can change it: to an admin, the command that does it; to anyone else (a member's agent, a person viewing an app's page), which admins to ask, by email, and no command. The connections tool shows both layers: level (the workspace's), ownLevel and ownOff (yours), gets, and asked while you've asked for more.

In apps

An app's pages call connection tools with tools.call from /sdk.js, for whoever is viewing (SDK). Its openbelt.json "tools" lists each one and binds it:

Nobody signed in gets only a tool that takes no token. A removed member gets nothing. A level of none refuses an app's call as it refuses an agent's. The caller app is the host the page is on (<app>--<workspace>.<domain>), so one app's page can't call as another, and another origin's request to an app's /_tools/call is refused.

What's refused, and why

A refused call rejects with code, message, fix, url (Connections, for needs_token and needs_consent), setting and the trace. It's a line in the app's log (app_logs with the trace) and in the workspace's activity with the app's name; an admin's explain with app runs the same decision as a page of that app. Deploying warns about a binding that can't work, naming it: no such connection or tool, "workspace" on a connection that takes only people's own tokens (or "viewer" on one that takes only the workspace's), a disabled tool, a level nobody has, a workspace token not set yet.

check_app's test people have no tokens: a tool bound to "viewer" is refused test_person, one bound to "workspace" runs at the level of the person whose agent ran the check (never more than they could use themselves). An app that binds tools gets 30 more seconds per check.

An app's functions (openbelt.json "uses") are held to the same levels: a run is judged as whoever started it, even a later or trigger run it booked, and a schedule's or webhook's (no person) at the stricter of everyone's level and the app owner's (Functions). "uses" asks for every tool of the connection (<connection>.* on Connections), with the same consent as the page's "viewer" tools. A function runs with a person's own token only while they use the app themselves: from its own page, from their agent (call_function), or by hand as its owner or an admin, and only once they allowed the app all of what it asks for there. Another app's page calling the function, and a later or trigger run they started, get the workspace's token only (on a connection that takes only people's own tokens, the call is refused, saying so).

Marks

A connection's tile in Connections is its service's logo on the service's brand color (GitHub, Figma, Linear, Notion, Stripe and about twenty more), or, with none, its first letter on a tint of one of twelve colors made from its name: the same connection is the same color everywhere. OpenBelt looks for a logo by the catalog provider the connection is, then by its name (figma, github-api, google-calendar), so a connection added by address under a service's name gets its logo too. A near-black brand (GitHub, Vercel) takes the page's own text color, so it shows in light and dark. The logos are Simple Icons' (CC0), in packages/platform/src/marks.ts; Slack and Salesforce aren't in that set, so theirs are letters.

A workspace admin can put their own icon in its place, for everyone in the workspace: click the tile beside the name on the connection's page and pick an image (it's uploaded at once), or bun run workspace connections icon <name> <image file> (POST /_workspace/connections/<name>/icon with {"type": "image/png", "base64": "..."}). It's a PNG, JPEG, GIF, WebP, SVG or ICO up to 64 KB; a square one looks best. The x on the tile's corner (or --clear, /icon/clear) goes back to the logo or letter. Anyone signed in to the workspace gets it at /connections/<name>/icon; an SVG's scripts never run there. The tile is white, and an SVG on it keeps its light colors in dark mode (many favicons turn white for a dark tab).

A connection added with no logo of ours and no icon gets one found for it while it's added, with no token, in 6 seconds at most (packages/platform/src/connection-icon.ts): the icons its server card lists (/.well-known/mcp/server-card.json, else /.well-known/mcp.json), else its website's, from the MCP host's home page and /favicon.ico, then its domain's (mcp.apify.com, then apify.com; a host on a shared domain like someone.vercel.app stops at its own). An SVG wins, else the biggest image; an .ico's PNG is taken out of it. Never the website the server signs in at, which may be Auth0's or Clerk's. Each request is held to the rule a connection's URL is (below). The add's answer says where it came from (icon), the log says so too, and it's an icon like an admin's: replace it or remove it the same way. None found, it keeps its letter. Adding it again doesn't look again once it has one.

Your settings

Connections (<workspace host>/connections) is one page with tabs, each with how many it holds:

Each connection has its own page (/connections/<name>):

An app's page sends you here when a call needs your sign-in or your consent: OpenBelt's sheet in the page ("This app wants to use your GitHub and Linear", Review) links to the app's review page, /connections?connect=<connection>&app=<app>. It asks once for every account the app's openbelt.json binds to "viewer": the app's tile and the accounts' marks, "Allow this app to use your accounts", the app's name under it, then a row each (its tools under "3 tools"):

Allow, once every account it needs is connected, allows the app on all of them at once and takes you back to its page.

<workspace host>/settings, from the menu at the sidebar's foot where your name is, has the rest. Both are OpenBelt's own pages, for whoever the front door says is viewing: an app can't frame them, and only they can change them (a POST from anywhere else is refused).

Settings is one centered page with its own list of pages beside it (on a phone, a row of pills at its top): You and, for an admin, View as…, then Connections and Agents, then the admins' pages. The old /_account, /connections?c=<name>, /_access and /admin/access links still work: they go to Connections, the connection's page and Activity, query and all.

For admins

Workspace admins manage connections in Settings (From the catalog, below), or with their own API token through bun run workspace or the HTTP routes below (People and groups says how to point it at your OpenBelt).

From the catalog

OpenBelt has a catalog of MCP servers it knows (Linear, Notion, Jira and Confluence, Sentry, Asana, Stripe, Supabase, Cloudflare, Vercel, Neon, PostHog, Datadog, Grafana, PagerDuty, GitLab, Airtable, PayPal, Paddle, Ramp, Webflow, Canva, Miro, ClickUp, Attio, Granola, GitHub, Google Workspace, DeepWiki, Microsoft Learn, AWS Knowledge, fal, Higgsfield, Apify and more; bun run providers list lists them all), and of public APIs that need no sign-in (OSV, Open-Meteo, World Bank, Crossref, ClinicalTrials.gov, Spaceflight News, PokeAPI, Countries, the National Weather Service, Frankfurter's exchange rates, Wikipedia, xkcd, and Swagger's Petstore sandbox). Each knows its address, how people sign in, and good defaults: whose account (each person's own, mostly), read only for everyone, the read-only scopes to ask for, and which tools only read when the server doesn't say. An API also knows its spec, the parts of it a workspace gets, fixes to what the spec gets wrong (Petstore's addPet needs an id; xkcd's tools get names), and one call it makes when added, to show it answers. So adding one is its name:

bun run workspace connections add linear                                   # the catalog's defaults
bun run workspace connections add stripe --credential person --everyone all  # any flag overrides one
bun run workspace connections add linear-eng --provider linear             # a second one, another name
bun run workspace connections add pokeapi                                  # an API: "test call pokemon_retrieve: ok"
bun run providers list                                               # what's in it

Over HTTP it's POST /_workspace/connections/add with {"provider": "linear"}, and any of name, url, credential, everyone, signIn, scopes, authorizeParams (and an API's spec) to override. An id the catalog doesn't have is refused, naming the closest. An API's answer has tested: its test call's tool, whether it answered as expected, and the start of what it said.

In a browser, Connections' Workspace tab (<workspace host>/connections?tab=workspace, admins only) lists the workspace's connections, each with its state: Ready, Needs setup (an OAuth app to register), the workspace's sign-in stopped working, or how many people connected theirs. Add a connection opens the catalog (search it with /). A service's page asks two things, whose account and what people can do, then adds it and opens its page. A server not in the catalog is added by its address there too.

The catalog is data: a folder per service in packages/platform/providers/, a file per server or API in it (its README has the format). bun run check holds every file to it, and bun run providers probe asks each live server, without an account, whether it still signs in the way its file says, and reads each API's spec, applies its fixes and makes its test call.

Signing in: what admins set up

Most services need nothing: OpenBelt registers itself with the service's sign-in server when you add the connection. A few need more:

Everything else is the same for a signed-in credential as for a pasted one: levels, explain, activity, apps' consent and functions' "uses".

By address

bun run workspace connections add deepwiki https://mcp.deepwiki.com/mcp --credential none
bun run workspace connections add linear https://mcp.linear.app/mcp --credential both --everyone read
bun run workspace connections connect linear --workspace                         # signs in with OAuth: prints the link
bun run workspace connections renew linear --workspace                           # refresh the workspace's sign-in now
bun run workspace connections add gh https://api.githubcopilot.com/mcp/ --credential person --scopes "read:user"
bun run workspace connections client gh --client-id Ov23li... < secret.txt # GitHub: an OAuth app you registered
bun run workspace connections add sentry https://... --credential workspace --sign-in token
bun run workspace connections token sentry --workspace < sentry-token.txt      # or --from-env SENTRY_TOKEN
bun run workspace connections list                                         # --mine: as you see them
bun run workspace connections show linear
bun run workspace connections refresh linear                               # list its tools again
bun run workspace connections remove linear
bun run workspace access linear everyone all
bun run workspace access linear group:contractors none
bun run workspace access linear person:dave@acme.com all
bun run workspace access linear person:dave@acme.com unset
bun run workspace access linear disable delete_issue
bun run workspace access linear read <tool>                                # mark it read; unread undoes it
bun run workspace explain bob@acme.com linear.create_issue         # --with workspace|me
bun run workspace explain bob@acme.com linear.get_me --app my-issues        # as a page of that app
bun run workspace activity --connection linear --person bob@acme.com
bun run workspace activity --app my-issues                                     # one app's pages' calls
bun run workspace activity --tool deploy_app --outcome refused                 # agents' refused deploys

In a browser, a group's page in Settings (<workspace host>/admin/groups/<name>) sets what the group can use, and People sets one person's exceptions (People and groups). Search events and press Enter, or choose Person, Tool, App, Result or Source below the search field. Each picker searches its values; active filters appear as removable chips. Removing one preserves the others.

Settings, Events (<workspace host>/admin/events) is for admins only (members have no Workspace pages):

APIs (OpenAPI and GraphQL)

An API that has no MCP server is added from its spec. Its tools then work like any connection's: levels, read (an operation that's GET, HEAD or OPTIONS, or a GraphQL query, is read-only), disabled tools, explain, activity, apps' tools and code's workspace.connections.

bun run workspace connections add petstore --kind openapi --spec https://petstore3.swagger.io/api/v3/openapi.json --credential none
bun run workspace connections add xkcd https://xkcd.com --kind openapi --spec https://api.apis.guru/v2/specs/xkcd.com/1.0.0/openapi.json --credential none
bun run workspace connections add github --kind openapi --spec <api.github.com.json URL> --credential workspace --tags repos,users
gh auth token | bun run workspace connections token github --workspace
bun run workspace connections add internal --kind openapi --spec https://internal.example.com/openapi.yaml --credential workspace --auth header:x-api-key
bun run workspace connections add countries https://countries.trevorblades.com --kind graphql --credential none
bun run workspace connections add ghql https://api.github.com/graphql --kind graphql --credential workspace --tags query

Big answers: fields

An agent's connection_call shows at most 24,000 characters of an answer, still JSON when it was JSON (a list keeps its first items, an object leaves out its biggest fields), with a line saying what was left out. To get what you need instead, name it with fields, OpenBelt's option beside input (never in it), by dot path through arrays:

connection_call({
  tool: "pokeapi.pokemon_retrieve",
  input: { id: "pikachu" },
  fields: ["name", "types.type.name", "sprites.front_default"],
})
// {"name":"pikachu","types":[{"type":{"name":"electric"}}],"sprites":{"front_default":"https://..."}}

A page does the same with tools.call(name, input, { fields }) (SDK), so only those parts reach the browser. A tool error's answer is kept whole.

Read-only, and what a refresh holds

GET, HEAD and OPTIONS operations and GraphQL queries are read-only; every other operation needs all, and its refusal says so. A refresh holds a tool (off until an admin turns it on, as for a new one) when it's new, when it's now sent another way (getItem, now a PUT), or when it now says it's read-only and didn't before. That last one goes for MCP servers too: a server that starts marking delete_thing read-only doesn't open it to everyone at read.

HTTP

Each is one request with Authorization: Bearer <token>; like the rest of /_workspace and /_me, anything a browser sends (a cookie, an Origin) is a 401, so no app page can reach a token.

RouteWhoBody
GET /_me/connectionsanyone
POST /_me/connections/<name>/token, /token/clearanyonethe token, raw (or {"token": "..."}); /token/clear also disconnects a sign-in
POST /_me/connections/<name>/connectanyonenone, or {"scope": "..."} to ask for a scope a tool needed: answers {"url"}, the sign-in link to open (a server that signs in with OAuth)
POST /_me/connections/<name>/signin/refreshanyonenone: refreshes your sign-in now (renew --mine)
POST /_me/connections/<name>/ownanyone{"level": "read"}: less for yourself (all undoes it)
POST /_me/connections/<name>/own/toolanyone{"tool": "create_issue", "on": false}
POST /_me/connections/<name>/ask, /ask/cancelanyone{"want": "all", "note": "why you need it"}
GET /_workspace/connections, /_workspace/connections/<name>workspace admin
POST /_workspace/connections/addworkspace admin{"provider": "linear"} (the catalog), or {"name": "deepwiki", "url": "https://...", "credential": "none", "everyone": "read"}, and "signIn": "oauth" or "token"
POST /_workspace/connections/remove, /refreshworkspace admin{"name": "deepwiki"}
POST /_workspace/connections/<name>/token, /token/clearworkspace adminthe token, raw (or {"token": "..."})
POST /_workspace/connections/<name>/connectworkspace adminnone, or {"scope": "..."}: answers {"url"}, the workspace's sign-in link
POST /_workspace/connections/<name>/signin/refreshworkspace adminnone: refreshes the workspace's sign-in now (renew --workspace)
POST /_workspace/connections/<name>/clientworkspace admin{"clientId": "...", "secret": "..."}: an OAuth app you registered at the service
POST /_workspace/accessworkspace admin{"connection": "linear", "who": "group:contractors", "level": "none"}
POST /_workspace/access/toolworkspace admin{"connection": "linear", "tool": "delete_issue", "change": "disable"}
GET /_workspace/access/asksworkspace admin
POST /_workspace/access/asks/grant, /asks/closeworkspace admin{"connection": "linear", "want": "all", "people": "bob@acme.com,carol@acme.com"}
POST /_workspace/explainworkspace admin{"person": "bob@acme.com", "tool": "linear.get_me", "as": "me"} (or "app": "my-issues")
POST /_workspace/activityworkspace admin{"connection": "linear", "person": "bob@acme.com", "app": "my-issues", "limit": 50} (or "tool", "outcome")

who is everyone, group:<name> or person:<email>; level is none, read, all, or unset (a group's or person's). change is disable, enable, read or unread. A tool is named with or without its connection (create_issue or linear.create_issue). An ask's want is read or all (the next level up when left out) and its note at most 200 characters, on one line. asks/grant gives each asker an exception at the level they asked for and closes their asks; asks/close closes them; people (emails or ids, comma-separated) limits either to those people, and leaving it out takes every open ask for that level. An exception for someone removed from the workspace is refused, and explain says they were removed.

How it works

Sign-ins (OAuth)

The engine is oauth-discovery.ts (finding a server's sign-in), oauth-client.ts (registering, grants, revocation), providers.ts's quirksOf (what a provider needs beyond the standard, by the provider id kept on the connection) and signins/ in WorkspaceDO: store.ts (credential rows, a pasted token or a sign-in), registrations.ts, refresh.ts (a refresh once per credential, and the background sweep), revocation.ts and flow.ts (discovery, Connect and the way back).

Finding out:

Registering: OpenBelt has one registration per authorization server and workspace host, shared by every connection that signs in there. It's made in MCP's order:

  1. An OAuth app an admin registered (connections client).
  2. Else OpenBelt's own app there, when the deploy has one (below).
  3. Else its client metadata document, <workspace host>/_oauth/clients/<registration>.json, when the server takes one and can reach the workspace host (https, with no front door: not a tailnet or Access).
  4. Else dynamic client registration (RFC 7591).

A server that can't use the document (invalid_client on the way back) gets OpenBelt registered the other way. Sign-ins come back to their registration's callback, <workspace host>/_oauth/callback/<registration> (the authorization server's host and a hash of its issuer: accounts_google_com-1a2b3c4d5e6f). There's one per authorization server, so Gmail and Calendar on one Google OAuth app share it.

OpenBelt's own apps

A deploy can hold one OAuth app per service that takes no self-registration, so no workspace registers its own: OPENBELT_CONNECT_<FAMILY>_CLIENT_ID and OPENBELT_CONNECT_<FAMILY>_CLIENT_SECRET, where the family is the catalog's folder (GITHUB, GOOGLE, ASANA). The app's one callback is on the base host, https://<base host>/_oauth/callback/<family> (https://openbelt.com/_oauth/callback/github).

Refreshing:

Keeping it safe:

Quirks: servers that need more than the standard are handled as data (quirksFor, from the catalog's files). OpenBelt adds Google's access_type=offline prompt=consent include_granted_scopes=true and leaves out the resource parameter there. A .default scope (Entra) is asked for alone, with offline_access.

Source: docs/connections.md on GitHub