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.

  1. Open Settings and choose AI agents.

  2. Edit the agent, or create a new one with Add an agent.

  3. Set Studio apps to Read to let it look, or to Read and edit to let it create and change apps. Editing includes reading.

  4. Save the agent. Connections that already use it get the change at once.

The permissions of one agent. Studio apps sits with the other areas.

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 current limits are shown on the plans and limits page.

Work with the database

Every app can have a database. An agent can:

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:

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:

Open the page signed in to SeeMyNotes. You see who is asking (the agent's name), which app, and then:

A secret request: the agent named the key and said why; you type the value here.

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:

StatusMeaning
pendingWaiting for you.
executedYou approved it and it was done.
declinedYou declined it, perhaps with a note.
staleThe 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.
expiredNobody decided within 24 hours.
cancelledThe agent withdrew it with agent_request_cancel, or the app or the agent's connection is gone.
failedIt 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:

With Read and edit it can also:

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:

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

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:

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:

To build a whole app from scratch, follow Build an app from Claude Code.

Related pages