Customer Retention LTV

v0.1.1
io.github.atul0016/customer-retention-ltv Checked 2 days ago Published 6 months ago

Customer LTV, churn risk, repurchase, lifecycle email, and winback intelligence.

Has high-severity static-analysis findings pending human review.

Values you need

VariableWhat it is
EARNALL_MCP_LICENSE_KEYrequired secret License key from AtulHritik-Mcp-Customer-Retention-Ltv purchase page.
EARNALL_MCP_ACTIVATION_IDoptional Optional stable private install ID for this user/device.
EARNALL_MCP_LICENSE_APIoptional License validation endpoint.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add customer-retention-ltv -e 'EARNALL_MCP_LICENSE_KEY=<EARNALL_MCP_LICENSE_KEY>' -- uvx customer-retention-ltv-mcp==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "customer-retention-ltv": {
      "args": [
        "customer-retention-ltv-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "EARNALL_MCP_LICENSE_KEY": "<EARNALL_MCP_LICENSE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "customer-retention-ltv": {
      "args": [
        "customer-retention-ltv-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "EARNALL_MCP_LICENSE_KEY": "<EARNALL_MCP_LICENSE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "EARNALL_MCP_LICENSE_KEY",
      "id": "earnall-mcp-license-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "customer-retention-ltv": {
      "args": [
        "customer-retention-ltv-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "EARNALL_MCP_LICENSE_KEY": "${input:earnall-mcp-license-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.customer-retention-ltv]
command = "uvx"
args = ["customer-retention-ltv-mcp==0.1.1"]
env = { "EARNALL_MCP_LICENSE_KEY" = "<EARNALL_MCP_LICENSE_KEY>" }

Docker

Requires Docker

Run in a terminal
claude mcp add customer-retention-ltv -e 'EARNALL_MCP_LICENSE_KEY=<EARNALL_MCP_LICENSE_KEY>' -- docker run -i --rm -e EARNALL_MCP_LICENSE_KEY docker.io/atulhritik/customer-retention-ltv-mcp:0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "customer-retention-ltv": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EARNALL_MCP_LICENSE_KEY",
        "docker.io/atulhritik/customer-retention-ltv-mcp:0.1.0"
      ],
      "command": "docker",
      "env": {
        "EARNALL_MCP_LICENSE_KEY": "<EARNALL_MCP_LICENSE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "customer-retention-ltv": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EARNALL_MCP_LICENSE_KEY",
        "docker.io/atulhritik/customer-retention-ltv-mcp:0.1.0"
      ],
      "command": "docker",
      "env": {
        "EARNALL_MCP_LICENSE_KEY": "<EARNALL_MCP_LICENSE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "EARNALL_MCP_LICENSE_KEY",
      "id": "earnall-mcp-license-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "customer-retention-ltv": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EARNALL_MCP_LICENSE_KEY",
        "docker.io/atulhritik/customer-retention-ltv-mcp:0.1.0"
      ],
      "command": "docker",
      "env": {
        "EARNALL_MCP_LICENSE_KEY": "${input:earnall-mcp-license-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.customer-retention-ltv]
command = "docker"
args = ["run", "-i", "--rm", "-e", "EARNALL_MCP_LICENSE_KEY", "docker.io/atulhritik/customer-retention-ltv-mcp:0.1.0"]
env = { "EARNALL_MCP_LICENSE_KEY" = "<EARNALL_MCP_LICENSE_KEY>" }

For AI agents

  1. Ask the user for: EARNALL_MCP_LICENSE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: health, get_license_status, get_live_connector_status, test_shopify_retention_connection, test_klaviyo_connection, get_ltv_by_channel, get_churn_risk_segment, get_repurchase_rate_by_channel, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json