mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.
21 lines • 723 B
TypeScript
import type { Context, Next } from "hono";
/**
* 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)
*
* When DEBUG environment variable is set, also logs:
* - Request headers
* - Full request payload/body
* - Response headers
* - Response body
*
* @param c - Hono context object
* @param next - Hono next function
*/
export declare function requestLogger(c: Context, next: Next): Promise<void>;
//# sourceMappingURL=logging.d.ts.map