Skip to main content
Glama
prompts.ts546 B
import { FastMCP } from "fastmcp"; import { z } from "zod"; /** * Register all prompts with the MCP server * @param server The FastMCP server instance */ export function registerPrompts(server: FastMCP) { // Example prompt server.addPrompt({ name: "greeting", description: "A simple greeting prompt", arguments: [ { name: "name", description: "Name to greet", required: true, }, ], load: async ({ name }) => { return `Hello, ${name}! How can I help you today?`; } }); }

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/mingdaocloud/hap-mcp'

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