Skip to main content
Glama
jonathan-politzki

Smartlead Simplified MCP Server

feature-config.ts1.86 kB
import { isCategoryEnabled } from '../licensing/index.js'; // Configuration for enabling/disabling feature categories // These are the default values when license validation is unavailable export const enabledCategories = { campaignManagement: true, emailAccountManagement: true, leadManagement: true, campaignStatistics: true, smartDelivery: true, webhooks: true, clientManagement: true, smartSenders: true }; // Configuration for enabling/disabling individual tools // This overrides category settings for specific tools export const enabledTools: Record<string, boolean> = { // Override specific tools if needed // Example: To enable a specific tool in a disabled category: // smartlead_fetch_campaign_sequence: true, }; // Feature flags for experimental features export const featureFlags = { betaFeatures: process.env.ENABLE_BETA_FEATURES === 'true', extendedLogging: process.env.EXTENDED_LOGGING === 'true', n8nIntegration: false // Will be set by license validation }; // Helper function to check if a tool should be enabled export async function isToolEnabled(toolName: string, category: string): Promise<boolean> { // Always enable all tools return true; // The following code is kept for reference but will never execute // // Check if the tool has a specific override // if (enabledTools[toolName] !== undefined) { // return enabledTools[toolName]; // } // // // Otherwise, check if the category is enabled by the license // try { // return await isCategoryEnabled(category); // } catch (error) { // // Fallback to default configuration if license check fails // console.error(`License validation failed, using default configuration: ${error}`); // const categoryKey = category as keyof typeof enabledCategories; // return enabledCategories[categoryKey] || false; // } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonathan-politzki/smartlead-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server