You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-1Lines changed: 85 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,16 @@ Example:
244
244
- Project permalinks are case-sensitive
245
245
- Check that you have access to the project in DeployHQ
246
246
247
+
### Deployment Creation Blocked
248
+
249
+
**Problem**: "Server is running in read-only mode" error when trying to create deployments
250
+
251
+
**Solution**:
252
+
- Read-only mode is disabled by default, but you may have enabled it
253
+
- To disable read-only mode, set `DEPLOYHQ_READ_ONLY=false` in your environment variables
254
+
- Or use the `--read-only=false` CLI flag
255
+
- See the [Security](#-security) section for detailed instructions on read-only mode
256
+
247
257
### Deployment Fails
248
258
249
259
**Problem**: Deployment created but fails immediately
@@ -395,10 +405,84 @@ npm run test:ui # Interactive UI for debugging
395
405
396
406
## 🔒 Security
397
407
408
+
### Read-Only Mode (Optional)
409
+
410
+
**By default, the MCP server allows all operations, including creating deployments.** This is the recommended configuration for most users.
411
+
412
+
For users who want additional protection against accidental deployments, the server includes an **optional read-only mode** that can be enabled to block deployment creation.
413
+
414
+
**Default Behavior (No Configuration Needed):**
415
+
- ✅ Deployments are **allowed by default**
416
+
- ✅ All operations work: list, get, and create deployments
417
+
- ✅ Full functionality out of the box
418
+
419
+
**When you might want to enable read-only mode:**
420
+
- You want extra protection against accidental deployments via AI
421
+
- You're connecting to production environments and want an additional safety layer
422
+
- You only need read access to monitor deployments
423
+
- You're still testing the integration and want to be cautious
424
+
425
+
**Important:** Read-only mode is **completely optional**. The server works fully without it.
-**Deployment Logs May Contain Secrets**: Deployment logs can include environment variables, API keys, and other sensitive information. Exercise caution when using tools that retrieve logs, especially with third-party AI services.
476
+
477
+
-**Use Least-Privilege API Keys**: Create dedicated API keys with minimum required permissions for MCP access. Consider separate keys for read-only vs. read-write operations.
478
+
479
+
-**Audit MCP Activity**: Monitor MCP usage, especially in production environments. Review logs regularly for unexpected behavior.
480
+
398
481
-**Environment Variables**: Credentials are never stored, only passed via environment variables
482
+
399
483
-**HTTPS**: When using npx, credentials stay local to your machine
484
+
400
485
-**No Telemetry**: No data is sent anywhere except directly to DeployHQ API
401
-
-**Minimal Permissions**: Use a dedicated DeployHQ user with minimum required permissions
Copy file name to clipboardExpand all lines: docs/USER_GUIDE.md
+84Lines changed: 84 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -583,6 +583,90 @@ Choose the scope that best fits your needs. For most users, `--scope user` or us
583
583
584
584
## 🔒 Security Best Practices
585
585
586
+
### Read-Only Mode (Optional)
587
+
588
+
**By default, the MCP server allows all operations, including creating deployments.** This is the recommended configuration for most users who want full functionality.
589
+
590
+
For users who want additional protection against accidental deployments, the server includes an **optional read-only mode** that can be enabled to block deployment creation while still allowing read operations.
591
+
592
+
**Default Behavior (No Configuration Needed):**
593
+
- ✅ Deployments are **allowed by default**
594
+
- ✅ All operations work: list projects, get details, and create deployments
595
+
- ✅ Full functionality out of the box
596
+
597
+
**When you might want to enable read-only mode:**
598
+
- You want extra protection against accidental deployments via AI
599
+
- You're connecting to production environments and want an additional safety layer
600
+
- You only need read access to monitor deployments
601
+
- You're still testing the integration and want to be cautious
602
+
603
+
**Important:** Read-only mode is **completely optional**. The server works fully without it.
604
+
605
+
**Enabling Read-Only Mode:**
606
+
607
+
If you want to prevent deployments through the MCP server, you can enable read-only mode in two ways:
0 commit comments