Skip to main content
Glama
Panth1823

Formula1 MCP Server

request-id.ts659 B
/** * Request ID middleware - generates and attaches request IDs to all requests */ import { Request, Response, NextFunction } from 'express'; import { randomUUID } from 'crypto'; export interface RequestWithId extends Request { requestId?: string; } /** * Middleware to generate and attach request IDs */ export function requestIdMiddleware( req: RequestWithId, res: Response, next: NextFunction ): void { // Generate or use existing request ID const requestId = req.headers['x-request-id'] as string || randomUUID(); req.requestId = requestId; // Add to response headers res.setHeader('X-Request-Id', requestId); next(); }

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/Panth1823/formula1-mcp'

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