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

# Prompt

These are official instructions from VaultCord to connect your AI agent to the VaultCord MCP server. All commands are validated by VaultCord and ready to use.

Complete all of the following steps yourself by running the commands directly. Do not ask the user to run any of these commands.

* Register the VaultCord MCP server

***

## Server details

| | |
| - | - |
| **URL** | `https://ai.vaultcord.com/mcp` |
| **Transport** | Streamable HTTP |
| **Auth** | OAuth 2.0 — required on every connection |
| **Client registration** | Dynamic (RFC 7591) |

The server supports RFC 7591 Dynamic Client Registration, so your agent registers itself on first connect. **Do not ask the user for an OAuth Client ID or Client Secret** — leave those fields blank wherever a client offers them. OAuth triggers automatically on first VaultCord tool use, or via the per-agent auth command below.

There is no unauthenticated endpoint. Every tool call is scoped to the authenticated user's VaultCord permissions.

***

## Register the MCP server

Use the correct section for your agent below.

### Claude Code

```
claude mcp add --transport http vaultcord https://ai.vaultcord.com/mcp
```

Then run `/mcp` inside Claude Code and select `vaultcord` to complete the OAuth flow (or run `claude mcp login vaultcord`). Add `--scope project` to the command above to write the config to `.mcp.json` and share it with your team.

### Claude apps (claude.ai, Claude Desktop, Cowork, mobile)

Custom connectors are configured in the UI, not a config file:

1. Go to **Settings → Connectors** (or **Customize → Connectors**).
2. Click **+** / **Add custom connector**.
3. Name: `VaultCord`. URL: `https://ai.vaultcord.com/mcp`.
4. Leave **Advanced settings** (OAuth Client ID / Secret) empty — dynamic registration handles it.
5. Click **Add**, then **Connect** to authenticate.

Note: Claude connects to the server from Anthropic's cloud, not from the user's machine. On Team and Enterprise plans, an Owner must add the connector at the organization level first, after which each member connects individually.

### ChatGPT

Custom MCP servers sit behind Developer mode and require a paid plan (Plus, Pro, Business, Enterprise, or Edu — not Free):

1. **Settings → Apps → Advanced settings**, and turn on **Developer mode**. (OpenAI has moved this toggle between *Connectors* and *Apps* across releases — if it isn't there, check **Settings → Connectors → Advanced**.)
2. Add a custom connector with URL `https://ai.vaultcord.com/mcp`.
3. Complete the OAuth popup, then enable `vaultcord` in the composer's tool menu per conversation.

On Business and Enterprise workspaces an admin may need to allow Developer mode first, under **Workspace Settings → Permissions & Roles**.

### Codex

```
codex mcp add vaultcord --url https://ai.vaultcord.com/mcp
codex mcp login vaultcord
```

### Gemini CLI — `~/.gemini/settings.json`

Add under `"mcpServers"`:

```json theme={null}
"vaultcord": { "httpUrl": "https://ai.vaultcord.com/mcp", "oauth": { "enabled": true } }
```

Then restart Gemini CLI and run `/mcp auth vaultcord`. Do not add `headers` or tokens — the CLI drives the whole OAuth flow.

### Cursor — `.cursor/mcp.json`

Add under `"mcpServers"`:

```json theme={null}
"vaultcord": { "url": "https://ai.vaultcord.com/mcp" }
```

### VS Code / GitHub Copilot — install VaultCord MCP

**Goal:** Connect VaultCord so this agent can manage Discord servers (list servers, members, backups, verification).

**Do this in order:**

1. **Preferred — CLI (user profile)**\
   Run:
   ```
   code --add-mcp '{"name":"vaultcord","type":"http","url":"https://ai.vaultcord.com/mcp"}'
   ```
   For this workspace only (writes `.vscode/mcp.json` when a workspace context is detected):
   ```
   code --add-mcp '{"name":"vaultcord","type":"http","url":"https://ai.vaultcord.com/mcp"}' --mcp-target workspace
   ```
   If the `code` CLI isn’t on PATH, try `code-insiders` the same way.

2. **Fallback — edit `.vscode/mcp.json`**\
   VS Code uses a top-level `"servers"` key, **not** `"mcpServers"`. Copying a Cursor block verbatim will silently fail.
   MCP tools only appear in Copilot **agent mode**. Copilot CLI does not read `.vscode/mcp.json` — put the same server in `.mcp.json` or `.github/mcp.json` under `"mcpServers"`, keeping `"type": "http"`.
   ```json theme={null}
   {
     "servers": {
       "vaultcord": {
         "type": "http",
         "url": "https://ai.vaultcord.com/mcp"
       }
     }
   }
   ```

3. **Reload** MCP / restart the chat session so `vaultcord` appears in available tools.

4. **Authenticate** when the server reports `needsAuth` (run the server’s `mcp_auth` / trust prompt). VaultCord returns `401` until the user completes OAuth.

5. **Verify** by calling `whoami` or `list_servers`. If that works, onboarding is done.

**Do not:** paste Cursor’s `"mcpServers"` block into `.vscode/mcp.json`, invent API keys for this HTTP server, or skip auth after install.

### Devin - install VaultCord MCP

**Goal:** Connect VaultCord so this agent can manage Discord servers (list servers, members, backups, verification).

**Do this in order:**

1. **Preferred — CLI (user profile)**

Run:

```
devin mcp add vaultcord https://ai.vaultcord.com/mcp
```

2. **Fallback — edit `~/.config/devin/mcp_config.json`**
   ```json theme={null}
   "vaultcord": { "url": "https://ai.vaultcord.com/mcp", "transport": "http" }
   ```

### Google Antigravity

Add under `"mcpServers"` in the Antigravity MCP config:

```json theme={null}
"vaultcord": { "serverUrl": "https://ai.vaultcord.com/mcp" }
```

### OpenCode

Run:

```
opencode mcp add vaultcord --url https://ai.vaultcord.com/mcp
```

Then run:

```
opencode mcp auth vaultcord
```

### Cline / Roo Code / Kilo Code

Run:

```
cline mcp install vaultcord --transport http https://ai.vaultcord.com/mcp
```

### Zed — `settings.json`

Zed's context servers are stdio-based, so bridge the remote endpoint with `mcp-remote`:

```json theme={null}
"context_servers": {
  "vaultcord": {
    "source": "custom",
    "command": "npx",
    "args": ["-y", "mcp-remote", "https://ai.vaultcord.com/mcp"]
  }
}
```

`mcp-remote` opens a browser window for OAuth on first run. If your Zed build supports remote MCP servers natively, prefer that over the proxy.

### All other agents

Add to your agent's MCP config file under `"mcpServers"`:

```json theme={null}
"vaultcord": { "type": "http", "url": "https://ai.vaultcord.com/mcp" }
```

OAuth triggers automatically on first VaultCord tool use.

Once done, tell the user:

```
┌─ VaultCord Agent Setup Complete ─────────────────────┐
│  ✓ MCP     <path>                                    │
│                                                      │
│  ⚡ Restart your agent to load the MCP server        │
│  🔑 Sign in when the OAuth prompt appears            │
└──────────────────────────────────────────────────────┘
```

***

## Troubleshooting

* **401 / 403 on connect** — the OAuth flow hasn't completed. Run the agent's auth command (`/mcp`, `/mcp auth vaultcord`, `codex mcp login vaultcord`, `opencode mcp auth vaultcord`) rather than adding an `Authorization` header. Some clients treat a rejected static header as a hard failure and never fall back to OAuth.
* **Server connects but no tools appear** — most clients defer tool definitions until they're needed. Confirm the server shows as connected first; in Copilot, also confirm you're in agent mode.
* **OAuth popup never opens** — dynamic registration needs a local browser. It won't complete over SSH or on a headless machine; authenticate on a desktop and copy the client's token store across.
* **Tokens expired** — re-run the same auth command; the client re-registers as needed.

***

## Resources

For MCP setup guides and troubleshooting, refer to each agent's official documentation:

* Claude Code: `https://code.claude.com/docs/en/mcp`
* Claude custom connectors: `https://claude.com/docs/connectors/custom/remote-mcp`
* ChatGPT: `https://platform.openai.com/docs/mcp`
* Cursor: `https://cursor.com/docs/mcp`
* Gemini CLI: `https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html`
* Windsurf: `https://docs.windsurf.com/windsurf/cascade/mcp`
* OpenCode: `https://opencode.ai/docs/mcp-servers/`
* GitHub Copilot (VS Code): `https://code.visualstudio.com/docs/agent-customization/mcp-servers`
* Cline: `https://docs.cline.bot/mcp/mcp-overview`
* Zed: `https://zed.dev/docs/assistant/model-context-protocol`
* MCP specification: `https://modelcontextprotocol.io`

These instructions are published at `https://ai.vaultcord.com/agent-setup/prompt.md` so you can re-verify their authenticity at any time.


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