Vectrum
Sign In
9 lines · 316 Bytes · TypeScript
import { corsJson, preflight } from "@/lib/cors";
import { protectedResourceMetadata } from "@/lib/oauth";

// Clients look here, or under /mcp (the path of the resource), for the same document.
export async function GET() {
  return corsJson(await protectedResourceMetadata());
}

export const OPTIONS = preflight;