Quickstart

To quickly get started with GL Connectors, you can use the shared credentials for authentication. Simply utilize the shared BOSA_API_URL, API_KEY, identifier, and user-secret to connect and authenticate your application. By using these credentials, you can seamlessly integrate and start leveraging the functionalities provided by Gl Connectors, allowing you to rapidly prototype and test your applications without the hassle of generating additional keys.

you can use https://api.bosa.id for BOSA_API_URL production or https://staging-api.bosa.id for BOSA_API_URL staging.

The following example uses list_pull_requests action to get 10 pull requests from GDP-ADMIN/bosa-sdk (note that the following code assumes the user already has a Github Integration). The example utilizes Bosa Connectors' Fluent style execution.

from bosa_connectors.connector import BosaConnector

bosa = BosaConnector(api_base_url=BOSA_API_URL, api_key=API_KEY)
user = bosa.authenticate_bosa_user(identifier, secret)

# input parameters
params = {
    "limit": 10,
    "page": 1,
    "owner": "GDP-ADMIN",
    "repo": "bosa-sdk",
}
# execution
response = bosa.connect('github') \
    .action('list_pull_requests') \
    .params(params) \
    .max_attempts(3) \
    .token(user.token) \
    .run()

# Print the result
print(response.get_data())

Setting up an Integration

To set up a certain integration (e.g., github, google, gdrive, etc.), you need to request a connector authentication, which will create an OAuth2 login URL, which you can then follow to link an integration to your account. For more details, check the In-Depth Setup.

Setting up a Custom Integration

Unlike the previous section, this section highlights if you need to bring a custom configuration to modules that support it. For example, SQL Connection. The complete documentation can be found here in Custom Configurations.

Multiple Integration

A BOSA user may add multiple integrations to a connector. When running the connector, you can choose an integration; otherwise the first integration added (the default) is used. The default integration can be changed or deleted.

Execute with Specific Integration

There are two ways to specify which integration to use when executing connector:

  1. Parameter identifier: str on execute(...)

  1. Method identifier(identifier: str | None = None) on BOSA Connector Fluent.

Change Default Integration

The default integration can be changed. See the example code below.

Delete Integration

An integration can be deleted. If the default integration is deleted, the most recently created integration becomes the new default. Example code for deleting an integration is shown below.

GL Connectors MCP

GL Connectors provide a comparable MCP server with the Connectors SDK functionality. We provide an MCP Server for each Connectors we have (they are hosted under different MCP endpoints). They are authorized using API Key and the preauthorized token that can be obtained through the above method using BOSA Connectors SDK. Here we give an example on how to connect to Connector's Github MCP Server.

Please note that X-Bosa-Integration header is OPTIONAL. See more information here.

Claude Desktop (STDIO)

Connecting Directly (VSCode, Cursor, Windsurf, etc.)

Last updated