Table of Contents
Overview
Connectors are remote MCP servers registered into the Agent Stack. Effectively, they take some responsibilities away from MCP Clients to improve user experience and reduce overhead within the Agent Stack. Once connector is created and connected, it can be used as any regular remote MCP server by both clients and agents.API Reference
Core of connectors API consists of the following endpoints:| Endpoint | Purpose |
|---|---|
POST /api/v1/connectors | Create a connector |
GET /api/v1/connectors | List all connectors |
GET /api/v1/connectors/{id} | Read a connector |
DELETE /api/v1/connectors/{id} | Delete a connector |
POST /api/v1/connectors/{id}/connect | Connect a connector |
POST /api/v1/connectors/{id}/disconnect | Disconnect a connector |
/api/v1/connectors/{id}/mcp endpoint. For example, to inspect a connector using MCP Inspector:
| Endpoint | Purpose |
|---|---|
GET /api/v1/connectors/presets | List connector presets |
Lifecycle
Following diagram illustrates the lifecycle of a connector: Usual flow works as follows:- Create: Client creates a connector by calling
POST /api/v1/connectorswith MCP server URL. - Connect: Client initiates connection by calling
POST /api/v1/connectors/{id}/connect. If the MCP server requires user authorization, the response will contain an authorization URL. - Authorize: User visits the authorization URL, authenticates and grants access. Authorization server redirects the user back to the platform with an authorization code.
- Complete: Platform exchanges the authorization code for access and refresh tokens. Once completed, the connector is in
connectedstate and ready to be used.
Error handling
The connectors API endpoints return standard HTTP status codes in responses. Apart from that, there are two additional mechanisms used by connectors API to relay errors to the client.Authorization Code Flow
An error may happen during the authorization code flow as described in RFC6749 Section 4.1. When noredirect_url has been provided by the client during connection initiation, the server responds with a HTML page containing the error. Otherwise, the user will be redirected to redirect_url instead. The error and error_description query parameters will be included in the redirect.
Disconnection
Connector can be asynchronously disconnected at any time. This can happen for various reasons including intentional disconnect, refresh token expiration or an arbitrary error. The client MAY check for thedisconnected state and read disconnect_reason to read the description of what happened.
Connector Presets
Connector presets provide pre-configured settings for common MCP servers, simplifying the connector creation process. Presets can include:- URL: The MCP server endpoint
- Client credentials: Pre-configured OAuth
client_idandclient_secretfor public clients - Metadata: Display information such as name and description
Available Presets
The platform comes with several built-in presets:| MCP Server | URL | Description |
|---|---|---|
| Stripe | https://mcp.stripe.com | Payment processing and financial infrastructure tools |
| Box | https://mcp.box.com | Search, access and get insights on your Box content |
| GitHub | https://api.githubcopilot.com/mcp | Access and interact with your GitHub repositories and code intelligence |
Using Presets
When creating a connector withPOST /connectors, the system automatically matches the provided URL against available presets (this behavior is controlled by the match_preset parameter, which defaults to true). If a match is found:
- Client credentials: If no
client_idis provided in the request, the preset’s credentials are used automatically - Metadata: If no metadata is provided in the request, the preset’s metadata (name, description) is used
match_preset: false in the request.
Configuring Presets
Connector presets are configurable via Helm values when deploying Agent Stack. The presets are defined in theconnector.presets section of values.yaml:
CONNECTOR__PRESETS environment variable, which is populated from a Kubernetes Secret created by Helm. This allows administrators to:
- Add custom MCP server presets for their organization
- Modify or remove default presets
- Configure client credentials for private MCP servers
- Customize metadata (names, descriptions) for better user experience