From 5fe07def5dc8b88797e40f86b86ec48893f98428 Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Sun, 13 Jul 2025 19:53:14 +0000 Subject: [PATCH] Add Cursor configuration instructions to MCP documentation - Added step-by-step UI configuration guide for Cursor - Included alternative JSON configuration method - Maintains consistency with existing Cline and Claude Desktop sections --- docs/integrations/mcp.mdx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/integrations/mcp.mdx b/docs/integrations/mcp.mdx index 0ddf82d9b..05057486d 100644 --- a/docs/integrations/mcp.mdx +++ b/docs/integrations/mcp.mdx @@ -47,6 +47,32 @@ Under the `Settings` > `Feature` > `MCP Servers` section, click "Add New MCP Ser - **Command**: `codegen` - **Arguments**: `["mcp"]` +### For Cursor + +To configure the Codegen MCP server in Cursor: + +1. Open Cursor Settings (Cmd/Ctrl + ,) +2. Navigate to `Features` > `Model Context Protocol` +3. Click "Add Server" and configure: + - **Server Name**: `codegen-mcp` + - **Command**: `codegen` + - **Arguments**: `["mcp"]` + - **Working Directory**: `` (optional) + +Alternatively, you can add the configuration directly to your Cursor settings file: + +```json +{ + "mcp.servers": { + "codegen": { + "command": "codegen", + "args": ["mcp"], + "cwd": "" + } + } +} +``` + ## Usage ### Starting the Server