Esta página aún no se ha traducido - se muestra la versión en English.

connectors

Ready-made connections to GitHub, Stripe, Notion, Atlassian, Cloudflare, Supabase and Git. Each person connects their own account.

En esta página

Connectors

A connector is a ready-made connection to a service that has an MCP server. BX Agents ships with seven: GitHub, Stripe, Notion, Atlassian, Cloudflare, Supabase and Git. Every agent offers them by default. Offering one does not connect it: nothing contacts a service until a person connects their own account.

  • Personal. A token or sign in belongs to one person. The agent uses it only when that person asks, and two people never share a token or a session.
  • Sealed. Tokens are stored in the vault, locked to the host of the service. The model never sees one.
  • Your own servers still work. The services you write under mcpServers in Agent.yml are separate. An mcpServers entry with the same name as a connector replaces that connector, and the build warns.

The Connectors page: the built-in connectors, each with its risk and how it signs in

States

StateMeaning
availableOffered, not connected by you
connectedConnected, its tools are on
needs attentionConnected, but the service refused the token (it failed, expired or was revoked), at connect time or during a call. Connect again
needs a programA local program the connector runs (such as uvx for Git) is not installed

Limit them in Agent.yml

# Agent.yml
connectors:                  # leave the key out to offer every connector
  only: [ github, notion ]   # just these
  override:
    github:
      timeout: 30000
      options: { readonly: true }
      tools: [ search_repositories ]
  toolWarning: 100           # warn a person above this many tools

Or offer everything except some:

connectors:
  exclude: [ stripe ]

exclude names connectors that only would offer, so using both for different connectors is an error at build.

connectors: none turns the catalog off. The order of evaluation is only, then exclude, then override. override accepts timeout (milliseconds, 1000 to 600000), options (the values a connector asks for), scopes (only for connectors with a sign in) and tools (the most a person may switch on: a ceiling, not a default). toolWarning is a whole number from 10 to 2000 (100 by default). Everything is checked when the project is built, and bxAgents inspect shows what each agent offers.

Connecting

A connector asks for either a token or a sign in, shown on its page in the catalog.

WhereHow
Web pageThe Connectors page, with tabs for All, Connected, Needs attention and In Agent.yml, each at its own address (<path>/connectors/all, connected, attention, agent). See web-ui
Chat in the terminal/connect, /connect NAME, /connect NAME off, /connect NAME tools
CLIbxAgents connect, bxAgents connect NAME
Gateways/connect lists them. A token is never typed in a chat: the reply points to the web page

Medium and high risk connectors show what they can do and ask for confirmation first. A token is checked with the service before it is sealed. At the terminal the token goes in a hidden box. For scripts:

bxAgents connect github --token-env=GITHUB_TOKEN --confirm
printf '%s' "$TOKEN" | bxAgents connect github --stdin --confirm
bxAgents connect github tools off delete_file    # also: tools on NAME, tools off all, tools readonly
bxAgents connect github options repository=/path/to/repo   # connectors with options

In chat, --token-env is honored only on the terminal (tui) transport. A token connected on the web belongs to that web account, not to the same person's chat identity on a platform. Programs the agent runs on its own machine (Git) are connected by an admin when the agent is served. Switching it off stops the process, and changing an option restarts it with the new value, at once.

Tools and the tool count

Each person can turn tools on and off, one by one, from the drawer on the web page or with tools in the terminal. Tools are listed alphabetically. When the total on exceeds toolWarning, the page warns that the model may choose worse. An admin's tools override sets the ceiling for everyone. A tool that is off, over the ceiling or not connected is refused when the model calls it, not only hidden from it.

Scheduled runs

A routine runs as the person who made it, so it uses that person's connectors. A schedules/*.bx file belongs to no person and gets no connector tools.

API

RouteDoes
GET /connectorsThe connectors, your state for each, and your tool count. Never a token
POST /connectors/connectConnect one (token, sign in, or local program)
POST /connectors/disconnectDisconnect one
POST /connectors/optionsChange a connector's options
GET, POST /connectors/toolsList and switch tools

Adding a connector

The catalog is the YAML files in src/main/bx/catalog/connectors/. Add one file, run bxAgents connectors check, then regenerate the catalog page with tools/generate-connector-docs.bxs. A spec fails if the page is stale. Every entry records the date it was checked against the service's own documentation (verifiedOn).

Needs bx-ai 3.8

Signing in to a served agent needs the bx-ai fix for web requests (argument form reserved in web requests, bx-ai issue 334). Tokens connected by hand are not affected.

Editar esta página Descargar Markdown Última actualización Nov 26, 2026, 8:45:51 AM Report an issue