diff --git a/docs.json b/docs.json index c66f4d3..9213f71 100644 --- a/docs.json +++ b/docs.json @@ -304,6 +304,7 @@ "en/LlamaIndex-Client", "en/Mistral-Client", "en/N8N-Client", + "en/Replit-Client", "en/Windsurf-Client" ] }, @@ -700,6 +701,7 @@ "en/LlamaIndex-Client-Embedded", "en/MicrosoftCopilot-Client-Embedded", "en/N8N-Client-Embedded", + "en/Replit-Client-Embedded", "en/Windsurf-Client-Embedded" ] }, @@ -1226,6 +1228,7 @@ "ja/LlamaIndex-Client", "ja/Mistral-Client", "ja/N8N-Client", + "ja/Replit-Client", "ja/Windsurf-Client" ] }, @@ -1622,6 +1625,7 @@ "ja/LlamaIndex-Client-Embedded", "ja/MicrosoftCopilot-Client-Embedded", "ja/N8N-Client-Embedded", + "ja/Replit-Client-Embedded", "ja/Windsurf-Client-Embedded" ] }, diff --git a/en/AAS.mdx b/en/AAS.mdx index 529a576..b0f81df 100644 --- a/en/AAS.mdx +++ b/en/AAS.mdx @@ -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'; \ No newline at end of file diff --git a/en/Replit-Client-Embedded.mdx b/en/Replit-Client-Embedded.mdx new file mode 100644 index 0000000..7ac4056 --- /dev/null +++ b/en/Replit-Client-Embedded.mdx @@ -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 + + + +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. + + + +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. + + + +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 + ] + } + } +} +``` + + + +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**. + + + +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: + + Replit Test Output + + + + +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. + + + +You can now query your connected data source(s) in Connect AI using the Replit's LLM. + + + diff --git a/en/Replit-Client.mdx b/en/Replit-Client.mdx new file mode 100644 index 0000000..160ad06 --- /dev/null +++ b/en/Replit-Client.mdx @@ -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 + + + +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. + + + +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. + + + +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 + ] + } + } +} +``` + + + +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**. + + + +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: + + Replit Test Output + + + + +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. + + + +You can now query your connected data source(s) in Connect AI using the Replit's LLM. + + + diff --git a/en/images/replit_client_output.png b/en/images/replit_client_output.png new file mode 100644 index 0000000..d46d414 Binary files /dev/null and b/en/images/replit_client_output.png differ diff --git a/snippets/en/AI-tools-embedded-list.mdx b/snippets/en/AI-tools-embedded-list.mdx index 5db1c9a..90d2f73 100644 --- a/snippets/en/AI-tools-embedded-list.mdx +++ b/snippets/en/AI-tools-embedded-list.mdx @@ -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) \ No newline at end of file +- [Replit Agent](/en/Replit-Client-Embedded) +- [Windsurf](/en/Windsurf-Client-Embedded) \ No newline at end of file diff --git a/snippets/en/AI-tools-list.mdx b/snippets/en/AI-tools-list.mdx index 11e3fc3..8a04498 100644 --- a/snippets/en/AI-tools-list.mdx +++ b/snippets/en/AI-tools-list.mdx @@ -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) \ No newline at end of file