Skip to main content
Glama

MCP Prompts Server

startRest.ts413 B
#!/usr/bin/env node import { container } from 'tsyringe'; import { createRestServer } from '@sparesparrow/mcp-prompts-adapters-rest'; export function startRest() { const promptApp = container.resolve('IPromptApplication'); const app = createRestServer(promptApp); const port = process.env.PORT || 3000; app.listen(port, () => { console.log(`REST API listening on http://localhost:${port}`); }); }

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/sparesparrow/mcp-prompts'

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