Use the Clerk connector well and safely
Guides your AI assistant through connecting to Clerk, confirming the right workspace and application, and choosing between the SDK snippet tools. It asks before switching accounts and never asks for secret keys.
Use it when
- You want an AI assistant to fetch the right Clerk auth code for your framework.
- You are not sure which Clerk workspace your agent is connected to.
- Your agent returned a permission error and you need to know what it means.
Tools it uses
list_clerk_sdk_snippetsclerk_sdk_snippet
Connect to Clerk and give me the Next.js snippet for protecting a dashboard route, using environment variables for my keys.
I'm connected to your Clerk workspace "Acme Team" and will use the application you confirm. I found a Next.js route-protection snippet, adapted it to read keys from environment variables, and left the publishable key as a placeholder. Next, add your app's domain and redirect URL under the Clerk Dashboard's settings, since the snippet cannot set those.