Integrating Gumloop with Bitbucket Data via CData Connect AI

Yazhini G
Yazhini G
Technical Marketing Engineer
Leverage the CData Connect AI Remote MCP Server to enable Gumloop to securely access and act on Bitbucket data within automated workflows.

Gumloop is a visual automation platform designed to create AI-powered workflows by combining triggers, AI nodes, APIs, and data connectors. By integrating Gumloop with CData Connect AI through the built-in MCP (Model Context Protocol) Server, workflows can seamlessly access and interact with live Bitbucket data.

The platform provides a low-code environment, making it easier to orchestrate complex processes without heavy development effort. Its flexibility allows integration across multiple business applications, enabling end-to-end automation with live data.

This article outlines the steps required to configure Bitbucket connectivity in Connect AI, register the MCP server in Gumloop, and build a workflow that queries Bitbucket data.

Step 1: Configure Bitbucket Connectivity for Gumloop

Connectivity to Bitbucket from Gumloop is made possible through CData Connect AI's Remote MCP Server. To interact with Bitbucket data from Gumloop, we start by creating and configuring a Bitbucket connection in CData Connect AI.

  1. Log into Connect AI, click Sources, and then click Add Connection
  2. Adding a Connection
  3. Select "Bitbucket" from the Add Connection panel
  4. Selecting a data source
  5. Enter the necessary authentication properties to connect to Bitbucket.

    For most queries, you must set the Workspace. The only exception to this is the Workspaces table, which does not require this property to be set, as querying it provides a list of workspace slugs that can be used to set Workspace. To query this table, you must set Schema to 'Information' and execute the query SELECT * FROM Workspaces>.

    Setting Schema to 'Information' displays general information. To connect to Bitbucket, set these parameters:

    • Schema: To show general information about a workspace, such as its users, repositories, and projects, set this to Information. Otherwise, set this to the schema of the repository or project you are querying. To get a full set of available schemas, query the sys_schemas table.
    • Workspace: Required if you are not querying the Workspaces table. This property is not required for querying the Workspaces table, as that query only returns a list of workspace slugs that can be used to set Workspace.

    Authenticating to Bitbucket

    Bitbucket supports OAuth authentication only. To enable this authentication from all OAuth flows, you must create a custom OAuth application, and set AuthScheme to OAuth.

    Be sure to review the Help documentation for the required connection properties for you specific authentication needs (desktop applications, web applications, and headless machines).

    Creating a custom OAuth application

    From your Bitbucket account:

    1. Go to Settings (the gear icon) and select Workspace Settings.
    2. In the Apps and Features section, select OAuth Consumers.
    3. Click Add Consumer.
    4. Enter a name and description for your custom application.
    5. Set the callback URL:
      • For desktop applications and headless machines, use http://localhost:33333 or another port number of your choice. The URI you set here becomes the CallbackURL property.
      • For web applications, set the callback URL to a trusted redirect URL. This URL is the web location the user returns to with the token that verifies that your application has been granted access.
    6. If you plan to use client credentials to authenticate, you must select This is a private consumer. In the driver, you must set AuthScheme to client.
    7. Select which permissions to give your OAuth application. These determine what data you can read and write with it.
    8. To save the new custom application, click Save.
    9. After the application has been saved, you can select it to view its settings. The application's Key and Secret are displayed. Record these for future use. You will use the Key to set the OAuthClientId and the Secret to set the OAuthClientSecret.
    Configuring a connection (Salesforce is shown)
  6. Click Save & Test
  7. Navigate to the Permissions tab in the Add Bitbucket Connection page and update the User-based permissions. Updating permissions

Add a Personal Access Token

A Personal Access Token (PAT) is used to authenticate the connection to Connect AI from Gumloop. It is best practice to create a separate PAT for each service to maintain granularity of access.

  1. Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
  2. On the Settings page, go to the Access Tokens section and click Create PAT.
  3. Give the PAT a name and click Create. Creating a new PAT
  4. The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.

With the Bitbucket connection configured and a PAT generated, Gumloop is prepared to connect to Bitbucket data through the CData MCP server.

Step 2: Connect to the MCP server in Gumloop

The MCP server endpoint and authentication values from Connect AI must be added to Gumloop credentials.

  1. Sign in to Gumloop and create an account
  2. Visit the Gumloop Credentials page to configure MCP server
  3. Click on Add Credentials and search and select MCP Server
  4. Configuring MCP server MCP server app
  5. Provide the following details:
    • URL: https://mcp.cloud.cdata.com/mcp
    • Label: A descriptive name such as Bitbucket-mcp-server
    • Access Token / API Key: leave blank
    • Additional Header: Authorization: Basic YOUR EMAIL:YOUR PAT
    • Configuring to CData MCP server
    • Save the credentials
    • Saved MCP Credentials

The MCP server is now available to build workflows in Gumloop.

Step 3: Build a workflow and explore live Bitbucket data with Gumloop

  1. Visit Gumloop Personal workspace and click on the Create Flow
  2. Create Gumloop workflow
  3. Select the icon or press Ctrl + B to add a node or a subflow
  4. Add a node
  5. Search for Ask AI and select it
  6. Select Ask AI
  7. Click Show More Options and enable the Connect MCP Server? option
  8. Enable
  9. From the MCP Servers dropdown, choose the saved MCP credential
  10. Add a Prompt and Choose an AI Model according to your requirements
  11. Add Prompt
  12. After configuring the required details, Click Run to run the pipeline
  13. Example 1: Gumloop workflow execution Example 2: Gumloop workflow execution

With the workflow run completed, Gumloop demonstrates successful retrieval of Bitbucket data through the CData Connect AI MCP server, with the MCP Client node providing the ability to ask questions, retrieve records, and perform actions on the data.

Get CData Connect AI

To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!

Ready to get started?

Learn more about CData Connect AI or sign up for free trial access:

Free Trial