> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Replit Agent to the Didit MCP Server

> Add the Didit MCP server to Replit Agent with a one-click link or as a custom MCP server in Integrations, then sign in with Didit. No API key needed.

Replit Agent connects to the hosted Didit MCP server (`https://mcp.didit.me/mcp`) with one link, or as a personal MCP server you add under **Integrations**. When you save it, Replit opens **Log in with Didit** in your browser; there is no API key to copy.

> [card] [Add Didit to Replit](https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6IkRpZGl0IiwiYmFzZVVybCI6Imh0dHBzOi8vbWNwLmRpZGl0Lm1lL21jcCJ9)
>
> Opens Replit's integrations page with the server `Didit` and URL mcp.didit.me/mcp filled in. Save it, then sign in with Didit.

The install link, if you want to put it behind your own button or in a README:

```text theme={null}
https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6IkRpZGl0IiwiYmFzZVVybCI6Imh0dHBzOi8vbWNwLmRpZGl0Lm1lL21jcCJ9
```

The `mcp` value is the base64 of `{"displayName":"Didit","baseUrl":"https://mcp.didit.me/mcp"}`. It carries no headers: Replit runs the Didit sign-in itself.

***

## Set up by method

> [tab] Install link
>
> 1. Sign in to Replit, then click [**Add Didit to Replit →**](https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6IkRpZGl0IiwiYmFzZVVybCI6Imh0dHBzOi8vbWNwLmRpZGl0Lm1lL21jcCJ9).
> 2. Replit opens the add-server dialog with the name `Didit` and the URL `https://mcp.didit.me/mcp`. Click **Test & save**.
> 3. Complete **Log in with Didit** in the browser window Replit opens, and approve the organizations Replit Agent may use.

> [tab] Integrations page
>
> 1. In Replit, open **Settings → Integrations**, and under **Your integrations** click **Add custom**.
> 2. Choose **Add personal MCP server**, or **Add workspace MCP server** to share it with your workspace.
> 3. Name it `Didit` and enter the URL `https://mcp.didit.me/mcp`.
> 4. Click **Test & save**, then complete **Log in with Didit** in the browser.
>
> Use the full `/mcp` URL: the server publishes its OAuth metadata for that path.

> [tab] API key
>
> For an agent that runs with no person present, connect with an application API key instead of signing in:
>
> 1. Add the server as in the **Integrations page** tab, with the URL `https://mcp.didit.me/mcp`.
> 2. Open **Advanced settings** and add a header named `x-api-key` whose value is your application API key.
> 3. Click **Test & save**.
>
> The connection then acts as that one application, not as you. See [Connect with an API key](https://docs.didit.me/integration/mcp/authentication.md#connect-with-an-api-key-headless-agents-and-ci) for what it can and cannot do.

> [!NOTE]
>
> **No API key in the default setup.** The server uses OAuth 2.1 with PKCE and acts as **you**: only in the organizations you approve at sign-in, with your role's permissions. Replit registers itself with Didit automatically. See [Authentication](https://docs.didit.me/integration/mcp/authentication.md).

***

## Check that it works

In Replit Agent, ask:

```text theme={null}
Use the Didit MCP server to call didit_context_get and list my organizations and applications.
```

The agent calls `didit_context_get` and lists your organizations with their applications.

If you connected with an API key, there is no organization list to show: the connection covers one application. Ask instead:

```text theme={null}
Use the Didit MCP server to call didit_context_get and tell me which application this connection uses.
```

The agent names the application the key belongs to, says whether it is `live` or `sandbox`, and reports `connection.type: "api_key"`. See [What an API key connection is](https://docs.didit.me/integration/mcp/authentication.md#what-an-api-key-connection-is).

Then put it to work on your app:

* "Create a sandbox KYC workflow with ID verification and liveness, then add the Didit web SDK to this app using that workflow."
* "Register a webhook destination for session status updates pointing at my `/api/didit/webhook` route, and write the handler that verifies the signature."
* "Create a test session for `user_123` and give me the verification link."

***

## Troubleshooting

* **The link opened Replit's sign-in page.** Sign in to Replit, then click the link again.
* **Test & save fails.** Check that the URL is exactly `https://mcp.didit.me/mcp`, with no trailing path, and that your browser allows the sign-in window to open.
* **Sign-in loops or fails.** Log in at [business.didit.me](https://business.didit.me) in your default browser first, then connect again.
* **A tool answers with `missing_scope`.** Your role in that organization lacks the permission. See [roles and permissions](https://docs.didit.me/integration/mcp/authentication.md#roles-and-permissions).
* **The agent says it has no Didit tools.** Check that the `Didit` server is listed under **Your integrations** and finished sign-in. See [Troubleshooting](https://docs.didit.me/integration/mcp/advanced.md#troubleshooting).

***

## Next steps

> [card] [Connect Cursor](https://docs.didit.me/integration/mcp/cursor.md)
>
> One-click install link and mcp.json for Cursor.

> [card] [Connect VS Code](https://docs.didit.me/integration/mcp/vscode.md)
>
> Install link and mcp.json for GitHub Copilot in VS Code.

> [card] [Tools reference](https://docs.didit.me/integration/mcp/tools.md)
>
> Everything the agent can call, tool by tool.

> [card] [Single-prompt integration](https://docs.didit.me/integration/mcp/examples.md)
>
> Worked examples of an agent building a Didit integration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.