The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit bd8b77ebf65aCommit detailsView latest

api/oauth-authorization-server.ts 7 lines · 313 B · typescript
1
import { authServerMetadataHandlerClerk } from '@clerk/mcp-tools/next';
2
3
export async function GET(): Promise<Response> {
4
  if (!process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY)
5
    return Response.json({ error: 'OAuth provider is not configured' }, { status: 503 });
6
  return authServerMetadataHandlerClerk()();
7
}