appbase

v0.1.0
io.github.CloudCorpRecords/appbase Checked 2 days ago Published 1 month ago

Supabase projects, tables, SQL, migrations, and storage from your MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_tables

Lists all tables within the specified schemas.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose tables are listed.
schemasarrayThe database schemas to list tables from, defaulting to public when omitted.

list_extensions

Lists all extensions in the database.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose database extensions are listed.

list_migrations

Lists all migrations in the database.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose migrations are listed.

execute_sql

Executes raw SQL in the database.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project to run the SQL against.
query *stringThe raw SQL query to execute in the project's database.

apply_migration

Applies a SQL migration to the database. SQL passed to this tool will be tracked within the database, so use this for DDL operations (schema changes).

ParameterTypeDescription
name *stringThe name of the migration to record in the database.
project_id *stringThe reference ID of the Supabase project to apply the migration to.
query *stringThe SQL statements of the migration to apply.

get_logs

Gets logs for a Supabase project by service (api, postgres, edge-function, auth, storage, realtime, or branch-action).

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose logs are retrieved.
service *stringThe service to get logs for, one of api, postgres, edge-function, auth, storage, realtime, or branch-action.

get_advisors

Gets advisory notices for a Supabase project, by type: security or performance.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose advisors are retrieved.
type *stringThe type of advisory notices to get, either security or performance.

get_project_url

Gets the API URL for a Supabase project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose API URL is returned.

get_publishable_keys

Gets the publishable and anon API keys for a Supabase project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose publishable and anon API keys are returned.

generate_typescript_types

Generates TypeScript types based on the database schema.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project to generate TypeScript types for.
included_schemasarrayThe database schemas to include when generating the TypeScript types.

list_edge_functions

Lists all Edge Functions in a Supabase project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose Edge Functions are listed.

get_edge_function

Gets details for an Edge Function by slug.

ParameterTypeDescription
function_slug *stringThe slug of the Edge Function to retrieve.
project_id *stringThe reference ID of the Supabase project that owns the Edge Function.

deploy_edge_function

Deploys an Edge Function to a Supabase project from inline files.

ParameterTypeDescription
files *arrayThe inline files that make up the Edge Function, each with a name and content.
name *stringThe name of the Edge Function to deploy.
project_id *stringThe reference ID of the Supabase project to deploy the Edge Function to.
entrypoint_pathstringThe path of the entrypoint file for the Edge Function.
import_map_pathstringThe path of the import map file for the Edge Function.

list_storage_buckets

Lists all storage buckets in a Supabase project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose storage buckets are listed.

create_storage_bucket

Creates a new storage bucket in a Supabase project.

ParameterTypeDescription
name *stringThe name of the new storage bucket.
project_id *stringThe reference ID of the Supabase project to create the storage bucket in.
allowed_mime_typesarrayThe MIME types allowed for files uploaded to the bucket.
file_size_limitnumberThe maximum file size allowed for uploads to the bucket.
publicbooleanWhether the new storage bucket is publicly accessible.

list_branches

Lists all development branches for a Supabase project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project whose development branches are listed.

create_branch

Creates a new development branch for a Supabase project.

ParameterTypeDescription
name *stringThe name of the new development branch.
project_id *stringThe reference ID of the Supabase project to create the development branch in.
confirm_cost_idstringThe cost confirmation ID authorizing the branch creation charge, if one was obtained.

delete_branch

Deletes a development branch from a Supabase project.

ParameterTypeDescription
branch_id *stringThe ID of the development branch to delete.
project_id *stringThe reference ID of the Supabase project that owns the development branch.

merge_branch

Merges migrations and edge functions from a development branch into production.

ParameterTypeDescription
branch_id *stringThe ID of the development branch to merge into production.
project_id *stringThe reference ID of the Supabase project that owns the development branch.

reset_branch

Resets a development branch to its parent state, optionally at a migration version.

ParameterTypeDescription
branch_id *stringThe ID of the development branch to reset.
project_id *stringThe reference ID of the Supabase project that owns the development branch.
migration_versionstringThe optional migration version to reset the branch to.

rebase_branch

Rebases a development branch on its parent, applying newer migrations.

ParameterTypeDescription
branch_id *stringThe ID of the development branch to rebase on its parent.
project_id *stringThe reference ID of the Supabase project that owns the development branch.

list_projects

Lists all Supabase projects for the user.

get_project

Gets details for a project.

ParameterTypeDescription
id *stringThe ID of the project to retrieve details for.

create_project

Creates a new Supabase project.

ParameterTypeDescription
name *stringThe name of the new Supabase project.
organization_id *stringThe ID of the organization to create the new project in.
confirm_cost_idstringThe cost confirmation ID authorizing the project creation charge, if one was obtained.
regionstringThe region to create the new project in.

pause_project

Pauses a project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project to pause.

restore_project

Restores a project.

ParameterTypeDescription
project_id *stringThe reference ID of the Supabase project to restore.

list_organizations

Lists all organizations that the user is a member of.

get_organization

Gets details for an organization.

ParameterTypeDescription
id *stringThe ID of the organization to retrieve details for.