Skip to content

Commit a0b35f5

Browse files
committed
fix(docs): address PR review comments on chat OTP cookies and MCP env var placeholders
1 parent ad83676 commit a0b35f5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

apps/docs/content/docs/en/execution/chat.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,16 @@ curl -X POST https://sim.ai/api/chat/your-identifier/otp \
143143
-H "Content-Type: application/json" \
144144
-d '{ "email": "allowed@example.com" }'
145145

146-
# Step 2: Verify OTP
146+
# Step 2: Verify OTP (save the Set-Cookie header to a cookie jar)
147147
curl -X PUT https://sim.ai/api/chat/your-identifier/otp \
148148
-H "Content-Type: application/json" \
149+
-c cookies.txt \
149150
-d '{ "email": "allowed@example.com", "otp": "123456" }'
150151

151-
# Step 3: Send messages (include the auth cookie from step 2)
152+
# Step 3: Send messages (replay the auth cookie from step 2)
152153
curl -X POST https://sim.ai/api/chat/your-identifier \
153154
-H "Content-Type: application/json" \
154-
-b "chat_auth_cookie" \
155+
-b cookies.txt \
155156
-d '{ "input": "Hello" }'
156157
```
157158

apps/docs/content/docs/en/mcp/deploy-workflows.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ Add to your VS Code MCP settings (`.vscode/mcp.json`):
118118
For public servers, omit the `X-API-Key` header and `--header` arguments. Public servers don't require authentication.
119119
</Callout>
120120

121+
<Callout type="warn">
122+
`$SIM_API_KEY` is a placeholder. For Claude Desktop and VS Code configs, replace it with your actual API key since these clients don't expand environment variables in JSON config files. Claude Code and Cursor handle variable expansion natively.
123+
</Callout>
124+
121125
## Server Management
122126

123127
From the server detail view in **Settings → Workflow MCP Servers**, you can:

0 commit comments

Comments
 (0)