Skip to main content
Glama
stream.ts452 B
import { Request, Response } from 'express'; import { SSEManager } from '../services/sse-manager'; import { v4 as uuidv4 } from 'uuid'; export function createStreamHandler(sseManager: SSEManager) { return (req: Request, res: Response) => { const clientId = req.headers['x-client-id'] as string || uuidv4(); req.on('close', () => { sseManager.removeConnection(clientId); }); sseManager.addConnection(clientId, res); }; }

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/bleugreen/linear-mcp'

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