Graphrt

Supabase

Select rows with safely quoted structured filters, insert/upsert/update and RPC (agents opt-in), file list/download/upload, deletes and signed URLs node only

Beta v0.1.0 Node.js Wasm 16 actions
Use in Graphrt Desktop

About

A Graphrt plugin for one Supabase project: table rows through the Data API (PostgREST) and files through Supabase Storage. Filters are structured and safely encoded, so values can never inject PostgREST operators or extra conditions. It is built with the declarative REST layer (definition.mjs).

What it can do

  • Rows: select_rows (filters, columns incl. related tables, order, limit/cursor paging), insert_rows, upsert_rows (merge or ignore duplicates, on_conflict), update_rows and delete_rows (node only), both requiring at least one filter
  • Functions: call_function (RPC POST /rest/v1/rpc/<name> with named arguments)
  • Per-user mode for chatbots: SUPABASE_TOOL_MODE=user_rpc makes call_function the only agent tool and sends each call as the end user (their JWT from the agent's tool_context), so one plugin process serves many users (Multi-user chatbots)
  • Schema: get_api_schema (OpenAPI of the exposed tables and functions, needs a secret or service_role key since Supabase removed anon access in February 2026)
  • Storage: list_buckets, get_bucket, list_objects, get_object_info, download_object (into SUPABASE_DOWNLOAD_DIR), upload_object, delete_objects (node only), create_signed_url (node only)
  • api_request: any other project endpoint (agents: GET only, /rest/v1 and Storage reads only)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Get Data API schema supabase.get_api_schema
  • Select rows supabase.select_rows
  • Insert rows supabase.insert_rows
  • Upsert rows supabase.upsert_rows
  • Update rows supabase.update_rows
  • Delete rows supabase.delete_rows
  • Call database function supabase.call_function
  • List buckets supabase.list_buckets
  • Get bucket supabase.get_bucket
  • List objects supabase.list_objects
Show all 16 actions
  • Get object info supabase.get_object_info
  • Download object supabase.download_object
  • Upload object supabase.upload_object
  • Delete objects supabase.delete_objects
  • Create signed URL supabase.create_signed_url
  • Supabase project API (Data API /rest/v1, Storage /storage/v1) request supabase.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • SUPABASE_URL Required
    Project URL: https://<project-ref>.supabase.co, a custom https domain, or http://127.0.0.1:54321 locally. Origin only (no /rest/v1).
  • SUPABASE_KEY Required
    API key, sent as apikey: a publishable key (sb_publishable_...) or secret key (sb_secret_...), legacy anon/service_role JWTs also work (they are sent as Bearer too).
  • SUPABASE_USER_JWT Optional
    A signed-in user's access token, sent as Authorization: Bearer, so row level security sees that user
  • SUPABASE_TOOL_ALLOW_WRITES Optional
    1 lets agent tools insert, upsert, update, upload and call functions
  • SUPABASE_DOWNLOAD_DIR For downloads
    Absolute directory for download_object
  • SUPABASE_UPLOAD_DIR For local uploads
    Directory that local upload_object files must be inside (https URLs work without it)
  • SUPABASE_TOOL_API_EXTRA_PATHS Optional
    More read paths for agent api_request, comma-separated, * = one segment
  • SUPABASE_TOOL_MODE Optional
    default, or user_rpc for multi-user chatbots
  • SUPABASE_TOOL_RPC_ALLOWLIST In user_rpc
    Functions the call_function tool may call, comma-separated (e.g. get_balance,list_orders), others are refused. Unset: any function in the default mode, none in user_rpc
  • SUPABASE_TOOL_TIMEOUT_MS Optional
    Deadline of one call_function tool call, 1000-120000 (default 30000)
  • SUPABASE_TOOL_MAX_ROWS Optional
    Array results of the call_function tool are cut to this many rows, with a note to the model, 1-1000 (default 100)

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Supabase.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install supabase
workflow.yaml
- id: open_todos
  type: supabase.select_rows
  table: todos
  columns: id,title,owner:profiles(name)
  filters: [{ column: status, operator: eq, value: open }]
  order: created_at.desc
  limit: 20
- id: close
  type: supabase.update_rows
  table: todos
  values: { status: done }
  filters: [{ column: id, operator: eq, value: "{{#open_todos.data.0.id#}}" }]
Plugins in the docs