Manage your apps with an AI agent
Let an AI agent you connect over MCP create Studio apps, write their code and database, and ask you to approve secrets, changes that would delete data and restores of a kept copy.
An AI agent that you connect over MCP can build and run Studio apps for you: create an app, write its code and its database, define what visitors may do, and keep working on it later, all from the AI tool you use every day. It is a good fit when the code lives in a tool such as Claude Code, Cursor or Codex. Two kinds of change are never made behind your back: secret values (an API key) and changes that would delete data. For those the agent asks, and you decide in SeeMyNotes.
Give an agent access
Access is one more area on an agent, and it is off until you turn it on. There is no new permission: Studio apps at Read and edit covers everything on this page.
Open Settings and choose AI agents.
Edit the agent, or create a new one with Add an agent.
Set Studio apps to Read to let it look, or to Read and edit to let it create and change apps. Editing includes reading.
Save the agent. Connections that already use it get the change at once.
Create an app
An app lives on one of your notes. For a new app the agent first makes a private note with note_create: the note's title becomes the app's address. Then it calls app_create with that note. The answer includes an editorUrl, the note in SeeMyNotes, where you can preview the app, read its code and open its settings.
Then the agent uploads the code with app_version_upload: kind is jsx for a React app or html for a plain page. Server code goes under server/, and TypeScript is allowed in server/*.ts (see Server functions).
Creating an app is refused when:
the note is encrypted (agents never work on encrypted notes);
the note already has an app, or it is not yours;
the note is not private or is published, and the agent does not have Publish and sell;
your plan does not include Studio, your apps are paused, or you have reached the plan's number of apps;
the agent has already created 10 new apps in the last hour.
The current limits are shown on the plans and limits page.
Work with the database
Every app can have a database. An agent can:
Read its structure with
app_data_schema_get: tables, columns, whether visitors can read each table, and the named operations visitors can call. It sees this for every table, and never any rows. It sees how many rows a table has only for tables visitors can read.Read rows with
app_data_query, only from tables that visitors can read. A table that holds what visitors entered is never readable by an agent: the answer isTABLE_NOT_READABLE.Change it with
app_data_execute: SQLite statements that run together in one transaction, such as creating tables, inserting, updating and altering. The agent gets counts back (how many rows changed), never rows.Define the named operations with
app_operation_setandapp_operation_delete. An operation is the only way visitors change data: the app callssmn.db.run(name, params). An operation that writes makes the tables it writes visitor-private. An operation that adds rows or reads is saved at once; one that lets visitors change, delete or replace rows (UPDATE,DELETE,REPLACE, or an insert that updates or replaces on conflict) is not saved: it becomes a request you approve (next section), and once approved the database as it is then is kept for 30 days.
A change that would delete or rewrite data is not made. It becomes a request that you approve (next section). This covers dropping a table or columns, removing 50 or more rows or all the rows of a table, rewriting 200 or more rows, renaming or replacing tables, and adding a trigger that deletes or changes rows. Everything else runs at once.
A change is also not run when it would touch what visitors entered. If a statement from an agent reads or changes a visitor-private table (a table visitors write through operations), directly, through a trigger it fires, or by building an index on it, the whole change waits for your approval, like a destructive change. The agent learns only the names of those tables: never rows, counts or error text about them, and even after you approve it gets no count for those statements. Tables the agent creates in the same call are its own. A trigger or view that copies visitors' data makes its table visitor-private too. When a statement fails, the agent is told only its number, its code and a message without data.
The thresholds add up: removals and rewrites by an agent in the last 24 hours count together, so deleting in small chunks does not avoid your approval. The database as it was before the agent's first removal or rewrite of the day is kept for 30 days too.
Restore a kept copy
The copies kept for 30 days are listed in Database history. An agent can:
List them with
app_data_copies_list: for each copy itsgeneration, when it was saved, why it was kept (for examplebefore_agent_change) and by whom, until when it is kept, its size and its table names. It never sees rows or row counts, because the tables can hold what visitors entered. It also works while the app is paused.Ask to restore one with
app_data_restoreand thatgeneration, plus an optionalmessagefor you. The agent never restores by itself: it becomes a request you approve (next section). A copy that is not kept any more, equal to the database now, damaged or too large is refused at once (COPY_NOT_FOUND,SAME_AS_NOW,COPY_DAMAGED,COPY_TOO_LARGE).
A restore replaces the whole database. The database as it is just before is kept as a new copy for 30 days, so you can undo it, and afterwards no table is readable by visitors until you turn it on again.
Secrets: the agent asks, you type the value
An agent never sees a secret value and cannot set one. When the app needs a key, for example for an AI provider, the agent calls app_secret_request with the variable's name and what it is for. You open the approval page and type the value there. The value goes straight into the app's secret, never through the agent, and you cannot read it again.
The agent can still add normal variables with app_variable_set, as before. A secret is used inside the headers or query of an endpoint, as {{NAME}} (see App configuration). Adding the endpoint itself stays with you in SeeMyNotes.
Approve a request
When an agent asks for something that needs you, the answer it gets is "waiting" (HTTP 202) with a link to an approval page in SeeMyNotes, at /myspace/agent-requests/<id>. Nothing has been done yet. You can find the request in three places:
the link the agent shows you in its tool;
a notification in SeeMyNotes;
the row "Waiting for your approval" in Settings, AI agents, and a banner in the app's editor.
Open the page signed in to SeeMyNotes. You see who is asking (the agent's name), which app, and then:
For a database change: what would be lost: the tables, the columns, how many rows, and whether visitors entered that data, plus every statement. Tick "I understand..." and choose "Delete and apply", or decline.
For a secret: its name, what it is for, and a field for the value. Choose "Save secret", or decline.
For a restore: the copy, named by why and when it was kept, with its tables and rows, and a reminder that the current database is kept for 30 days. Tick "I understand..." and choose Restore, or decline.
Declining takes an optional note that the agent can read. A request expires after 24 hours. Only you, signed in, can approve: no agent can, and neither can the account assistant.
The agent checks the outcome with agent_request_get (it can wait up to 20 seconds for an answer). The status is one of:
| Status | Meaning |
|---|---|
pending | Waiting for you. |
executed | You approved it and it was done. |
declined | You declined it, perhaps with a note. |
stale | The database changed after the request, for example more rows would be deleted than you were shown. Nothing was done, and the agent sends the change again. |
expired | Nobody decided within 24 hours. |
cancelled | The agent withdrew it with agent_request_cancel, or the app or the agent's connection is gone. |
failed | It was approved but could not run. The reason is in the answer. |
agent_requests_list lists the agent's own requests. When you approve, SeeMyNotes first checks again that the agent still has its permissions; if you removed them in the meantime, nothing is done.
When a request touches what visitors entered, the page shows a box "Uses what visitors entered" that names those tables, and what the change would delete as measured for you. While you approve, the page shows "Applying the change...". You can decline a request even when its agent has lost its permissions.
If the data service does not answer clearly, the outcome is reported as unknown (OUTCOME_UNKNOWN) and the request page shows "failed" with that message. The change may or may not be saved: check the database (tables and row counts) before sending it again.
What an agent can do with an app
With Read it can:
see your apps and find the app behind a note, and see whether your account has Studio and what its limits are;
read an app's code, its versions, and the files of any version;
read the structure of an app's database and the rows of its visitor-readable tables;
read an app's configuration: the names of its variables and which are secret, its settings, its connections and its data settings and usage. It never sees a secret's value, and the literal text of a connection's headers and addresses is hidden (references to variables stay visible);
list the kept copies of an app's database (never their rows or row counts);
read its own requests and their status.
With Read and edit it can also:
create an app on one of your notes;
change an app's entry file, which files are included, its layout and whether the title shows;
upload new code as a new version. Editing single files works only for apps imported from GitHub; for other apps the agent uploads the whole code again. The same limits apply as when you save code yourself;
activate a version that is waiting, or restore an older version as a new version. Going back means restoring: there is no switch back to an older live version;
change the database and define operations, ask for a secret or for a restore of a kept copy, or withdraw a request;
disable an app;
add normal variables, and change or remove variables that no connection uses;
change how the app's data is shared with your other apps and who may read its tables.
Every version an agent uploads or restores shows up in History like any other version, so you can see it and go back. What agents changed is also listed under Auditing.
What needs Publish
The rule is the same as for notes. If the app's note is private, Read and edit is enough. If the note is not private (shared with a group or followers, public, or on sale), the agent also needs Publish and sell to change the app: upload or edit code, activate or restore a version, change its settings, its database and operations, and set or remove variables.
Some things always need Publish and sell, because they make something visible that was not:
enable an app again after it was disabled;
share an app's data with your other apps;
let visitors read a table of the app.
Disabling an app never needs it. Without Publish the agent can still make things safer: disable an app, stop sharing data, or hide a table from visitors.
Limits that protect you
Visitors' data stays closed. An agent never reads a table that holds what visitors entered, and never gets rows back from a change.
Deleting needs you. A change that would delete or rewrite data waits for your approval.
Secrets stay with you. An agent cannot set a secret, change a variable that a connection uses, or turn a secret into a normal variable.
Screening stays with you. If a new version is flagged, it waits for you in SeeMyNotes. An agent cannot publish it anyway.
Code runs with the app's connections. Code an agent writes runs with the app's existing connections (endpoints) and, if you turned on "Use MCP from SeeMyNotes", with the app's SeeMyNotes agent. So an agent can change the code of such an app only if it has every permission that app's agent has.
GitHub versions. Restoring a version imported from GitHub stays in SeeMyNotes; other versions can be restored.
Paused apps can be read, not changed
If your plan stops including Studio, your apps are paused. An agent can still read a paused app, its code and its versions, but not its configuration (variables and connections), and it cannot change anything until Studio is back.
What stays in SeeMyNotes
Some things are never available to an agent, whatever its permissions, because they spend your money, reach outside services, or hold other people's data:
Deleting apps. An agent can disable an app instead of deleting it.
Connections. Adding or changing endpoints and MCP servers of other services, "Use MCP from SeeMyNotes" and the viewer settings. See App configuration.
Screening decisions. Publishing a flagged version, and restoring a version imported from GitHub.
GitHub. Connecting an account, importing and pushing. See GitHub import, push and build.
The AI builder. Its chat and settings. An agent writes code itself instead.
Export and previews. Downloading an app's files or data, and opening a preview. The editor link is your way to a preview.
App domains. See Own domains for apps.
Typing a secret. And approving any request.
The apps themselves never get this permission either: an app that uses SeeMyNotes through an agent cannot read or change apps.
Example: fix a bug and go back if needed
You use Claude Code, and your agent has Studio apps set to Read and edit. The app "Class quiz" is private. You ask:
In my SeeMyNotes app "Class quiz", the score shows 0 after the last question. Read the code, find the bug and upload a fix as a new version.
The agent finds the app, reads its files and uploads the corrected code as a new version, then tells you what it changed. If you do not like it, you say:
Restore the previous version of "Class quiz".
The agent restores it as a new version. Nothing is lost: every version is in History. If the app were shared or public, the agent would need Publish and sell as well.
Other things you can ask, for example:
"List my apps and tell me which are disabled."
"Show me what the database of the app Planner stores and which tables visitors can read."
"Add a table for feedback to my app Planner and an operation visitors can use to add a row."
To build a whole app from scratch, follow Build an app from Claude Code.