Step 1
Register with PIE
Add this service as an external MCP server in the PIE platform. Both the MCP client and its authorization server live on the same origin.
……Authorization: Bearer <PIE_SERVICE_TOKEN>. The same random value is stored here and pasted into PIE — calls run as a fixed service principal. Best fit for workflow orchestrators./.well-known/oauth-protected-resource and each call acts as the signed-in user.Step 2
Exposed MCP tools
Five tools cover the full ingest → score → read loop.
Step 3
Example payload for ingest_event
Supported event types: transaction_declined support_ticket_created login_failure nps_submitted website_visit mobile_app_crash
{
"customer_id": "CUST-001",
"event_type": "transaction_declined",
"timestamp": "2026-08-03T08:06:06.881Z",
"payload": { "amount": 249.90, "currency": "EUR", "reason": "insufficient_funds" },
"source": "core-banking"
}How it works
Ingest
PIE sends interaction events via ingest_event or ingest_events_batch.
Score
Events land in the raw log and are scored on demand or nightly.
Read
PIE reads the current churn_risk_score and top factors per customer.