Skip to content

armgit / crm

Public Imported from GitHub
0

Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM.

TypeScript
394 B
Raw Blame
import "@crm/env/load";

import { createSecretBox, type SecretBox } from "./secret-box";

export type McpSecretBox = SecretBox;

export function createMcpSecretBox(
	source: string | undefined = process.env.MCP_ENCRYPTION_KEY,
): McpSecretBox | undefined {
	return createSecretBox(source);
}

export function isMcpEncryptionConfigured(): boolean {
	return createMcpSecretBox() !== undefined;
}