Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
"en/LlamaIndex-Client",
"en/Mistral-Client",
"en/N8N-Client",
"en/Replit-Client",
"en/Windsurf-Client"
]
},
Expand Down Expand Up @@ -700,6 +701,7 @@
"en/LlamaIndex-Client-Embedded",
"en/MicrosoftCopilot-Client-Embedded",
"en/N8N-Client-Embedded",
"en/Replit-Client-Embedded",
"en/Windsurf-Client-Embedded"
]
},
Expand Down Expand Up @@ -1226,6 +1228,7 @@
"ja/LlamaIndex-Client",
"ja/Mistral-Client",
"ja/N8N-Client",
"ja/Replit-Client",
"ja/Windsurf-Client"
]
},
Expand Down Expand Up @@ -1622,6 +1625,7 @@
"ja/LlamaIndex-Client-Embedded",
"ja/MicrosoftCopilot-Client-Embedded",
"ja/N8N-Client-Embedded",
"ja/Replit-Client-Embedded",
"ja/Windsurf-Client-Embedded"
]
},
Expand Down
2 changes: 1 addition & 1 deletion en/AAS.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
title: "Azure Analysis Services"
---

import AzureAnalysisServices from '/snippets/en/en/Data-Sources/AAS.mdx';
import AzureAnalysisServices from '/snippets/en/Data-Sources/AAS.mdx';

<AzureAnalysisServices />
83 changes: 83 additions & 0 deletions en/Replit-Client-Embedded.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: "Replit Agent"
description: "Replit Agent is an AI-powered coding assistant built into the Replit IDE."
---

## Prerequisites

Before you can configure and use Replit with Connect AI, you must first do the following:

- Install the Replit IDE.

- Connect a data source to your Connect AI account. See [Sources](/en/Sources) for more information.

- Generate an [OAuth JWT bearer token](/en/Authentication-Embedded). Copy this down, as it acts as your password during authentication.

- Obtain an OpenAI API key: [https://platform.openai.com/](https://platform.openai.com/).

## Connect Replit to the Connect AI MCP

<Steps>
<Step>
Open the official Replit MCP learning template available [here](https://replit.com/@matt/Learn-about-MCP?v=1&utm_source=matt&utm_medium=blog&utm_campaign=mcp-in-3#README.md). This template includes a preconfigured MCP runtime environment and sample configuration.
</Step>

<Step>
In Replit, click **Remix**. Replit does the following:

- Creates a editable copy of the project.
- Installs MCP dependencies.
- Initializes the environment.

Wait for the environment to fully load before continuing.
</Step>

<Step>
Inside the project is a file named `mcp-server-config.json`. Copy and paste the following into this file. Replace the authorization header with the credentials obtained in the prerequisites.

```json
{
"systemPrompt": "You are a helpful AI assistant.

Today's date is {today_datetime}.",
"llm": {
"provider": "openai",
"model": "gpt-4o-mini"
},
"mcpServers": {
"cdata-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.cloud.cdata.com/mcp",
"--header",
"Authorization": "Basic Bearer OAUTH_JWT_TOKEN" //OAuth JWT Token
]
}
}
}
```
</Step>

<Step>
Replit requires an LLM key to run MCP workflows. In the **Replit Chat**, when asked for an LLM key, provide your OpenAI API key. Replit stores this key securely in the **Secrets Manager**.
</Step>

<Step>
You can now open the **Replit Chat** panel and issue MCP commands.

For example, enter the prompt `"List all MCP tools."` The output looks like the following:
<Frame>
<img src="./images/replit_client_output.png" alt="Replit Test Output" />
</Frame>
</Step>

<Step>
To test whether Replit can communicate with the CData MCP successfully, enter the prompt: `"Show me all available catalogs."` Replit should return a list of catalogs from Connect AI.
</Step>

<Step>
You can now query your connected data source(s) in Connect AI using the Replit's LLM.
</Step>
</Steps>

85 changes: 85 additions & 0 deletions en/Replit-Client.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
title: "Replit Agent"
description: "Replit Agent is an AI-powered coding assistant built into the Replit IDE."
---

## Prerequisites

Before you can configure and use Replit with Connect AI, you must first do the following:

- Install the Replit IDE.

- Connect a data source to your Connect AI account. See [Sources](/en/Sources) for more information.

- Generate a Personal Access Token (PAT) on the [Settings](/en/Settings#access-tokens) page. Copy this down, as it acts as your password during authentication.

- Base64-encode your Connect AI credentials in the following format: `Base64("email:PAT")`.

- Obtain an OpenAI API key: [https://platform.openai.com/](https://platform.openai.com/).

## Connect Replit to the Connect AI MCP

<Steps>
<Step>
Open the official Replit MCP learning template available [here](https://replit.com/@matt/Learn-about-MCP?v=1&utm_source=matt&utm_medium=blog&utm_campaign=mcp-in-3#README.md). This template includes a preconfigured MCP runtime environment and sample configuration.
</Step>

<Step>
In Replit, click **Remix**. Replit does the following:

- Creates a editable copy of the project.
- Installs MCP dependencies.
- Initializes the environment.

Wait for the environment to fully load before continuing.
</Step>

<Step>
Inside the project is a file named `mcp-server-config.json`. Copy and paste the following into this file. Replace the authorization header with the Base64-encoded credentials obtained in the prerequisites.

```json
{
"systemPrompt": "You are a helpful AI assistant.

Today's date is {today_datetime}.",
"llm": {
"provider": "openai",
"model": "gpt-4o-mini"
},
"mcpServers": {
"cdata-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.cloud.cdata.com/mcp",
"--header",
"Authorization": "Basic BASE64_ENCODED_EMAIL:PAT" //Authorization obtained in prerequisites
]
}
}
}
```
</Step>

<Step>
Replit requires an LLM key to run MCP workflows. In the **Replit Chat**, when asked for an LLM key, provide your OpenAI API key. Replit stores this key securely in the **Secrets Manager**.
</Step>

<Step>
You can now open the **Replit Chat** panel and issue MCP commands.

For example, enter the prompt `"List all MCP tools."` The output looks like the following:
<Frame>
<img src="./images/replit_client_output.png" alt="Replit Test Output" />
</Frame>
</Step>

<Step>
To test whether Replit can communicate with the CData MCP successfully, enter the prompt: `"Show me all available catalogs."` Replit should return a list of catalogs from Connect AI.
</Step>

<Step>
You can now query your connected data source(s) in Connect AI using the Replit's LLM.
</Step>
</Steps>

Binary file added en/images/replit_client_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion snippets/en/AI-tools-embedded-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
- [LlamaIndex](/en/LlamaIndex-Client-Embedded)
- [Microsoft Copilot Studio](/en/MicrosoftCopilot-Client-Embedded)
- [n8n](/en/N8N-Client-Embedded)
- [Windsurf](/en/Windsurf-Client_Embedded)
- [Replit Agent](/en/Replit-Client-Embedded)
- [Windsurf](/en/Windsurf-Client-Embedded)
1 change: 1 addition & 0 deletions snippets/en/AI-tools-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
- [Microsoft Copilot Studio](/en/MicrosoftCopilot-Client)
- [Mistral Le Chat](/en/Mistral-Client)
- [n8n](/en/N8N-Client)
- [Replit Agent](/en/Replit-Client)
- [Windsurf](/en/Windsurf-Client)