Skip to content
agent-cms

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 demo
Runs on a demo database that resets every 30 minutes.

API keys

Loading…

Usage#

tsx
<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:

tsx
<CmsProvider baseUrl="/api/cms">{children}</CmsProvider>