> ## 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 VS Code and Copilot to the Didit MCP Server

> Add the Didit MCP server to VS Code for GitHub Copilot agent mode: one-click install link, mcp.json or the code CLI. Sign in with Didit, no API key.

VS Code connects GitHub Copilot's agent mode to the hosted Didit MCP server (`https://mcp.didit.me/mcp`) with an install link, a `mcp.json` entry or one `code` command. VS Code then asks you to sign in, and you **Log in with Didit** in the browser; there is no API key to copy.

> [card] [Add Didit to VS Code](https://vscode.dev/redirect/mcp/install?name=didit\&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.didit.me%2Fmcp%22%7D)
>
> Opens VS Code's install flow for the server `didit` (HTTP, mcp.didit.me/mcp). Click Install, then sign in with Didit.

The install link, for your own button or README:

```text theme={null}
https://vscode.dev/redirect/mcp/install?name=didit&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.didit.me%2Fmcp%22%7D
```

It redirects to `vscode:mcp/install?{"type":"http","url":"https://mcp.didit.me/mcp","name":"didit"}`. For VS Code Insiders, use `https://insiders.vscode.dev/redirect/mcp/install?…` with the same query string.

***

## Set up by method

> [tab] Install link
>
> 1. Click [**Add Didit to VS Code →**](https://vscode.dev/redirect/mcp/install?name=didit\&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.didit.me%2Fmcp%22%7D) and let the browser open VS Code.
> 2. VS Code shows the `didit` server. Click **Install**.
> 3. When VS Code asks to sign in, allow it and complete **Log in with Didit** in the browser.

> [tab] mcp.json
>
> For one workspace, add `.vscode/mcp.json`:
>
> ```json theme={null}
> {
>   "servers": {
>     "didit": {
>       "type": "http",
>       "url": "https://mcp.didit.me/mcp"
>     }
>   }
> }
> ```
>
> VS Code uses `servers`, not the `mcpServers` key other clients use. Point it at the full `/mcp` URL: the server publishes its OAuth metadata for that path.

> [tab] Command palette
>
> 1. Run **MCP: Add Server** from the command palette.
> 2. Choose **HTTP**, paste `https://mcp.didit.me/mcp`, and name it `didit`.
> 3. Pick where to save it (your user profile or the workspace), then sign in when prompted.

> [tab] Command line
>
> Add the server to your user profile with the `code` command:
>
> ```bash theme={null}
> code --add-mcp '{"name":"didit","type":"http","url":"https://mcp.didit.me/mcp"}'
> ```
>
> It prints `Added MCP servers: didit` and writes the entry to your user `mcp.json`.

> [!NOTE]
>
> **No API key in the config.** 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. See [Authentication](https://docs.didit.me/integration/mcp/authentication.md).

***

## Check that it works

Open Copilot Chat, switch to **Agent** mode and ask:

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

Copilot asks you to allow the `didit_context_get` call, then lists your organizations and their applications.

> [!TIP]
>
> **Too many tools enabled?** A signed-in Didit user gets well over a hundred tools. If Copilot warns about the number of tools, open the tools picker in the chat input and keep only the Didit tool groups the task needs, for example sessions and workflows.

***

## Troubleshooting

* **The install link opened nothing.** Use the **mcp.json** or **Command line** tab instead.
* **Sign-in loops or fails.** Log in at [business.didit.me](https://business.didit.me) in your default browser first, then run **MCP: List Servers**, select `didit` and restart it.
* **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).

***

## Next steps

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

> [card] [Connect OpenAI Codex](https://docs.didit.me/integration/mcp/codex.md)
>
> One command for the Codex CLI and IDE extension.

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

> [card] [Other clients](https://docs.didit.me/integration/mcp/installation.md)
>
> Windsurf, Zed, any MCP client, and self-hosting.


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