@fede_bubble@bubble Bubble has launched its AI Agent in the editor and also introduced Bubble MCP. However, I think this particular capability is still on their bucket list, as implementing it would be technically challenging for their engineering team than building the AI Agent or MCP. π€
If your app is connected to the Bubble MCP, check its allowlist (the list of actions the AI is allowed to use).
No list yet? Make one and allow only what your app needs.
When your @bubble app is connected to the Bubble MCP, an AI agent gets 100+ actions on it.
Some only read. Others can change your app, touch customer data, or log in as one of your users.
On a live app, I reviewed every one by name π§΅
While I was planning the allowlist, I ran into a problem with "get". I had treated every action starting with "get" as a harmless read.
But the actions that let the AI log in as a real user start with "get" too.
Hooks can't see chat, and opening a live page can fire "page is loaded" workflows. Those stay as rules, in a "Known limits" list.
If the AI ignoring a rule could do real damage, that rule gets a hook.
What rule in your setup still lives only in a prompt?
Hooks are scripts Claude Code runs before a tool call. Mine gets the tool name and params and answers allow, ask or deny.
A deny blocks in every mode. An ask still prompts me in auto mode.
The live check on a client's Bubble app:
for v in all_strings(tool_input):
if v.strip().lower() in ("live", "version-live"):
deny("Live is fully blocked, even for reads.")
If the hook itself crashes, the call is blocked too.
Rules are the instruction file the AI reads (CLAUDE.md). That's where I explain what I want and why.
But a rule is only a request. Models skip steps and misread context, and nothing stops them.
My AI agent's instructions say "never touch live."
I don't rely on that sentence. A script checks every tool call before it runs.
Why rules and hooks are different π§΅
@stacklegal_eu Agreed, with GDPR-sensitive data it's not optional. Live is blocked even for reads, and edits only run on a dev branch I lock, each one asking me first. Record writes and deletes are blocked, record reads ask me every time, and unreviewed tools are blocked.
I gave an AI agent access to a client's production Bubble app. The data is GDPR-sensitive.
Before it changed anything, I made sure it couldn't do damage.
How I set it up π§΅
Over the next few days I'll show how each piece works, plus the 150 tests that check the guards still hold.
If you've connected AI to a production app, what's the one thing you made sure it could never do?
β Live: blocked, even for reads
β Main branch: read-only
β Edits: only on a branch I lock, and each one asks me
β DB records: no writes; reads ask me
β Unknown tools: blocked until I review them
β The AI can't change its own guardrails
Spain kept attacking, taking 20+ shots before finally finding the back of the net. It only took one goal to become world champions.
Success is rarely about getting it right on the first attempt. Itβs about creating enough opportunities until one finally pays off.
While exploring OpenClaw, I learned how an AI assistant processes requests through multiple layers.
I turned my notes into an article that explains these concepts using simple analogies.
https://t.co/MDG9p5vln6