get_project_url
Retrieve the configured Supabase project URL from a self-hosted MCP server to access and manage your database, migrations, authentication, and storage directly within development environments.
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 async execute function that implements the core tool logic by retrieving the Supabase project URL from the provided 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 for input (empty object) and output (project_url as valid URL string).const GetProjectUrlInputSchema = z.object({}); type GetProjectUrlInput = z.infer<typeof GetProjectUrlInputSchema>; // Output schema const GetProjectUrlOutputSchema = z.object({ project_url: z.string().url(), });
- src/tools/get_project_url.ts:15-19 (schema)Static JSON Schema object for MCP tool capabilities, defining empty input schema.const mcpInputSchema = { type: 'object', properties: {}, required: [], };
- src/index.ts:18-18 (registration)Import of the getProjectUrlTool from its implementation file.import { getProjectUrlTool } from './tools/get_project_url.js';
- src/index.ts:107-107 (registration)Entry registering the tool in the availableTools map, which is used to populate MCP server capabilities and request handlers.[getProjectUrlTool.name]: getProjectUrlTool as AppTool,