Skip to main content
Glama

Sentry MCP

Official
by getsentry
logging.ts599 B
import type { MiddlewareHandler } from "hono"; import { logInfo } from "@sentry/mcp-server/telem/logging"; /** * Hono middleware that logs every request once the response is ready. */ export function createRequestLogger( loggerScope: readonly string[] = ["cloudflare", "http"], ): MiddlewareHandler { return async (c, next) => { const start = Date.now(); await next(); const url = new URL(c.req.url); logInfo(`${c.req.method} ${url.pathname}`, { loggerScope, extra: { status: c.res.status, duration_ms: Date.now() - start, }, }); }; }

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/getsentry/sentry-mcp'

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