Skip to main content
Glama
config.ts900 B
import type { PlopTypes } from "@turbo/gen"; // Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation export default function generator(plop: PlopTypes.NodePlopAPI): void { // A simple generator to add a new React component to the internal UI library plop.setGenerator("react-component", { description: "Adds a new react component", prompts: [ { type: "input", name: "name", message: "What is the name of the component?", }, ], actions: [ { type: "add", path: "src/{{kebabCase name}}.tsx", templateFile: "templates/component.hbs", }, { type: "append", path: "package.json", pattern: /"exports": {(?<insertion>)/g, template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",', }, ], }); }

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