Skip to main content
Glama
index.ts512 B
import type { McpToolContext } from './types' import { version } from '../package.json' import { createServer, startServer, stopServer } from './server' import { registerToolYoutubeMusic } from './tools/youtube' (async function main() { const mcp = createServer({ name: 'my-mcp-server', version: version || '0.0.1', }) process.on('SIGTERM', () => stopServer(mcp)) process.on('SIGINT', () => stopServer(mcp)) registerToolYoutubeMusic({ mcp } as McpToolContext) await startServer(mcp) })()

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/instructa/mcp-youtube-music'

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