get_project_url
Retrieve the configured Supabase project URL for self-hosted instances using the MCP server, enabling direct interaction with databases, migrations, auth users, and storage.
Instructions
Returns the configured Supabase project URL for this server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/get_project_url.ts:28-32 (handler)The execute function that implements the core logic of the get_project_url tool by retrieving the Supabase project URL from the client context.execute: async (input: GetProjectUrlInput, context: ToolContext) => { const client = context.selfhostedClient; const url = client.getSupabaseUrl(); // Use getter from client return { project_url: url }; },
- src/tools/get_project_url.ts:6-12 (schema)Zod schemas defining the input (empty) and output structure (project_url as valid URL) for the tool.const GetProjectUrlInputSchema = z.object({}); type GetProjectUrlInput = z.infer<typeof GetProjectUrlInputSchema>; // Output schema const GetProjectUrlOutputSchema = z.object({ project_url: z.string().url(), });
- src/index.ts:107-107 (registration)Registers the getProjectUrlTool in the availableTools map used by the MCP server to expose the tool.[getProjectUrlTool.name]: getProjectUrlTool as AppTool,