mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.
16 lines • 658 B
TypeScript
import type { Request, Response, NextFunction } from "express";
/**
* Request logging middleware with timestamp, colored status codes, and MCP method info
*
* Logs all HTTP requests with:
* - Timestamp in HH:MM:SS.mmm format
* - HTTP method and endpoint in bold
* - MCP method name in brackets for POST requests to /mcp
* - Color-coded status codes (green 2xx, yellow 3xx, red 4xx, magenta 5xx)
*
* @param req - Express request object
* @param res - Express response object
* @param next - Express next function
*/
export declare function requestLogger(req: Request, res: Response, next: NextFunction): void;
//# sourceMappingURL=logging.d.ts.map