Skip to main content
Glama

@ragrabbit/mcp

// You can also define global actions (ie: shared between apps) here. "use server"; // don't forget to add this! import { z } from "zod"; import { actionClient } from "../index"; // This schema is used to validate input from client. const schema = z.object({ name: z.string().min(3).max(10), }); export const greetUser = actionClient .schema(schema) .metadata({ name: "greetUser", } as any) .action(async ({ parsedInput: { name }, ctx: { logger } }) => { logger.info("Greeting user", { name }); return { greeting: `Hello ${name}!` }; });

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/madarco/ragrabbit'

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