Prerequisite: finish the Quickstart so activity is already flowing into the connector. You’ll need your
product_id, your Unkey token, and a Maven agent (created in Agent Designer).🎬 Watch the walkthrough
Prefer to watch first? This short Loom covers Part A below — installing the MCP app on your Maven agent, configuring it with your MCP URL and token, and testing it in the Simulator.🔌 Part A — Add the Autoplay MCP server to Maven
Maven discovers tools from any MCP server and registers them as actions your agent can call.Open your agent's Apps
In Maven AGI, open your agent, go to Apps, and find the MCP app (Browse & Install → search “MCP”).
Configure the connection
Install the MCP app and enter:
- MCP URL:
https://event-connector-luda.onrender.com/mcp/ - MCP auth token: your Unkey token (from your product registration)
Verify it now in the Simulator. Open Simulator and ask: “My product_id is
your-product-id and my user_id is a-real-user-id. What have I done recently?” Maven calls the tool and answers with that user’s activity. (In the Simulator you pass the ids in the message; Parts B and C wire identity automatically so your real users never have to.)💬 Part B — Embed the Maven chat widget
This is the surface your users talk to. Maven distributes it as a Chat app.Install the Chat app
In your agent → Apps → Browse & Install → search “Chat” → install the Chat app.
Allow your domain
Open the Chat app → Settings → Security → Allowed domains and add the domain your app runs on (e.g.
localhost for local testing, then your production domain).Copy your snippet
Open the Chat app → Settings → Instructions tab to find your snippet with your real
organizationId and agentId.If your site uses a Content Security Policy, allow
chat.onmaven.app in your script-src, connect-src, and frame-src directives.🔐 Part C — Pass a verified user identity
Maven only pulls the right user’s activity if it sends the correctuser_id to the tool. The secure way is signed user data: your backend cryptographically signs the logged-in user’s identity, so it can’t be forged.
1. Configure the keys — in Maven
In the Chat app → Settings → Security, set:- JWT Public Key — the public half of a signing keypair you generate (Maven uses it to verify the signature).
- Encryption secret — a shared secret (Maven uses it to decrypt the token).
2. Sign the user’s identity — on your backend
Add an endpoint your frontend calls for the logged-in user. It signs the user’s data (ES256), then encrypts the signed token (JWE):3. Hand the token to the widget — in your frontend
Fetch the token and pass it assignedUserData. Send your constant product_id as unsignedUserData:
✅ Test it
- Log in to your app as a user and click around a few pages.
- Wait a few seconds for the events to reach the connector.
- Open the Maven widget and ask: “What have I done recently?”
Maven says there's no recent activity
Maven says there's no recent activity
Almost always an identity mismatch — the
user_id Maven sent doesn’t match the id your activity is stored under. Confirm your analytics identify() id, the signed user_id field, and the connector’s stored id are all the same value.The widget doesn't appear
The widget doesn't appear
Check Allowed domains in the Chat app settings includes your domain, and that your CSP allows
chat.onmaven.app.No tools appear after installing the MCP app
No tools appear after installing the MCP app
Verify the MCP URL and token are correct, and that you installed the MCP app inside an agent. Reinstall to re-discover tools.
Once Maven can pull a user’s activity on demand, you’re done with Step 1. Next: Step 2 — Define proactive triggers.