Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

617 B
Raw Blame
import { env } from "@/src/env.mjs";

import type { McpFeatureModule } from "../registry";
import { getMonitorTool, handleGetMonitor } from "./tools/getMonitor";
import { listMonitorsTool, handleListMonitors } from "./tools/listMonitors";

export const monitorsFeature = {
  name: "alerts",
  description: "Inspect alerts in the current Langfuse project",
  tools: [
    { definition: listMonitorsTool, handler: handleListMonitors },
    { definition: getMonitorTool, handler: handleGetMonitor },
  ],
  isEnabled: async () => env.LANGFUSE_MIGRATION_V4_WRITE_MODE !== "legacy",
} as const satisfies McpFeatureModule;