# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
