> For the complete documentation index, see [llms.txt](https://www.cakewalk.security/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.cakewalk.security/docs/ai-agent-access/connections-and-integrations/agent-platforms/replit.md).

# Replit

Replit Agent reads remote MCP servers from the MCP Servers settings pane. Add Cakewalk's gateway once and Replit auto-detects OAuth via Dynamic Client Registration; the consent flow runs in your browser.

## Install Method

Custom form in Replit's MCP Servers settings. The connection is per Replit account. Replit's MCP traffic passes through Replit's security scanner.

## Step 1: Open MCP Server Settings

1. Open Replit and sign in.
2. Navigate to the **MCP Servers** settings pane.

## Step 2: Add the Cakewalk Gateway

1. Click **+ Add MCP server**.
2. Enter the display name. **Cakewalk** is the recommended default. Agent uses this name to reference the server in chat logs.
3. In **MCP Server URL**, paste:

   ```
   https://mcp-gateway.getcakewalk.io/mcp
   ```
4. Leave **Advanced settings** collapsed. Cakewalk's gateway uses OAuth, not custom headers.
5. Click **Test & save**.

## Step 3: Authenticate

Replit attempts to connect, detects Cakewalk's OAuth discovery endpoints, and registers itself as a client via Dynamic Client Registration automatically. Replit then walks you through the OAuth consent flow in your browser. Sign in with your Cakewalk account and approve the Connection.

## Verifying It Works

In Replit Agent, ask the agent to list its available tools. The tools surfaced through the Cakewalk gateway appear in the response. In Cakewalk, the Replit card on **My Agents** flips to **Connected** after the first agent call.

## Troubleshooting

* **Test & save reports a connection error:** confirm the URL is exact and that Replit can reach `mcp-gateway.getcakewalk.io` from your network. Replit's security scanner may flag servers it cannot validate.
* **OAuth consent loop:** clear the consent in Cakewalk's admin app and retry from Replit. The DCR registration record is reused on retry; you do not need to delete the Replit server entry.

## Learn more

* [Connect via MCP](https://docs.replit.com/build/connect-via-mcp) from Replit.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.cakewalk.security/docs/ai-agent-access/connections-and-integrations/agent-platforms/replit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
