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
feat(cli): add disable-deployment, readonly, and env-only options to MCP server
Add three new options to the MCP server for better control:
- --disable-deployment: Disables deployment-related tools
- --readonly: Run in read-only mode, disabling all write operations (deployments, task triggering, project creation, run cancellation)
- --env-only: Restrict the MCP server to specific environments (dev, staging, prod, preview)
Key features:
- The --env-only flag allows fine-grained environment control and deprecates --dev-only (kept for backward compatibility)
- The --readonly flag overrides --disable-deployment since deployments are write operations
- Deployments are allowed to any environment that the MCP server has access to
- --dev-only and --env-only are mutually exclusive with proper error handling
- listDeploysTool correctly categorized as read-only operation
Signed-off-by: Andy <[email protected]>
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
126
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
18
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
76
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
130
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
171
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
17
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
`This MCP server is only available for the dev environment. You tried to access the ${input.environment} environment. Remove the --dev-only flag to access other environments.`
97
+
`This MCP server is restricted to the following environments: ${allowedEnvs}. You tried to access the ${input.environment} environment.`
0 commit comments