App configuration
The gear panel of an app. Add variables and secrets, connect endpoints and MCP servers of other services, let the app use SeeMyNotes through an agent, and decide who sees the viewer's name.
An app's configuration is where you give it the things it should not hold in its code: variables, secret keys, outside services and, if you want, access to your SeeMyNotes through an agent. This is Studio Connect: endpoints, MCP servers and your SeeMyNotes data, with secrets that never enter the code. Changes apply to the running app at once, without making a new version.
Open an app note in App and choose Configuration (the gear) in the toolbar.
Environment variables
Variables are named values your app reads with await smn.env().
Under Environment variables, choose Add a variable.
Enter a Name with capital letters, digits and
_, for exampleMAPS_KEY.Enter the Value.
If it is a key or token, switch on Secret. Choose Save.
A variable that already exists saves automatically when you edit it; choose Done when you have finished. The same is true of existing endpoints and MCP servers.
A normal variable is sent to every visitor, because the page can read it. Use it for non-sensitive settings such as a title or a region. If a value looks like a key, SeeMyNotes warns you and suggests making it a secret.
A secret is write-only. It is never shown again and never sent to visitors or to your code. It can only be used inside the headers or query of a connection, as
{{NAME}}. To keep or change a secret later, enter its value again.
Endpoints: call other services
An endpoint lets your app call the API of another service, such as a weather service or an AI provider. SeeMyNotes makes the call for the app, adds your headers and query parameters on the server, and hands the answer back.
Under Endpoints, choose Add an endpoint.
Give it a Name using lowercase letters, digits and
-, for exampleweather.Enter the Base URL. It must be
https, use a public domain name, and have no password in it.Choose the Allowed methods the app may use.
Add Headers or Query parameters that must go on every call. A value can use a variable, for example
Authorizationset toBearer {{OPENAI_KEY}}. Put the key itself in a secret variable.
Your code then calls it with the helper:
const response = await smn.fetch('weather', 'forecast?city=Lisbon');
const forecast = await response.json();
The first argument is the endpoint name and the second is the path under its base URL.
What SeeMyNotes does for safety:
It forwards from the visitor only the body and a few harmless headers (Accept, Content-Type and similar), never cookies or authorization.
It does not follow redirects, only calls public internet addresses on the standard https port, and refuses addresses that point to private or internal networks.
If a secret's value shows up in a response, it is replaced by
[secret]before your app sees it.Calls are limited per visitor, per minute and per day. A visitor's request that would exceed a limit is answered with a clear error.
MCP servers
An MCP server gives your app tools of another service. Add one under MCP servers with its address and headers, then use it from code with smn.mcp('name'): listTools() and callTool(tool, args). SeeMyNotes calls the server with your headers, so the visitor never sees them.
Use SeeMyNotes from the app
Under MCP from SeeMyNotes, switch on Use MCP from SeeMyNotes and choose one of your agents. The app can then read and write your SeeMyNotes with exactly that agent's permissions, through smn.mcp('seemynotes').
Apps never use the permissions that reach other people or hold their data: People, Sales data, Newsletter, Messages, the switches for replying to comments, sending newsletters and sending messages, Calendar and Studio apps. An app cannot read or change apps, itself included. Even if the agent you choose has them, the app does not get those tools. Analytics and plan and usage are allowed. See Agent permissions.
Through an app, SeeMyNotes MCP only reaches content you own. Notes other people shared with you, copies you saved of other creators' notes, and other people's notes are never reachable, whatever the agent allows. If you delete the agent, SeeMyNotes MCP is switched off in the app.
Tell the app who is viewing
Under Who is viewing, switch on Tell the app who is viewing to let an app that is not public read the display name of the signed-in viewer with smn.viewer(). It is off by default. It is the name only, never an email or an account id, and public visitors stay anonymous.
Change an app from an AI agent
An AI agent you connect over MCP can create apps and read and change an app's code, database, variables and data sharing, if you give it the Studio apps permission (and Publish when the app's note is not private). Connections, "Use MCP from SeeMyNotes", viewer settings, GitHub, export and deleting the app stay here: an agent cannot change them, and it cannot change or remove a variable a connection uses.
An agent cannot set a secret. It asks you by name and purpose (app_secret_request), and you type the value on an approval page in SeeMyNotes, which stores it as the app's secret; the agent never sees it. You can also type secrets here, as above. It sees connections with their literal text hidden and never sees secret values. Code an agent writes runs with this app's connections and its SeeMyNotes agent. See Manage your apps with an AI agent.
Other settings in the panel
Address: the SeeMyNotes address and your own domain. See Own domains for apps.
App data: share this app's data with your other apps. See App data.
History and Export: see History, checkpoints and export.
Availability: disable the app, reset the preview, or delete it.
What this app can use: the library catalog. See Library catalog.
Limits
Apps have a maximum number of variables and connections, a size for each value and request, and per-minute and daily call limits.
The current limits are shown on the plans and limits page.
If something does not work
| Message | What it means |
|---|---|
| This value looks like a key or token | Save it as a secret variable and use {{NAME}} in the header. |
| Unknown variables | A template uses a variable that does not exist. Add it first. |
| In use by an endpoint | Remove the variable from the endpoint that uses it before deleting it. |
| This address is not allowed | Use https and a public address. |
| Calls to other services are paused | The platform paused connections; variables are kept. |