🌐 Öffentliche API-URL erstellen

Es gibt 3 einfache Wege, um eine öffentliche URL für die CompText API zu bekommen:


⚡ Option 1: ngrok (Schnellste Methode - 2 Minuten)

Installation

macOS:

brew install ngrok

Windows:

# Download von [<https://ngrok.com/download>](<https://ngrok.com/download>)
# Oder mit Chocolatey:
choco install ngrok

Linux:

curl -s [<https://ngrok-agent.s3.amazonaws.com/ngrok.asc>](<https://ngrok-agent.s3.amazonaws.com/ngrok.asc>) | \\
  sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null
echo "deb [<https://ngrok-agent.s3.amazonaws.com>](<https://ngrok-agent.s3.amazonaws.com>) buster main" | \\
  sudo tee /etc/apt/sources.list.d/ngrok.list
sudo apt update && sudo apt install ngrok

Setup (einmalig)

  1. Account erstellen: https://dashboard.ngrok.com/signup
  2. Auth Token holen: https://dashboard.ngrok.com/get-started/your-authtoken
  3. Token konfigurieren:
ngrok config add-authtoken YOUR_AUTH_TOKEN

Verwendung

# Terminal 1: CompText API starten
cd comptext-mcp
python rest_api_[wrapper.py](<http://wrapper.py>)
# Läuft auf [<http://localhost:8000>](<http://localhost:8000>)

# Terminal 2: ngrok Tunnel erstellen
ngrok http 8000

Ausgabe:

Session Status    online
Account           dein-account
Version           3.x.x
Region            Europe (eu)
Forwarding        [<https://abc123def456.ngrok-free.app>](<https://abc123def456.ngrok-free.app>) -> [<http://localhost:8000>](<http://localhost:8000>)

Web Interface     [<http://127.0.0.1:4040>](<http://127.0.0.1:4040>)