Skip to content

Commit c4ae57d

Browse files
Add Cursor configuration instructions to MCP documentation (#1171)
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
1 parent 71b3a00 commit c4ae57d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/integrations/mcp.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,32 @@ Under the `Settings` > `Feature` > `MCP Servers` section, click "Add New MCP Ser
4747
- **Command**: `codegen`
4848
- **Arguments**: `["mcp"]`
4949

50+
### For Cursor
51+
52+
To configure the Codegen MCP server in Cursor:
53+
54+
1. Open Cursor Settings (Cmd/Ctrl + ,)
55+
2. Navigate to `Features` > `Model Context Protocol`
56+
3. Click "Add Server" and configure:
57+
- **Server Name**: `codegen-mcp`
58+
- **Command**: `codegen`
59+
- **Arguments**: `["mcp"]`
60+
- **Working Directory**: `<path to your project>` (optional)
61+
62+
Alternatively, you can add the configuration directly to your Cursor settings file:
63+
64+
```json
65+
{
66+
"mcp.servers": {
67+
"codegen": {
68+
"command": "codegen",
69+
"args": ["mcp"],
70+
"cwd": "<path to your project>"
71+
}
72+
}
73+
}
74+
```
75+
5076
## Usage
5177

5278
### Starting the Server

0 commit comments

Comments
 (0)