Integration
Lovable error monitoring with BugTape
Add BugTape to Lovable as a custom MCP connector with OAuth. Lovable reads real-user errors, the failed request and stack, then fixes the code.
Answer: To get real-user errors from your live Lovable app into Lovable chat, add BugTape's script tag to your app, add https://app.bugtape.ai/mcp as a custom MCP connector in Lovable with OAuth, sign in to BugTape and click Allow, then ask Lovable: "Using BugTape, list my projects." BugTape's Free plan needs no credit card. We ran this flow end to end on 14 October 2026, and a later test connected, listed BugTape's tools and returned real data. The steps below are the ones that worked.
Facts
| What you connect | BugTape's hosted MCP server, https://app.bugtape.ai/mcp |
| Where in Lovable | Chat connectors → add a custom MCP server. Lovable documents custom MCP servers as enabled on all plans |
| Sign-in | OAuth. The consent screen reads Connect Lovable to BugTape. Access lasts 90 days by default; you can pick 30, 90, 180 or 365 days |
| Permissions | Pick up and fix issues or Follow and read issues, plus optional File new issues and Set up capture |
| In your app | One <script type="module"> tag with your bt_live_ key |
| What Lovable can read | Report text, timeline, the failed request, console and stack for an issue (get_repro_context). Replay is rebuilt from DOM events, not video |
| What BugTape catches | Supported failures: uncaught errors, failed requests after a user action, hung requests, and reports from the optional bug button. Not every error |
| Cost | MCP works on every plan, including Free ($0, no credit card). Credit details are under Plans and credits below |
| Data location | Sydney, Australia |
Three options, use what fits
Lovable already gives you ways to see errors. BugTape sits next to them. It does not replace them.
| Option | What it does | Good to know |
|---|---|---|
| Lovable Project monitoring | Lovable checks recent visitor errors and your code on a schedule | Beta, on paid Lovable plans, and each run uses Lovable credits (per Lovable's docs) |
| Sentry chat connector | Lovable reads your Sentry issues in chat | Built into Lovable. Needs the Sentry SDK and a DSN in your app |
| BugTape custom MCP connector | Lovable reads BugTape issues: what the user did, the failed request, console and stack | One script tag in your app, then one custom connector |
If you already run Sentry, keep it. You can add BugTape as well and choose per bug which evidence to hand Lovable. BugTape and Sentry explains how the two fit together.
Before you start
- A published Lovable app. BugTape only captures from real visitors who load the script.
- A free BugTape account: Start free. No credit card.
Step 1: add the BugTape script to your app
Create a project in BugTape. Setup shows your bt_live_ key. Then ask Lovable in chat:
Add this script tag to index.html, inside the head.
<script type="module">
import { init } from 'https://app.bugtape.ai/bugtape.mjs';
init({ apiKey: 'bt_live_your_key_here', privacy: 'strict' });
</script>privacy: 'strict' turns page text into solid blocks, strips query strings and drops request and response bodies before anything leaves the browser. Form fields are masked in every mode. The bt_live_ key only sends reports. It cannot open MCP. Publish the app so real visitors load the script.
Step 2: add BugTape as a custom MCP connector
In Lovable, open the chat connectors and add a custom MCP server.
- Set the server URL to
https://app.bugtape.ai/mcp. - Keep OAuth as the sign-in method.
- Save. Lovable opens a BugTape sign-in window.
Step 3: sign in and allow access
Sign in to BugTape, or create a free account in that window. The consent screen reads Connect Lovable to BugTape.
- Pick the workspace Lovable should use.
- Under What it may do, choose Pick up and fix issues or Follow and read issues, and tick or untick File new issues and Set up capture.
- Under Access ends after, keep the default of 90 days or pick 30, 180 or 365 days. Click Allow.
Lovable then shows the connector as Connected and lists the BugTape tools. You can remove the connector in Lovable, or remove the agent from BugTape's Team page, at any time.
Step 4: first prompt
Check the connection first:
Using BugTape, list my projects.
Lovable calls list_projects and shows your BugTape projects. Once real errors arrive, ask:
Using BugTape, call list_recommended_critical, take the top issue, and call get_repro_context for it. Explain what broke, then fix it.
Lovable edits the code in its own chat. You review the change and publish it yourself. BugTape marks only its plain read tools, such as list_projects, as read-only. Tools that use credits or change an issue, such as list_recommended_critical, get_repro_context and ack_bug, are not marked read-only, so Lovable may ask you to approve them first.
Step 5: close the loop
- Ask Lovable to call
ack_bugwithaction: "working"when it takes an issue, so your team sees Picked up. - When you mark the issue fixed, BugTape anchors the fix to the release. If the same failure arrives from a newer release, the issue reopens as a regression.
Plans and credits
MCP works on every plan, including Free. On Free and Prepaid credits, each agent read of a bug's captured events costs 2 credits. Free includes 150 credits a month. On Pro ($29 USD a month) those reads are free. A prepaid pack costs $10 USD for 2,000 credits. Detail is on Pricing.
listen (the live wait for the next bug) needs Pro, or prepaid credits on the workspace. On Free without those credits, start with list_recommended_critical. Do not start with list_bugs.
Capture keys (bt_live_ / bt_test_) are rejected for MCP. They only send reports. The agent uses OAuth or a bt_pat_ token. MCP install · MCP tools.
FAQ
How do I see my Lovable app's production errors in Lovable chat? Add BugTape's script tag to your app, then add https://app.bugtape.ai/mcp as a custom MCP connector with OAuth. Lovable can then read each issue's user steps, failed request, console and stack.
Does BugTape replace Lovable Project monitoring or the Sentry connector? No. Use them alongside each other. BugTape adds the user steps, the failed request, console and stack for each issue, ready for Lovable to read.
Which Lovable plans can add a custom MCP connector? Lovable documents custom MCP connectors on all plans. Check Lovable's docs for the current list.
Does BugTape cost anything? The Free plan is $0 with no credit card and includes 150 credits a month. Each agent read of a bug costs 2 credits on Free and Prepaid credits. Reads are free on Pro.
Can BugTape see what my users type? Form fields are masked in the browser. With privacy: 'strict', page text is also blocked out and request and response bodies are dropped before anything leaves the browser.
Does Lovable open a pull request? Not by default. Lovable edits code in its own chat. If your project syncs to GitHub, the changes land there.
More tools: all integrations · MCP install · MCP tools.