Skip to main content
Glama

MCP Server Boilerplate

by cds-id
index.ts486 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { greetingPrompt } from './greetingPrompt.js'; import { analyzeDataPrompt } from './analyzeDataPrompt.js'; /** * Register all prompts with the MCP server * @param server The MCP server instance */ export function registerPrompts(server: McpServer): void { // Register greeting prompt greetingPrompt(server); // Register analyze data prompt analyzeDataPrompt(server); // Add more prompts here }

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/cds-id/mcp-server-boilerplate'

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