twenty-mcp-server
Version:
Easy-to-install Model Context Protocol server for Twenty CRM. Try instantly with 'npx twenty-mcp-server setup' or install globally for permanent use.
61 lines • 1.78 kB
TypeScript
export interface TwentyMCPConfig {
version: string;
installation: {
installPath: string;
installedAt: string;
lastUpdated?: string;
};
twenty: {
apiKey?: string;
baseUrl?: string;
};
auth: {
enabled: boolean;
requireAuth: boolean;
provider?: 'clerk';
clerkPublishableKey?: string;
clerkSecretKey?: string;
clerkDomain?: string;
encryptionSecret?: string;
};
ipProtection: {
enabled: boolean;
allowlist: string[];
trustedProxies: string[];
blockUnknownIPs: boolean;
};
server: {
port: number;
mode: 'stdio' | 'http';
verbose: boolean;
};
preferences: {
autoStart: boolean;
checkUpdates: boolean;
telemetry: boolean;
};
}
export declare class ConfigManager {
private configDir;
private configPath;
private envPath;
constructor(projectPath?: string);
private ensureConfigDir;
private getDefaultConfig;
load(): TwentyMCPConfig;
private mergeConfigs;
save(config: TwentyMCPConfig): void;
updateTwentyConfig(apiKey: string, baseUrl: string): void;
updateAuthConfig(authConfig: Partial<TwentyMCPConfig['auth']>): void;
updateIPProtectionConfig(ipConfig: Partial<TwentyMCPConfig['ipProtection']>): void;
updateServerConfig(serverConfig: Partial<TwentyMCPConfig['server']>): void;
updatePreferences(preferences: Partial<TwentyMCPConfig['preferences']>): void;
syncToEnv(config?: TwentyMCPConfig): void;
loadEnv(): void;
getConfigPath(): string;
getEnvPath(): string;
exists(): boolean;
reset(): void;
importFromEnv(): TwentyMCPConfig;
}
//# sourceMappingURL=config-manager.d.ts.map