The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.
Viewing files at commit bd8b77ebf65aCommit detailsView latest
Clerk login and MCP OAuth setup
OpenClasp uses Clerk for both human dashboard sessions and agent MCP OAuth. Vercel supplies the Clerk keys; OpenClasp does not store provider secrets.
Vercel
- Open the OpenClasp Vercel project and install the Clerk Marketplace integration.
- Connect it to Production, Preview, and Development.
- Confirm Vercel created
CLERK_SECRET_KEYandNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY. - Redeploy after changing integration settings.
Google and GitHub only
- Open the linked application in Clerk Dashboard.
- Under User & authentication → Social connections, enable Google and GitHub.
- Disable email/password, email code, phone, passkeys, and every other sign-in method.
- Add
https://openclasp.vercel.appas a production domain. - For production traffic, replace Clerk's shared development credentials with your own Google and GitHub OAuth credentials. Use the callback URLs shown by Clerk; do not guess them.
The app starts each provider directly and returns through /sso-callback to /dashboard.
MCP OAuth
- In Clerk Dashboard, enable OAuth applications.
- Enable Dynamic Client Registration and Client ID Metadata Documents so MCP clients can register.
- Ensure the built-in
profilescope is available. OpenClasp currently requires it. - Keep
https://openclasp.vercel.app/mcpasOPENCLASP_MCP_URLin Vercel. - Connect an MCP client to
https://openclasp.vercel.app/mcp. It discovers Clerk, opens consent, and sends an OAuth access token. Dashboard session tokens are rejected at this endpoint.
Before public beta, define narrower OpenClasp scopes and replace the temporary profile requirement.
Smoke test
Test Google and GitHub separately in private browser windows. Each must end on /dashboard. Then
connect an MCP client and verify that an unauthenticated request receives a 401 with protected
resource metadata, while an approved OAuth token can list tools.