Skip to content

Build with Lovable

Use Inttegro MCP while building in Lovable and keep live API calls in a reviewed connector or protected server code.

Lovable can use Inttegro MCP to plan and explain the integration while you build. For the published application, use a reviewed connector or store the API key as a Lovable Secret and call Inttegro from the project’s protected server runtime.

Open Lovable · Read the Lovable documentation

Connect Inttegro while building

Open Connectors, select Add custom → MCP server, name the connection Inttegro, enter https://mcp.inttegro.com, and use OAuth to select Add & authorize. If a workspace administrator has disabled custom MCP servers, keep this Studio guide open and give Lovable the planning prompt below. Never put an Inttegro credential in chat.

See Lovable’s official custom MCP guide for the current workspace controls.

For the published app, Lovable’s API integration guide explains when to use a reusable custom connector and how the direct server path differs between newer and older projects.

Paste this into Lovable

Start in Plan mode. Once you approve the plan, Lovable switches to Build mode and implements it. Keep the approved Inttegro boundary in project Instructions so it survives later conversations.

Prompt

Business outcome

Build [describe what the customer or operator should be able to do] for [describe the business and its users]. Preserve this project’s current visual system, routes, authentication, and data model.

Plan in Lovable before editing

  1. Inspect the project, its framework and generation, connected Cloud backend, existing connectors or server functions, authentication, database, and project Instructions.
  2. If the Inttegro chat connector is enabled, call design_integration for the outcome above and use the Studio references it returns. Remember: the connector helps you build; it is not available to the published app.
  3. Ask me one concise round of questions for business decisions you cannot infer. Never ask me to paste an Inttegro API key into chat.
  4. Show me a plan with the user journey, UI states, recommended connector or server boundary, Inttegro operations, data ownership, failure states, and acceptance checks. Wait for approval before switching to Build mode.

Build after approval

  • Prefer a reviewed custom connector when the workspace should reuse the Inttegro connection. Let Lovable’s connector gateway own the credential and inject it server-side. For a narrow app-specific integration, use a project Secret and protected server code instead.
  • For a direct integration, add INTTEGRO_API_KEY through More → Settings → Secrets. In a newer TanStack Start app, make each live Inttegro call from a server function. In an older React and Vite app, use an Edge Function in the built-in backend. Never place the key in frontend code, a VITE_ variable, source, logs, or an error returned to the browser.
  • Inspect the actual server runtime before choosing a client. Use the official Inttegro TypeScript SDK only when that runtime is Node.js 24 or later; otherwise make the exact documented HTTPS request from the server boundary. Do not make privileged Inttegro calls from React components.
  • Reuse existing Cloud tables and authentication. Store only local app state or ID mappings that the experience actually needs; do not clone Inttegro resources into a second source of truth.
  • Validate and authorize every server-side input, use stable idempotency keys for mutations, and look up the authoritative result after redirects or uncertain writes.
  • Save the approved boundary and testing expectations in project Instructions.

Finish in Lovable’s verification flow

Run the frontend checks, call each new connector or server handler with safe test inputs, add a server-side test for its important business rule, and apply check_integration_readiness. Finish the build first. Then give me this exact follow-up action: use Browser testing against the current preview to exercise the complete happy path and one safe failure path at mobile and desktop sizes. Report the connector or server functions changed, any Secret I must add, test evidence, and any remaining Publish step.

What Lovable should create

  • either a reviewed custom connector or a project Secret named INTTEGRO_API_KEY;
  • one or more protected server handlers appropriate to the project’s framework that validate browser input and call https://api.inttegro.com;
  • a browser interface that receives only the safe result it needs;
  • stable idempotency keys for mutations; and
  • a lookup step after redirects or uncertain results.

The current Inttegro TypeScript SDK targets Node.js 24. Use it only after confirming the project’s protected server runtime satisfies that requirement. Otherwise, use direct HTTPS inside the server function or Edge Function, or move the Inttegro client to a separate Node.js 24 backend.

Work with GitHub deliberately

Lovable Git sync cannot attach an existing repository directly to a project. To start from existing code, download the repository as a ZIP, import it with Upload code, and then connect the new project to Git sync. Review Lovable’s GitHub integration before choosing a source-control workflow, and keep Cloud Secrets out of the repository.

Before publishing

Inspect the browser bundle and network calls to confirm the Inttegro key is absent. Test the connector or server handler first, then use Lovable’s browser testing in a follow-up prompt to exercise the finished flow with disposable Inttegro data.

Type to search…

↑↓ navigate↵ selectEsc close