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.

The configuration panel of an app.

Environment variables

Variables are named values your app reads with await smn.env().

  1. Under Environment variables, choose Add a variable.

  2. Enter a Name with capital letters, digits and _, for example MAPS_KEY.

  3. Enter the Value.

  4. 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.

Variables. A secret is write-only: it is never shown 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.

  1. Under Endpoints, choose Add an endpoint.

  2. Give it a Name using lowercase letters, digits and -, for example weather.

  3. Enter the Base URL. It must be https, use a public domain name, and have no password in it.

  4. Choose the Allowed methods the app may use.

  5. Add Headers or Query parameters that must go on every call. A value can use a variable, for example Authorization set to Bearer {{OPENAI_KEY}}. Put the key itself in a secret variable.

An endpoint with a header that uses 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:

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').

The agent decides what the app may do in your 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.

Show the viewer's display name in a private app, for example a class quiz.

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

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

MessageWhat it means
This value looks like a key or tokenSave it as a secret variable and use {{NAME}} in the header.
Unknown variablesA template uses a variable that does not exist. Add it first.
In use by an endpointRemove the variable from the endpoint that uses it before deleting it.
This address is not allowedUse https and a public address.
Calls to other services are pausedThe platform paused connections; variables are kept.

Related pages