We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BIFROTEK-com/supabase-mcp-http-stream-n8n'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { z } from 'zod';
import type { SupabasePlatform } from '../platform/types.js';
import { injectableTool } from './util.js';
export type StorageToolsOptions = {
platform: SupabasePlatform;
projectId?: string;
};
export function getStorageTools({ platform, projectId }: StorageToolsOptions) {
const project_id = projectId;
return {
list_storage_buckets: injectableTool({
description: 'Lists all storage buckets in a Supabase project.',
parameters: z.object({
project_id: z.string(),
}),
inject: { project_id },
execute: async ({ project_id }) => {
return await platform.listAllBuckets(project_id);
},
}),
get_storage_config: injectableTool({
description: 'Get the storage config for a Supabase project.',
parameters: z.object({
project_id: z.string(),
}),
inject: { project_id },
execute: async ({ project_id }) => {
return await platform.getStorageConfig(project_id);
},
}),
update_storage_config: injectableTool({
description: 'Update the storage config for a Supabase project.',
parameters: z.object({
project_id: z.string(),
config: z.object({
fileSizeLimit: z.number(),
features: z.object({
imageTransformation: z.object({ enabled: z.boolean() }),
s3Protocol: z.object({ enabled: z.boolean() }),
}),
}),
}),
inject: { project_id },
execute: async ({ project_id, config }) => {
await platform.updateStorageConfig(project_id, config);
return { success: true };
},
}),
};
}