# Add the Dadan MCP server to VS Code (GitHub Copilot)

> VS Code runs MCP servers for GitHub Copilot in agent mode. Add Dadan once per workspace, or to your user profile to have it everywhere.

## Before you start

- A Dadan account
- VS Code with GitHub Copilot
- On Copilot Business or Enterprise, an admin must allow MCP servers first

## Steps

1. Save this as .vscode/mcp.json, or run MCP: Add Server from the Command Palette and choose HTTP:

   ```json
   {
     "servers": {
       "dadan": {
         "type": "http",
         "url": "https://mcp.dadan.io/mcp"
       }
     }
   }
   ```
2. Start the server and approve the trust prompt. VS Code opens the Dadan sign-in.
3. Use Copilot Chat in agent mode.

Check it works: Run MCP: List Servers. Dadan shows as running and its tools appear in the agent-mode tool picker.

## Notes

- To sign in again, select Dadan in MCP: List Servers and choose the account action.

## Troubleshooting

- **The assistant can’t connect.** Check that the URL ends with /mcp. The bare domain serves this website, not the MCP protocol.
- **Dadan asks you to reconnect.** Remove Dadan from that assistant and connect it again.
- **The assistant says the connection is read-only.** You ticked Read-only when you connected. To allow changes, remove Dadan and connect again without ticking it.
- **You can’t find custom connectors or MCP servers.** Your plan or your workspace admin may not allow them yet.
- **Sign-in says the link only works in the browser where you started.** Start connecting again from your assistant and finish the sign-in in the browser it opens. Don’t copy the sign-in link to another browser or device.
- **Notes or summaries fail.** The video needs a transcript first. Ask your assistant to transcribe it and say which language is spoken.

Canonical page: https://mcp.dadan.io/connect/vscode
