get_project_url
Retrieve the configured Supabase project URL from the Self-Hosted MCP Server, enabling direct access to Supabase features and database interactions within MCP-compatible 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 main handler function that executes the tool logic. It retrieves the Supabase project URL from the provided client context and returns it in the expected output format.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-20 (schema)Zod schemas for input (empty), output (project_url as URL string), and static MCP JSON input schema (empty object).const GetProjectUrlInputSchema = z.object({}); type GetProjectUrlInput = z.infer<typeof GetProjectUrlInputSchema>; // Output schema const GetProjectUrlOutputSchema = z.object({ project_url: z.string().url(), }); // Static JSON Schema for MCP capabilities const mcpInputSchema = { type: 'object', properties: {}, required: [], };
- src/index.ts:18-18 (registration)Import statement for the getProjectUrlTool.import { getProjectUrlTool } from './tools/get_project_url.js';
- src/index.ts:107-107 (registration)Registration of the getProjectUrlTool in the availableTools object, making it available for the MCP server.[getProjectUrlTool.name]: getProjectUrlTool as AppTool,