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.
12 lines • 692 B
TypeScript
import type { Context, Next } from "hono";
/**
* Middleware that logs incoming HTTP requests with a timestamp, color-coded status code, and optional debug details.
*
* Skips logging for inspector telemetry and RPC endpoints under /inspector/api/tel/, /inspector/api/rpc/stream, and /inspector/api/rpc/log.
* For POST requests to /mcp, includes the MCP method name when present. When DEBUG is enabled, logs request headers/body and response headers/body.
*
* @param c - Hono context for the current request/response
* @param next - Next middleware function to invoke
*/
export declare function requestLogger(c: Context, next: Next): Promise<void>;
//# sourceMappingURL=logging.d.ts.map