Supabase MCP Server

by alexander-zuev
Verified
Apache 2.0
649
  • Apple
  • Linux

live_dangerously

Enable or disable unsafe mode for Management API or Database operations in Supabase MCP Server. Use to allow higher-risk actions like INSERT, UPDATE, DELETE, and schema changes, then return to safe mode for read operations.

Instructions

Toggle unsafe mode for either Management API or Database operations.

WHAT THIS TOOL DOES: This tool switches between safe (default) and unsafe operation modes for either the Management API or Database operations.

SAFETY MODES EXPLAINED:

  1. Database Safety Modes:
    • SAFE mode (default): Only low-risk operations like SELECT queries are allowed
    • UNSAFE mode: Higher-risk operations including INSERT, UPDATE, DELETE, and schema changes are permitted
  2. API Safety Modes:
    • SAFE mode (default): Only low-risk operations that don't modify state are allowed
    • UNSAFE mode: Higher-risk state-changing operations are permitted (except those explicitly blocked for safety)

OPERATION RISK LEVELS: The system categorizes operations by risk level:

  • LOW: Safe read operations with minimal impact
  • MEDIUM: Write operations that modify data but don't change structure
  • HIGH: Operations that modify database structure or important system settings
  • EXTREME: Destructive operations that could cause data loss or service disruption

WHEN TO USE THIS TOOL:

  • Use this tool BEFORE attempting write operations or schema changes
  • Enable unsafe mode only when you need to perform data modifications
  • Always return to safe mode after completing write operations

USAGE GUIDELINES:

  • Start in safe mode by default for exploration and analysis
  • Switch to unsafe mode only when you need to make changes
  • Be specific about which service you're enabling unsafe mode for
  • Consider the risks before enabling unsafe mode, especially for database operations
  • For database operations requiring schema changes, you'll need to enable unsafe mode first

Parameters:

  • service: Which service to toggle ("api" or "database")
  • enable_unsafe_mode: True to enable unsafe mode, False for safe mode (default: False)

Examples:

  1. Enable database unsafe mode: live_dangerously(service="database", enable_unsafe_mode=True)
  2. Return to safe mode after operations: live_dangerously(service="database", enable_unsafe_mode=False)
  3. Enable API unsafe mode: live_dangerously(service="api", enable_unsafe_mode=True)

Note: This tool affects ALL subsequent operations for the specified service until changed again.

Input Schema

NameRequiredDescriptionDefault
enable_unsafe_modeNo
serviceYes

Input Schema (JSON Schema)

{ "properties": { "enable_unsafe_mode": { "default": false, "title": "Enable Unsafe Mode", "type": "boolean" }, "service": { "enum": [ "api", "database" ], "title": "Service", "type": "string" } }, "required": [ "service" ], "title": "live_dangerouslyArguments", "type": "object" }

You must be authenticated.

Other Tools from Supabase MCP Server

Related Tools

ID: cyeeqagb81