Skip to main content
Glama
Apache 2.0
926
2,230
  • Apple
development-tools.ts2.33 kB
import { z } from 'zod'; import type { DevelopmentOperations } from '../platform/types.js'; import { injectableTool } from './util.js'; export type DevelopmentToolsOptions = { development: DevelopmentOperations; projectId?: string; }; export function getDevelopmentTools({ development, projectId, }: DevelopmentToolsOptions) { const project_id = projectId; return { get_project_url: injectableTool({ description: 'Gets the API URL for a project.', annotations: { title: 'Get project URL', readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false, }, parameters: z.object({ project_id: z.string(), }), inject: { project_id }, execute: async ({ project_id }) => { return development.getProjectUrl(project_id); }, }), get_publishable_keys: injectableTool({ description: 'Gets all publishable API keys for a project, including legacy anon keys (JWT-based) and modern publishable keys (format: sb_publishable_...). Publishable keys are recommended for new applications due to better security and independent rotation. Legacy anon keys are included for compatibility, as many LLMs are pretrained on them. Disabled keys are indicated by the "disabled" field; only use keys where disabled is false or undefined.', annotations: { title: 'Get publishable keys', readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false, }, parameters: z.object({ project_id: z.string(), }), inject: { project_id }, execute: async ({ project_id }) => { return development.getPublishableKeys(project_id); }, }), generate_typescript_types: injectableTool({ description: 'Generates TypeScript types for a project.', annotations: { title: 'Generate TypeScript types', readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false, }, parameters: z.object({ project_id: z.string(), }), inject: { project_id }, execute: async ({ project_id }) => { return development.generateTypescriptTypes(project_id); }, }), }; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/supabase-community/mcp-supabase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server