Metadata-Version: 2.4
Name: massiron
Version: 0.1.2
Summary: massiron — MCP orchestration hub & product hub for atlas, deepstrain, adauto: one GUI to discover, install, run, license, and keep them in sync.
Author: massiron
License: Proprietary
Project-URL: Homepage, https://massiron.com
Keywords: massiron,mcp,orchestration,atlas,deepstrain,adauto
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# massiron

**MCP orchestration hub** for the massiron product suite.

One dashboard to **discover**, **install**, **run**, and **license** all your massiron products:
[Atlas](https://massiron.com/atlas) · [DeepStrain](https://massiron.com/deepstrain) · [Adauto](https://massiron.com/adauto)

```bash
pip install massiron
python -m massiron
# → http://localhost:8767
```

---

## Features

| Feature | Description |
|---|---|
| **Product Discovery** | Auto-detects installed products (`pip show`) |
| **Service Lifecycle** | Start/stop/restart MCP servers (pythonw support) |
| **Health Monitoring** | TCP port healthcheck for every service |
| **License Management** | Key generation, HMAC signing, local activation |
| **Payment Webhooks** | LemonSqueezy + Paddle integration |
| **GUI Dashboard** | Zero-dependency web UI (http.server built-in) |

## Quick Start

```bash
# Install
pip install massiron

# Launch dashboard
python -m massiron

# Or specify port
MASSIRON_PORT=8767 python -m massiron
```

Open [http://localhost:8767](http://localhost:8767).

## Dashboard

The GUI shows each product as a card with:

- **Status**: Running / Installed / Not installed
- **Version**: detected via `pip show`
- **Port**: default MCP port
- **License**: licensed / unlicensed badge
- **Actions**: Start / Stop / Open / Install

### Product Quick Reference

| Product | Package | CLI | MCP Port |
|---|---|---|---|
| Atlas | `code-atlas` | `atlas` | 8766 |
| DeepStrain | `deepstrain` | `deepstrain` | 8765 |
| Adauto | `adauto` | `adauto` | 8764 |

## License System

Licenses are issued via [LemonSqueezy](https://lemonsqueezy.com) or [Paddle](https://paddle.com).

**Flow:**
1. Customer purchases on [massiron.com/pricing](https://massiron.com)
2. Payment provider sends webhook → `POST /api/webhook`
3. massiron generates deterministic license key (recoverable from email+product)
4. Key is HMAC-signed for tamper resistance
5. Customer enters key in dashboard → product activates

### Webhook Setup

Set environment variables:

```bash
# LemonSqueezy
LEMONSQUEEZY_WEBHOOK_SECRET=your_secret

# or Paddle
PADDLE_WEBHOOK_SECRET=your_secret
```

Webhook endpoint: `http://your-host:8767/api/webhook`

## Development

```bash
git clone https://github.com/mete-dotcom/massiron
cd massiron
pip install -e .
python -m massiron
```

## License

Proprietary — massiron.com
