---
name: duang-setup
description: Connect this agent to duang (https://duang.ai), a remote MCP server that calls data and web services for a team. Use when asked to set up duang or https://duang.ai/SKILL.md.
---

# Set up duang

duang is one remote MCP server, `https://api.duang.ai/mcp`, with four tools: `discover`, `inspect`, `call` and `get_call`. It signs in with OAuth: the person approves it in their browser and chooses the team it acts for. Never ask the person for an API key or a token, and never write one into a configuration.

Do each step you can do yourself (run a command, edit a file). Tell the person exactly what to do for the steps only they can do, and wait for them.

## 1. Check whether it is already connected

If you already have the tools `discover`, `inspect`, `call` and `get_call` from a server named `duang`, go to step 4.

## 2. Add the server

Add it under the name `duang`, as a remote (streamable HTTP) server at `https://api.duang.ai/mcp`, to the client you are running in. When you edit a configuration file, add `duang` beside the servers that are there; do not remove them.

- **Claude Code**: run `claude mcp add --transport http --scope user duang https://api.duang.ai/mcp`
- **Codex**: run `codex mcp add duang --url https://api.duang.ai/mcp`
- **Pi**: run `pi mcp add duang --url https://api.duang.ai/mcp`
- **VS Code**: run `code --add-mcp '{"name":"duang","type":"http","url":"https://api.duang.ai/mcp"}'`
- **Cursor**: add it to `~/.cursor/mcp.json`:

  ```json
  {
    "mcpServers": {
      "duang": {
        "url": "https://api.duang.ai/mcp"
      }
    }
  }
  ```

- **Windsurf**: add it to `~/.codeium/windsurf/mcp_config.json`. Windsurf reads `serverUrl`, not `url`:

  ```json
  {
    "mcpServers": {
      "duang": {
        "serverUrl": "https://api.duang.ai/mcp"
      }
    }
  }
  ```

- **Claude (claude.ai, Claude Desktop)**: only the person can add it. Give them this link, which opens the form for a custom connector with the name and the address filled in: https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=duang&connectorUrl=https%3A%2F%2Fapi.duang.ai%2Fmcp
- **ChatGPT**: only the person can add it. Tell them to open https://chatgpt.com/plugins, click +, then Add custom MCP server, with the name `duang` and the address `https://api.duang.ai/mcp`.
- **Any other client**: add a remote MCP server reached over streamable HTTP, named `duang`, at `https://api.duang.ai/mcp`, as the client's own documentation says. If the client only starts local servers, start this one with the command `npx -y mcp-remote https://api.duang.ai/mcp`.

## 3. Sign in

Only the person can approve it. Their browser opens a page where they sign in to duang (or create an account), choose the team, and approve.

- **Claude Code**: tell them to run `/mcp`, choose `duang`, then choose Authenticate. If `duang` is not listed, Claude Code has to be restarted first.
- **Codex**: run `codex mcp login duang`, or tell them to.
- **Pi**: run `pi mcp login duang`, or tell them to. In a session that is already open, they type `/reload` first.
- **Any other client**: it asks them to sign in when it first connects to `duang`.

The tools of a server added during a session may only appear in a new session. If you do not have them after the person has approved, tell them to start one.

## 4. Install the duang skill

If your client reads skills, save duang's skill, which says when and how to use the tools. It is a folder of files; keep their paths as they are:

- `https://duang.ai/skill/duang/SKILL.md` → `duang/SKILL.md`
- `https://duang.ai/skill/duang/references/command-line.md` → `duang/references/command-line.md`

Put the `duang` folder where your client reads skills: `~/.claude/skills/` for Claude Code, `~/.agents/skills/` for Codex, Pi and others that read `.agents/skills`. If your client does not read skills, skip this step: the tools describe themselves.

## 5. Check

Call `discover` with no arguments. A list of topics means it works; tell the person it is set up. An answer that says the caller is not signed in means the approval in step 3 has not finished.
