Skip to main content
Glama
aliyun

Alibaba Cloud Supabase MCP Server

Official
by aliyun
docs-tools.ts1.03 kB
import { tool } from '@supabase/mcp-utils'; import { source } from 'common-tags'; import { z } from 'zod'; import { type ContentApiClient } from '../content-api/index.js'; export type DocsToolsOptions = { contentApiClient: ContentApiClient; }; export function getDocsTools({ contentApiClient }: DocsToolsOptions) { return { search_docs: tool({ description: source` Search the Supabase documentation using GraphQL. Must be a valid GraphQL query. You should default to calling this even if you think you already know the answer, since the documentation is always being updated. Below is the GraphQL schema for the Supabase docs endpoint: ${contentApiClient.schema} `, parameters: z.object({ // Intentionally use a verbose param name for the LLM graphql_query: z.string().describe('GraphQL query string'), }), execute: async ({ graphql_query }) => { return await contentApiClient.query({ query: graphql_query }); }, }), }; }

Latest Blog Posts

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/aliyun/alibabacloud-supabase-mcp-server'

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