Roo Code is an open-source AI coding agent that runs inside VS Code with real file system access, terminal control, and multi-step workflows. It works across entire project workspaces through specialized modes like Code, Architect, and Orchestrator. Available as a VS Code Extension for local development, or as Cloud Agents that integrate with Slack and GitHub. Roo Code natively supports MCP, connecting external tools and data sources via STDIO or Streamable HTTP.
By default, Roo Code has no access to live enterprise data. CData Connect AI bridges this gap by exposing hundreds of data sources. Once connected, Roo can introspect live schemas, validate queries, and generate code directly inside VS Code, retrieved by real enterprise data.
Step 1: Configure Azure Data Lake Storage connectivity for Roo Code
Connectivity to Azure Data Lake Storage from Roo Code is made possible through CData Connect AI's Remote MCP Server. To interact with Azure Data Lake Storage data from Roo Code, start by creating and configuring a Azure Data Lake Storage connection in CData Connect AI.
-
Log into Connect AI, click Sources, and then click Add Connection
π Adding a connection in Connect AI
-
Select Azure Data Lake Storage from the Add Connection panel
π Selecting data source
-
Enter the necessary authentication properties to connect to Azure Data Lake Storage.
Authenticating to a Gen 1 DataLakeStore Account
Gen 1 uses OAuth 2.0 in Entra ID (formerly Azure AD) for authentication.
For this, an Active Directory web application is required. You can create one as follows:
- Sign in to your Azure Account through the
- Select "Entra ID" (formerly Azure AD).
- Select "App registrations".
- Select "New application registration".
- Provide a name and URL for the application. Select Web app for the type of application you want to create.
- Select "Required permissions" and change the required permissions for this app. At a minimum, "Azure Data Lake" and "Windows Azure Service Management API" are required.
- Select "Key" and generate a new key. Add a description, a duration, and take note of the generated key. You won't be able to see it again.
To authenticate against a Gen 1 DataLakeStore account, the following properties are required:
- Schema: Set this to ADLSGen1.
- Account: Set this to the name of the account.
- OAuthClientId: Set this to the application Id of the app you created.
- OAuthClientSecret: Set this to the key generated for the app you created.
- TenantId: Set this to the tenant Id. See the property for more information on how to acquire this.
- Directory: Set this to the path which will be used to store the replicated file. If not specified, the root directory will be used.
Authenticating to a Gen 2 DataLakeStore Account
To authenticate against a Gen 2 DataLakeStore account, the following properties are required:
- Schema: Set this to ADLSGen2.
- Account: Set this to the name of the account.
- FileSystem: Set this to the file system which will be used for this account.
- AccessKey: Set this to the access key which will be used to authenticate the calls to the API. See the property for more information on how to acquire this.
- Directory: Set this to the path which will be used to store the replicated file. If not specified, the root directory will be used.
π Configuring a connection (Salesforce is shown)
-
Click Save & Test
-
Navigate to the Permissions tab and update 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 Roo Code. It is best practice to create a separate PAT for each integration to maintain granular access control.
-
Click the gear icon at the top right of the Connect AI app to open Settings
-
On the Settings page, go to the Access Tokens section and click Create PAT
-
Give the PAT a descriptive name and click Create
π Creating a new PAT
- Copy the token when displayed and store it securely. It will not be shown again
With the Azure Data Lake Storage connection configured and a PAT generated, Roo Code can now connect to Azure Data Lake Storage data through Connect AI.
Step 2: Configure Connect AI in Roo Code
CData Connect AI can be integrated with Roo Code by registering the MCP Server directly in the Roo Code MCP configuration panel. Once registered, Roo Code agents can call live Azure Data Lake Storage data through MCP tools without additional setup.
Method 1: Direct MCP configuration
Users can register the CData Connect AI MCP Server directly in the Roo Code MCP settings. Once registered, agents in any project can query live Azure Data Lake Storage data through MCP tools without additional setup.
-
Open VS Code with the Roo Code extension installed
-
Click the Roo Code icon in the Activity Bar
-
Navigate to Settings, then choose MCP Servers in the Roo Code pane and turn on Enable MCP Servers, now click Edit Global MCP to open the MCP configuration file
π Opening MCP configuration in Roo Code
-
In the mcp_settings.json file, add the following inside the mcpServers object, replacing base64encode with your Base64-encoded email:PAT
{
"mcpServers": {
"cdata-mcp": {
"type": "streamable-http",
"url": "https://mcp.cloud.cdata.com/mcp",
"headers": {
"Authorization": "Basic base64encode(USERNAME:PAT)"
}
}
}
}
π Configuring the CData MCP Server in Roo Code
-
Save the file to register the MCP server
-
Return to the MCP Servers panel and confirm that cdata-mcp is listed and its toggle is enabled. If it is not enabled, toggle it on
π Confirm that CData MCP Server is listed
With the CData MCP Server registered and enabled, Roo Code agents can now query and act on live Azure Data Lake Storage data through Connect AI in any project.
Query live Azure Data Lake Storage data from Roo Code
With the MCP server configured, start a conversation in the Roo Code chat panel to interact with live Azure Data Lake Storage data.
-
Open the Roo Code chat and enter a prompt to explore your data, for example:
- List all available catalogs in my cdata-mcp connection.
- Show the schemas and tables available for Azure Data Lake Storage.
- Query the top 5 records from Azure Data Lake Storage data.
-
The agent calls the CData Connect AI MCP Server and returns live results from Azure Data Lake Storage data
π Roo Code agent returning live data from CData Connect AI
Method 2: Build an application with natural language
Users can direct Roo Code to build a full application that connects to the
CData Connect AI MCP Server through a natural language prompt. The agent
gathers the required endpoint and credentials interactively, then generates
a working application wired to live Azure Data Lake Storage data β all from the Roo Code
chat panel inside VS Code.
-
Open the Roo Code panel in VS Code and select your preferred model
from the dropdown
-
Enter a prompt that describes the application you want to build.
For example:
I would like to build a small application that connects to a remote MCP
HTTPS server. I already have the MCP endpoint URL and the required
credentials. The application should:
- Establish a connection to the remote MCP server
- Authenticate using the provided credentials
- Retrieve and list all available catalogs from the MCP
Please make sure the credentials are stored securely in a .env file
and not hardcoded in the application.
-
Roo Code will prompt you to provide the MCP endpoint URL and
authentication credentials. Supply the following values:
- MCP Endpoint URL: https://mcp.cloud.cdata.com/mcp
- Authorization: Basic base64(email:PAT)
-
Roo Code creates the project directory, initializes a
Node.js project, installs the necessary packages, and stores
credentials securely in a .env file
π Roo Code agent building an application connected to CData Connect AI
At this point, Roo Code has built an application that communicates with
the CData Connect AI MCP Server and retrieves live Azure Data Lake Storage data, all from
a single natural language prompt inside VS Code.
Get CData Connect AI
To access hundreds of SaaS, Big Data, and NoSQL sources directly from Roo Code, try CData Connect AI today!
Sign up for a free 14-day trial of CData Connect AI, and as always, our world-class Support Team is available to assist you with any questions you may have.