Components / cms-keys
API keys
Keys with scopes, collections, last use and expiry; revoke; create with the secret shown once and MCP and CLI setup to copy.
With the shadcn CLI
npx shadcn add https://agent-cms-docs.vercel.app/r/cms-keys.json
With the agent-cms CLI
npx @mainsoft/agent-cms add cms-keys
Live demoRuns on a demo database that resets every 30 minutes. Usage#
<CmsKeys mcpServerName="my-app" />
The secret is shown once, with ready-to-copy MCP and .env setup. Keys can expire.
Install#
npx @mainsoft/agent-cms add cms-keys
It also needs CmsProvider from cms-lib around your admin:
<CmsProvider baseUrl="/api/cms">{children}</CmsProvider>