Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
TypeScript
at incident-api
1234567891011121314151617181920212223242526import type { McpServer, RegisteredTool,} from "@modelcontextprotocol/sdk/server/mcp.js";import type { ServiceContext } from "@openstatus/services";import { getAuditLogTool, listAuditLogsTool,} from "@openstatus/services/agent-tools";
import { registerRegistryTools } from "./registry-adapter";
/** Skip registration when the plan lacks `audit-log` so the tools don't surface in `tools/list`. */export function registerAuditTools( server: McpServer, ctx: ServiceContext,): Map<string, RegisteredTool> { if (!ctx.workspace.limits["audit-log"]) { return new Map(); } return registerRegistryTools(server, ctx, [ listAuditLogsTool, getAuditLogTool, ]);}