Skip to main content
Glama
kelvis-santos

MCP Server

middleware.ts475 B
// MCP Middleware Pattern Example // Exemplo fictício de Middleware MCP (autocontido para apresentação) type Request = { headers: { authorization?: string } }; type Response = { status: (code: number) => Response; json: (body: any) => void }; type NextFunction = () => void; export function authMiddleware(req: Request, res: Response, next: NextFunction) { if (!req.headers.authorization) { return res.status(401).json({ message: 'Unauthorized' }); } 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/kelvis-santos/MCP-vscode-examples'

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