> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-feature-react-native-flag-and-channel.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Model Context Protocol (MCP) server for CometChat documentation

## Using the CometChat MCP Server

### Claude

1. **Add MCP server to Claude**
   1. Navigate to the [Connectors](https://claude.ai) page in Claude’s settings.
   2. Select **Add custom connector**, name it e.g. `CometChat Docs`, and enter the URL:
      ```
      https://www.cometchat.com/docs/mcp
      ```
   3. Click **Add**.
2. **Query with context**
   1. In Claude, click the attachments (➕) button.
   2. Select **CometChat Docs**.
   3. Ask your questions—Claude will use your CometChat docs as context.

### Cursor

1. **Open MCP settings**
   * Press `Cmd+Shift+P` (macOS) / `Ctrl+Shift+P` (Windows) → **Open MCP settings**.
   * Select **Add custom MCP** to open your `mcp.json`.
2. **Configure**
   ```json theme={null}
   {
     "mcpServers": {
       "cometchat-docs": {
         "url": "https://www.cometchat.com/docs/mcp"
       }
     }
   }
   ```
3. **Verify**
   * In Cursor’s chat, ask:
     > “How do I integrate CometChat in my React app?”

### Windsurf

1. **Open Windsurf**
   * Launch Windsurf and click the **Plugins** (hammer) icon.
2. **Add or configure**
   * In **Manage plugins**, click **Add Custom Server +** or **View raw config**.
   * Paste the following into your `mcp_config.json`:
     ```json theme={null}
     {
       "mcpServers": {
         "cometchat-docs": {
           "type": "sse",
           "serverUrl": "https://www.cometchat.com/docs/mcp"
         }
       }
     }
     ```
   * Save and click **Refresh**.
3. **Invoke within Windsurf**
   * In the Composer, ask prompts like:
     > “Show me how to use CometChat in my app.”

### Visual Studio Code

1. **Prerequisites**
   * Latest VS Code with Copilot (agent mode) enabled.
2. **Add the server**
   * `Cmd+Shift+P` (macOS) / `Ctrl+Shift+P` (Windows) → **MCP: Add MCP Server**.
   * Enter:
     * **Server Name:** `CometChat Docs`
     * **Server URL:** `https://www.cometchat.com/docs/mcp`
     * **Transport:** `SSE` (or HTTP stream)
   * Confirm.
3. **Use in Copilot agent**
   * In a Copilot chat session, your CometChat tools will now be listed and available.
