← back to Ventura Claw

app/app/api/connectors/route.ts

17 lines

import { NextResponse } from "next/server";
import { ALL_CONNECTORS } from "@/lib/mcp/all-connectors";

export async function GET() {
  return NextResponse.json({
    connectors: ALL_CONNECTORS.map(c => ({
      id: c.meta.id,
      name: c.meta.name,
      category: c.meta.category,
      triggers: c.triggers.length,
      actions: c.actions.length,
      docs: c.meta.docsUrl,
      auth: c.auth.method
    }))
  });
}