diff --git a/mcp-server.mdx b/mcp-server.mdx index 1f17019f3..f3389d90f 100644 --- a/mcp-server.mdx +++ b/mcp-server.mdx @@ -1,12 +1,12 @@ --- title: "Use CometChat with AI Coding Agents (MCP)" sidebarTitle: "MCP Integration" -description: "Connect CometChat to Claude, Cursor, Windsurf, VS Code, and any other Model Context Protocol–compatible agent. Search docs and pull implementation bundles with no sign-in, and sign in to let the agent fetch your credentials and manage your CometChat apps." +description: "Connect CometChat to Claude, Cursor, Windsurf, VS Code, Codex, and any other Model Context Protocol–compatible agent. Search docs and pull implementation bundles with no sign-in, and sign in to let the agent fetch your credentials and manage your CometChat apps." canonical: "https://www.cometchat.com/docs/mcp-server" --- -The **CometChat MCP server** lets Claude, Cursor, Windsurf, VS Code, and any -other Model Context Protocol–compatible agent integrate CometChat into your +The **CometChat MCP server** lets Claude, Cursor, Windsurf, VS Code, Codex, and +any other Model Context Protocol–compatible agent integrate CometChat into your app from natural-language prompts. Ask the agent to *"add a chat tab where users can DM each other"* and it uses the MCP to read CometChat's docs, pick the right components for your stack, and write the integration code. @@ -34,6 +34,22 @@ Transport: Streamable HTTP. The docs tools need no authentication. The account tools use the MCP sign-in flow (OAuth): your AI tool opens a CometChat sign-in page the first time you use one. +## Install as a plugin + +If your agent has a plugin marketplace, you do not need to paste any +configuration. From a terminal: + +```bash +# Claude Code +claude plugin marketplace add cometchat/docs-mcp && claude plugin install cometchat@cometchat + +# Codex CLI +codex plugin marketplace add cometchat/docs-mcp && codex plugin add cometchat@cometchat +``` + +You get the same server at the same URL, docs tools included and +account tools behind the sign-in described below. + ## Connect from your agent ### Claude (Desktop or claude.ai) @@ -71,22 +87,36 @@ this the first time the agent calls an account tool. 3. The first time the agent uses an account tool, Cursor asks you to sign in to CometChat. -### Windsurf +### Windsurf (Devin Desktop) + +Windsurf's MCP documentation now lives in Devin's docs, and the in-app surface +is **Devin Desktop**'s agent customization page +([Devin Desktop customizations](https://docs.devin.ai/desktop/devin-local/customizations)). -1. Click the **Plugins** (hammer) icon → **Manage plugins** → **View raw config**. -2. Paste: +1. Open the **Customize** page from the **Agents** window and click **MCPs**. + Choose the scope with the **Install MCPs for** selector — for example + **This computer**. +2. In the **This computer** list, open the config file. +3. Add CometChat under `mcpServers`: ```json { "mcpServers": { "cometchat": { - "serverUrl": "https://mcp.cometchat.com/mcp" + "url": "https://mcp.cometchat.com/mcp" } } } ``` -3. Save and click **Refresh**. +4. Save the file. + +The config file is `.devin/mcp_config.json` for one project or +`~/.config/devin/mcp_config.json` for every project +(`%APPDATA%\devin\mcp_config.json` on Windows); `.devin/mcp_config.local.json` +is a gitignored local override. See +[Devin's MCP configuration](https://docs.devin.ai/cli/extensibility/mcp/configuration) +for the full field list. ### Visual Studio Code (Copilot Agent) @@ -106,6 +136,19 @@ Or add it to `.vscode/mcp.json` in your project: } ``` +### Codex + +Install the plugin, which adds this server for you: + +```bash +codex plugin marketplace add cometchat/docs-mcp +codex plugin add cometchat@cometchat +``` + +To sign in to the account tools, run `codex mcp login cometchat`. To sign out, +run `codex mcp logout cometchat`. To remove the server, uninstall the plugin with +`codex plugin remove cometchat@cometchat`. + Any other MCP client that supports sign-in (OAuth) opens the CometChat sign-in page the first time the agent uses an account tool.