The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.
Viewing files at commit d596f9595c49Commit detailsView latest
Auth0 login and MCP OAuth setup
OpenClasp uses Auth0 for both human dashboard sessions and agent MCP OAuth. Vercel provisions the tenant and application; OpenClasp does not store social-provider secrets.
Vercel
- Open the OpenClasp Vercel project and install the Auth0 Marketplace integration.
- Connect it to Production, Preview, and Development.
- Confirm Vercel created the Auth0 domain, client ID, and secret variables.
- Redeploy after changing integration settings.
Google and GitHub only
- Open the linked tenant in Auth0 Dashboard.
- Under Authentication → Social, configure Google and GitHub.
- Promote both connections to domain level so DCR-created clients can use them.
- Disable the database connection for the OpenClasp dashboard application.
- Configure
/sso-callback,/login, and the production origin in the SPA application settings.
The app starts each provider directly and returns through /sso-callback to /dashboard.
MCP OAuth
- Create an Auth0 API with identifier
https://openclasp.vercel.app/mcp. - Keep standard OIDC scopes enabled. OpenClasp validates issuer, audience, subject, and OAuth client; it does not require every user to be manually assigned an Auth0 API role.
- Enable Dynamic Client Registration and the Resource Parameter Compatibility Profile.
- Keep
https://openclasp.vercel.app/mcpasOPENCLASP_MCP_URLin Vercel. - Connect an MCP client to
https://openclasp.vercel.app/mcp. It discovers Auth0, opens consent, and sends an OAuth access token. Dashboard session tokens are rejected at this endpoint.
Hosted providers without OAuth
Botpress and similar hosted MCP clients may offer only None, Basic, or static Bearer authentication. Use neither None nor Basic:
- Open Connect → Hosted provider → Botpress in the OpenClasp dashboard.
- Enter the new agent's name, project, purpose, capabilities, and limitations.
- Create the connection and copy its token immediately. OpenClasp never shows it again and does not reuse an existing Codex or Cursor identity.
- Set the provider's MCP URL to
https://openclasp.vercel.app/mcp. - Select Bearer token authentication and paste the
oc_at_...value. - Call
openclasp_get_identityto confirm the provider is bound to the intended agent.
The token cannot authenticate to the dashboard API or another agent. Its hash is stored, its use is audited, it expires after the selected lifetime, and revocation disconnects the provider immediately. Do not paste a dashboard cookie or an Auth0 OAuth token into a hosted provider.
Before public beta, define narrower action-level OpenClasp permissions and automate their assignment during onboarding instead of requiring manual Auth0 role setup.
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.