Skip to main content
Glama

Qdrant Retrieve MCP Server

configureErrorHandling.ts995 B
import type { Express, Request, Response, NextFunction } from "express"; /** * Parameters for configuring error handling */ type ConfigureErrorHandlingParams = { /** Express application instance */ app: Express; }; /** * Configures global error handling for the Express application * * @param params - Configuration parameters */ export function configureErrorHandling({ app }: ConfigureErrorHandlingParams): void { // Global error handling middleware app.use( ( err: Error, req: Request, res: Response, next: NextFunction ) => { console.error("Global error handler caught:", err); res.status(500).json({ error: "Server error", message: err.message || "An unexpected error occurred", }); } ); // 404 handler for undefined routes app.use((req: Request, res: Response) => { res.status(404).json({ error: "Not Found", message: `Route ${req.method} ${req.path} not found`, }); }); }

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/gergelyszerovay/mcp-server-qdrant-retrive'

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