Choose how the organization is created
Human-first
Create an account at commet.co, open the sandbox organization, and create an API key under Settings → API Keys. Use OAuth when the agent’s MCP client can open a browser; use the sandbox API key for headless clients.Agent-first
A headless agent can provision paired live and sandbox organizations before a human signs in:Connect the MCP server
Use the hosted endpoint:x-api-key connection is fixed to the key’s organization. Always confirm whether that organization is sandbox or live before a write.
MCP v2 generates one api_* tool per current OpenAPI operation and also exposes documentation search. See MCP Server for client-specific configuration.
Give the agent the right documentation
Use the smallest source that answers the task:node_modules/@commet/node/docs/README.mdfor the API that matches the installed SDK version.- Documentation index to discover the right curated concept or business rule.
- Append
.mdto a page URL for focused Markdown, such ashttps://commet.co/docs/how-does-billing-work.md. - Full documentation only when the task genuinely needs the complete curated corpus.
- OpenAPI and generated API Reference for the exact current platform contract.
AGENTS.md:
@commet/next, @commet/ai-sdk, and @commet/better-auth keep their integration-specific guidance in their package READMEs and share the Node SDK contract above.
Install billing skills
Use a safe implementation loop
- Ask the agent to identify the billing model and the customer-visible outcome.
- Configure or inspect the catalog in sandbox.
- Implement one canonical flow with stable customer IDs and idempotency keys.
- Confirm asynchronous outcomes from signed webhooks, not redirects.
- Advance the Test Clock and verify renewal, failure, and recovery.
- Review every intended live mutation before changing credentials.