Skip to main content
Glama
formatter.ts462 B
import { Prompt, PromptMessage } from "@modelcontextprotocol/sdk/types.js"; import { Prompt as PromptzPrompt } from "./definitions.js"; export function toMCPPrompt(prompt: PromptzPrompt): Prompt { return { name: prompt.name, description: prompt.description, }; } export function toMCPPromptMessage(prompt: PromptzPrompt): PromptMessage { return { role: "user", content: { type: "text", text: prompt.instruction, }, }; }

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/cremich/promptz-mcp'

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