This is different from giving an agent an API key. An API exposes a fixed set of calls. An app exposes the working surface: what the screen shows, what data exists, what state the app is in, and what can happen next.
API, plugin, and app for agent
| API | Plugin / tool | App for Agent | |
|---|---|---|---|
| What the agent gets | A set of endpoints | One added capability | The interface, data, state, and actions |
| Can the agent see the current screen? | No | No | Yes, if it reads the rendered structure |
| Can the agent decide what to do next? | Only within the endpoints | Only within the tool | Yes, within permissions |
| Who maintains the integration? | The developer | The plugin author | The Space and the agent, together |
| Typical failure | Wrong call or missing context | Tool is too narrow | Interface or state is not readable |
An API is still useful. A plugin is still useful. The question is whether the agent has enough context to use them well. For a narrow task, an API call may be enough. For work that happens in a screen with data and state, an app for agents is a better fit.
Why agents need the working surface
Agents fail in predictable ways when they cannot see the work:
- They guess the current state and act on stale information.
- They call a tool that does not match what the screen is showing.
- They finish a step but cannot tell whether it worked.
- They need a person to translate between the interface and the task.
Exposing the working surface fixes most of these. The agent can read the current view, check the data, act, and verify the result. The person can still review the change in the same interface.
How Mesocosm builds apps for agents
In Mesocosm, the AI Agent Space is both the app and the agent's working environment. The Space holds an interface, data, files, logic, and connected capabilities. MCL, Mesocosm's AI Native Framework, expresses all of it as one body of code. That code is the context the agent reads.
This has three consequences:
- The agent can see what the app does and where its state lives.
- A change is made in the same structure that runs the app.
- The result is usable by a person and by an agent at the same time.
That is what "an app for agents, not code you maintain" means in practice. You are not shipping a codebase to an integration team. You are using a Space that the agent can read, change, and operate.
What data can an App for Agent reach?
"Connect to my database" is not one capability. The honest answer depends on how the data is exposed. The matrix below separates the path from the promise.
| Source | How the agent reads it | What you must configure | Limit |
|---|---|---|---|
| Postgres or a warehouse | Export a read-only query result to CSV or JSON, or expose it through an MCP server | Schema, access path, and a read-only role | A snapshot is not live sync; a real connector must exist |
| Internal HTTP API | Wrap the endpoint in a tool or MCP server, or paste one response | Auth, allowed methods, and rate limits | Only the operations you expose are usable |
| MCP server | Connect a server from the MCP catalog and let the agent call its tools | Which server, auth, and scope | The public catalog is read-only; it is not a write path |
| Files in the Space | Upload Markdown, PDF, Word, Excel, or text and let AI read them | File type, pages, sheets, and a source note | Extraction can lose tables, scans, and layout |
| A page in the browser | Open it in the built-in browser and ask AI to read the page | Sign-in and page access | It is a working session, not a bulk crawler |
| A bound Skill | Bind a published Skill to add one capability | A published Skill and its permissions | Only what the Skill implements |
The pattern: an App for Agent does not magically reach every system. It gives the agent a readable working surface over the sources you actually expose. For the connector list, read what is MCP.
What AI can change, and what it cannot
Inside the Space, AI can change the interface, the data structure and records, the actions and logic, the files, and the scheduled tasks. It can also change who sees what inside that Space.
It cannot change another product's permissions, raise a vendor's API limit, take ownership of your source of truth, or operate an interface it cannot read. Those are boundaries of the system around the Space, not bugs in the change loop. When a request crosses one, the useful answer is to change the integration or the contract, not to ask AI to try harder.
Common questions
Is an App for Agent the same as an API?
No. An API exposes calls. An App for Agent exposes the working surface: interface, data, state, and actions. Both can be used by an agent, but they provide different amounts of context.
Do I need to build a separate app for my agent?
Not necessarily. If the work happens in one Space, the same Space can serve the person and the agent. A separate app is useful when the agent needs a narrower or safer surface.
Can an agent use an app that was not designed for it?
Sometimes, through computer use or browser automation. It is usually slower and less reliable than software whose structure is readable. That is why "agent-ready" is a design choice, not only a runtime trick.