Kostenlose Lieferung ab 49 €
Live · MCP 2024-11-05 · JSON-RPC 2.0

Fresh Haven
MCP Server

Verbinde Claude Desktop, ChatGPT oder jeden MCP-kompatiblen Agenten direkt mit dem Fresh Haven Shop. Produkte suchen, Warenkorb steuern, Empfehlungen holen — programmatisch, in Sekunden.

POSThttps://fabular.pages.dev/api/mcp
🤖

Claude Desktop

claude_desktop_config.json

{
  "mcpServers": {
    "fresh-haven": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fetch",
        "https://fabular.pages.dev/api/mcp"
      ]
    }
  }
}

Alternativ: direkt als HTTP-Server via mcp-remote.

HTTP direkt (curl)

JSON-RPC 2.0 · kein SDK nötig

curl -X POST https://fabular.pages.dev/api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "product_search",
      "arguments": {
        "query": "bio karotten",
        "maxPrice": 3
      }
    }
  }'

Handshake — initialize

# 1. Handshake
curl -X POST https://fabular.pages.dev/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

# → gibt protocolVersion, serverInfo und instructions zurück

# 2. Tools auflisten
curl -X POST https://fabular.pages.dev/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'

# 3. Warenkorb-Session via Header
curl -X POST https://fabular.pages.dev/api/mcp \
  -H "x-session-id: mein-agent-xyz" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"cart_add","arguments":{"product_sid":"rescue-001","quantity":2}}}'

9 Tools · vollständige Spezifikation

Alle Tools folgen JSON-RPC 2.0 · Fehler als error.code / error.message

Sucheproduct_search

Sucht im Bio-Katalog nach Name, Kategorie, Diät-Filter und Preisgrenze.

Parameter

query · category · bio · offer · maxPrice · minRating · limit

Warenkorbcart_add

Legt ein Produkt per sid direkt in den Warenkorb. Gibt Bestätigung + Gesamtanzahl zurück.

Parameter

product_sid · quantity

Warenkorbcart_get

Gibt den aktuellen Warenkorb mit Artikeln, Mengen, Einzelpreisen und Gesamtbetrag zurück.

Parameter

Warenkorbcart_remove

Entfernt ein Produkt vollständig aus dem Warenkorb.

Parameter

product_sid

Warenkorbcart_clear

Leert den Warenkorb vollständig.

Parameter

Angeboteoffers_list

Gibt aktuelle Angebote sortiert nach Ersparnis in Prozent zurück.

Parameter

limit

MHD-Dealsrescue_food_list

Produkte kurz vor dem MHD — bis –65 %, täglich aktualisiert.

Parameter

limit

Empfehlungrecommendations_get

Personalisierte Empfehlungen nach Ernährungsweise, Zielen und Wochenbudget.

Parameter

lifestyle · goals[] · budget_eur · limit

Detailproduct_detail

Vollständige Produktdetails: Beschreibung, Nährwerte, Bewertung, Abo-Optionen.

Parameter

product_sid

Beispiel — Veganes Abendessen unter 20 €

Ein Agent kann diesen kompletten Flow mit 3 Tool-Calls erledigen.

1

Produkte suchen

{"method":"tools/call","params":{"name":"recommendations_get","arguments":{"lifestyle":"vegan","budget_eur":20,"limit":6}}}
2

Auswahl in den Warenkorb

{"method":"tools/call","params":{"name":"cart_add","arguments":{"product_sid":"rescue-007","quantity":1}}}
3

Warenkorb prüfen & Checkout

{"method":"tools/call","params":{"name":"cart_get","arguments":{}}}
// → gibt checkout_url: "https://fabular.pages.dev/checkout" zurück
Fabular Platform · auto-provisioned

Jeder Tenant bekommt diesen MCP-Server — automatisch.

Ein Händler baut einen MCP-Server einmal, als Projekt. Die Fabular-Plattform liefert ihn an N Tenants per Checkbox — mit tenant-spezifischen Produktdaten, Preisen, Lagerbestand und Branding. Das ist der Unterschied zwischen einem Feature und einem Plattform-Primitiv.

product.searchcart.*order.statusoffers.listrescue_foodrecommendations