MCP servers
MCP is the Model Context Protocol. It is how a coding agent such as Claude Code or Cursor calls tools. Supatype has three MCP servers: one for working on your project’s code and schema, one for the content in a running project, and one your app’s own users connect their agents to.
Pre-1.0: APIs and config may change between releases.
Which one to use
| Developer MCP | Project MCP | App MCP | |
|---|---|---|---|
| For | Changing the project: schema, types, pushes, logs, docs | Working with the records in a running project | Your app’s users managing their own data through their agent |
| Runs | On your machine, started by the agent with supatype mcp | As a service next to your project, at /mcp on its API URL | As the same service, at /mcp/v1 on its API URL. Off until you turn it on |
| Talks over | Standard input and output | Streamable HTTP | Streamable HTTP |
| Sign-in | None. It uses your machine and your linked project | Your Studio login, approved in the browser | The app’s own sign-in, approved on a page for your app, or an API key |
| Acts as | You, through the CLI | You, with your Studio role | The signed-in user, under your access rules |
Use the developer MCP while you build. Use the project MCP when an agent should read or edit content, such as posts or products, in a project that is already running. Turn on the app MCP when the people who use your app should be able to do the same with their own data. You can add the first two together.
Developer MCP
supatype mcp starts an MCP server over standard input and output, for the project in the current directory. It prints nothing else, because the output carries the protocol. It finds the project’s config and target the way every other command does, so it works against the local stack, a linked self-hosted server or a linked Supatype Cloud project. See supatype mcp in the CLI reference.
Add it to your agent
Claude Code. Run this in the project directory:
$ claude mcp add supatype -- supatype mcpCursor. Add this to .cursor/mcp.json in the project:
{ "mcpServers": { "supatype": { "command": "supatype", "args": ["mcp"] } }}Claude Desktop reads the same mcpServers shape from claude_desktop_config.json. The server needs to start in your project directory, and this page does not cover how Claude Desktop sets that. Use Claude Code or Cursor for the developer MCP.
The supatype command must be on your PATH.
Tools
There are eight tools. Every tool returns structured data. A failure comes back as a tool error with the real message, and the server keeps running.
| Tool | What it does | Arguments |
|---|---|---|
get_schema | The project’s models, fields and access rules, as compiled from the schema files, with its buckets, channels and warnings | |
diff | What supatype diff shows: the operations a push would apply and the engine’s warnings, and whether any operation is destructive. Changes nothing | env |
push | Applies the schema, as supatype push does, but never asks a question. See Push rules | env, confirmDestructive |
generate_types | Writes the generated types, client and hook types, as supatype generate does, and lists the files it wrote. It writes local files only | |
status | What supatype status reports: the linked target, or the local stack’s services | env |
logs | Recent logs from the local Docker stack. It never follows | service, since (such as 5m or 1h), tail (1 to 1000, default 100) |
search_docs | Searches the documentation bundled with the CLI and returns the five best sections, each with an excerpt | query |
preview_app_mcp | The tools the app MCP would serve to your app’s users, built from the local schema as a push builds it, with each input schema and any warning. Changes nothing |
env names the environment when the project is linked, as --env does on the commands.
Push rules
A person is not at the other end to answer a prompt, so push decides from its arguments what supatype push would have asked.
- A diff with no destructive operation is applied.
- A diff with a destructive operation, an operation that drops data, is refused. The refusal returns the diff and names
confirmDestructive. - A push to a linked environment named
productionis refused, destructive or not. This covers a linked Supatype Cloud or self-hosted environment with that name. The local stack and a direct database connection are not treated as production. - Both refusals lift when the call carries
confirmDestructive: true.
The refusal text tells the agent to show you the operations first and to pass the flag only if you agree. Nothing is applied when a push is refused.
Some refusals need a person at a terminal. The agent gets a message that says so, and the plan with it:
- The schema declares models for tables Supatype does not manage. The message names them and says to run
supatype pushin a terminal, which offers to adopt them. - Objects that decide who may read or write were changed outside Supatype. The message says to run
supatype pushin a terminal to review them, orsupatype push --overwrite-driftto put Supatype’s definitions back. - The engine is busy with another push. Try again shortly.
- A direct database connection is missing something Supatype needs. The refusal lists the gaps.
Project MCP
A running project serves an MCP endpoint at /mcp on its API URL. An agent signs in as you and works with the project’s records using your Studio role. A self-hosted stack generated by the CLI runs it automatically, so the address is the project’s public API URL plus /mcp. For a project at https://api.example.com, that is https://api.example.com/mcp.
Add it to your agent
Claude Code:
$ claude mcp add --transport http myproject https://api.example.com/mcpCursor, in .cursor/mcp.json:
{ "mcpServers": { "myproject": { "url": "https://api.example.com/mcp" } }}myproject is a name you choose. Use one name per project if an agent works with several.
Sign-in and approval
The first time the agent connects, it opens your browser at the project’s approval page, /studio/oauth/consent on the API URL. Sign in with your Studio login and choose Approve. The agent then holds a token for that project’s MCP endpoint and nothing else.
That token works only through the MCP. Sent straight to the project’s API, its auth routes or Studio, it is refused, so a leaked token cannot skip the MCP’s tools, limits and audit. The MCP proves each call it makes to the API server with a key only the two of them hold: SUPATYPE_MCP_GATEWAY_KEY, which a self-hosted stack generates into .env (see Configuration). Agent sign-in checks are reused for up to 10 seconds; removing someone’s Studio role still stops their data calls at once.
Only Studio members can use it. If you have no Studio role in the project, the agent’s calls are refused. Give someone a role as described in Studio roles.
What each role can do
The agent acts with your Studio role, so it can do what you can do in Studio’s content screens, and no more. The tools it is shown depend on the role.
| Can | Admin | Developer | Editor | Viewer |
|---|---|---|---|---|
| List models, read records, list versions | Yes | Yes | Yes | Yes |
| Create, update and delete records | Yes | Yes | Yes | No |
| Save drafts, publish, unpublish and make preview links | Yes | Yes | Yes | No |
| Ask to act elevated | Yes | Yes | No | No |
A viewer sees only the read tools. The other roles see every tool.
Tools
Each tool takes the model as an argument, by the name list_models returns.
| Tool | What it does |
|---|---|
list_models | Lists the models in the project |
describe_model | One model’s table, key column and fields, and whether it keeps drafts |
list_records | Records of a model, with filters, order, columns and paging. See Filters |
get_record | One record by its key |
create_record | Creates a record. On a model with drafts it is created as an unpublished draft |
update_record | Changes fields of a record by its key. On a model with drafts it saves a draft |
delete_record | Deletes a record by its key and returns it. This cannot be undone |
save_draft | Saves a new draft of a record on a model with drafts. The live record does not change |
publish | Publishes a record’s draft: the latest, or the version you name, in all locales or the locales you name |
unpublish | Takes a record off, in all locales or the locales you name |
preview_link | Makes a link that lets someone without an account read one record’s draft. Its code is shown once. ttl sets how many seconds it lasts |
list_versions | A record’s version history, newest first, with each version’s status and locales |
create_record and update_record take values, a JSON object of field names and values, with at least one field. A write goes through the project’s API, so its field rules, hooks and validation apply, as they do in Studio.
Drafts and publishing
On a model with drafts, create_record and update_record never change the live record. They store a draft, and the answer says so. The record goes live only when the agent calls publish. list_versions shows the versions to choose from.
save_draft, publish, unpublish, preview_link and list_versions apply to models that keep drafts. On any other model they return an error that says to use create_record, update_record and delete_record. Reads take draft: true to show unpublished edits on a model with drafts. See Drafts and publishing and Schema for how a model gets drafts.
Filters
list_records takes filter, an object of field names to operator.value, such as {"status": "eq.published", "views": "gte.100"}. Filters combine with AND. The operators are:
| Operator | Matches |
|---|---|
eq, neq | Equal, not equal |
gt, gte, lt, lte | Greater than, at least, less than, at most |
like, ilike | A pattern, case sensitive or not |
is | Null, true or false, such as is.null |
in | One of a list, such as in.(a,b) |
cs, cd | Contains, is contained by |
A field the model does not have, or any other operator, is refused with a message that says why. Other arguments are order (a field name with an optional .asc or .desc), columns, limit and offset.
Elevated mode and auditing
Each call runs in an acting mode, chosen the way Studio chooses it:
| Call | Mode |
|---|---|
A read, with no elevated argument | Full access for an admin or developer. Studio mode for an editor or viewer |
A write, with no elevated argument | Studio mode, for every role |
elevated: true | Full access. Only admins and developers may ask. Other roles get an error |
elevated: false | Studio mode |
Full access acts as the service role: your app’s row rules and field masks do not apply. In Studio mode your app’s row rules are skipped, and field rules and masks still apply. The same words are explained in Full access and Studio mode.
A role that is not allowed to read or write, or to act elevated, is refused with an error. It is never quietly given less, so an empty result is a real empty result.
Every call is recorded with the person who signed in, the agent (its OAuth client), the tool, the mode it ran in and the result. A refused call is recorded too.
Limits
list_recordsreturns 1 to 100 records per call, 20 if you do not say. Page withcursor, which is recommended overoffsetfor large models.- An answer is capped at 131072 bytes. See Reading.
- Each project has a cap on tool calls in flight at once. It is 8 unless the service is set otherwise with
SUPATYPE_MCP_MAX_CONCURRENT_CALLS. A call over the cap is refused at once with “too many tool calls in flight for this project, retry shortly”.
App MCP
The app MCP is an MCP server for your app’s own users. The people who sign up to your app can connect Claude, Cursor or ChatGPT to it and manage their own data in conversation, instead of opening your app. It answers at /mcp/v1 on the project’s API URL, beside /rest/v1 and /graphql/v1, and it works on self-hosted stacks and on Supatype Cloud.
It is not the project MCP. The project MCP is for your Studio members and works with every model. The app MCP is for your users, and it serves only the models and operations you choose in the schema. It is off until you turn it on.
Turn it on
Two things switch it on: mcp.app in the config, and an mcp block on each model you want agents to reach.
// docs:no-check (a fragment: the rest of your config stays as it is)mcp: { app: { enabled: true, name: "Acme Tasks", instructions: "Manage the signed-in user's tasks and projects in Acme.", },}name is what clients and the approval page call the server. instructions is sent to the agent when it connects. consentUrl and dynamicRegistration are described below.
import type { Model, UUID, Optional, Owner, SupatypeAuthUserId } from "@supatype/types"
export type Task = Model<{ id: UUID owner_id: SupatypeAuthUserId title: string status: "open" | "done" | "archived" internal_score: Optional<number>}, { access: { read: Owner<"owner_id"> create: Owner<"owner_id"> update: Owner<"owner_id"> delete: Owner<"owner_id"> } mcp: { description: "A to-do item that belongs to the signed-in user" expose: ["read", "create", "update"] toolPrefix: "task" fields: { only: ["id", "title", "status"] describe: { status: "open, done or archived. Use done when the user says they finished it" } } }}>| Option | Does |
|---|---|
description | One or two sentences for the agent. Required, so no tool goes out undescribed |
expose | The operations that get tools: "read", "create", "update", "delete", "publish". An operation left out has no tool, and the server refuses it even if called directly |
toolPrefix | The start of each tool name. Default: the table name |
fields | only lists the fields agents may see or write, and everything else stays out. describe adds a hint for a field to its tool input |
confirmDelete: false | Lets a delete go through without the confirmation described below |
supatype push refuses an mcp block that cannot work. It refuses an operation the model has no access rule for, create or update on a model anyone can write, publish on a model without versions, and a model with no access rules at all. With mcp.app.enabled true and no model carrying mcp, push warns, and the server answers with no tools. Push prints one line for the result, such as App MCP: on at https://api.example.com/mcp/v1, 3 models, 11 tools, and warns when the tool count passes 40, because agents pick the right tool less often from a long list. supatype diff shows exposure changes in a section of their own, with a warning for a newly exposed write or delete.
A coding agent connected to the developer MCP can call preview_app_mcp to see the tools your schema would serve before you push.
Where it is
The address is the API URL plus /mcp/v1. For a project at https://api.example.com that is https://api.example.com/mcp/v1, and its discovery document is at /.well-known/oauth-protected-resource/mcp/v1. A person adds it to their agent the way they add any remote MCP server:
$ claude mcp add --transport http acme https://api.example.com/mcp/v1The Studio MCP stays at /mcp. The two are separate: a token for one is refused by the other.
On Supatype Cloud the app MCP also answers on each verified custom domain of the project, at https://your-domain.example/mcp/v1. Sign-in still runs on the project’s Supatype address, and the person only sees your approval page. The project MCP for Studio members stays on the Supatype address and does not answer on a custom domain.
Sign-in and approval
The first time an agent connects, it sends the person to an approval page. They sign in with the app’s own sign-in methods, see which agent is asking and what it will be able to do, and choose Approve or Deny. Sign-in is always required. There is no anonymous access, even to a model anyone can read.
The default approval page is served by the project at /auth/v1/oauth/consent, and shows the mcp.app.name. To approve on your own domain, in your own design, set consentUrl to a page in your app:
// docs:no-check (a fragment: the rest of your config stays as it is)mcp: { app: { enabled: true, consentUrl: "https://app.acme.com/oauth/consent", },}The page can be on another origin from the API. Push warns when the URL answers 404, and a network error there never fails the push. The page reads the approval request from the project’s auth API, with <McpConsent /> from @supatype/react or the auth.oauth methods of @supatype/client.
Agents register themselves with the auth server, so a person could be asked to approve a client that calls itself something familiar. The approval page shows the address the agent will return to and marks a self-registered client as unverified. To allow only clients you registered yourself, set dynamicRegistration: false. It applies to the app MCP only and does not affect Studio’s.
A client can also be identified by an address instead of registering. When its client_id is an https URL with a path, the auth server fetches the client’s metadata from that URL, following the OAuth Client ID Metadata Document draft, and checks that the redirect address is one the document lists. The approval page then shows the client by the host of that URL, in bold, with no Unverified badge, because the person can read where it comes from. Only a client that registered itself gets the badge. This works when dynamicRegistration is false, so you can refuse unknown self-registered clients and still let a client that publishes a metadata document connect. The auth server fetches only public https addresses, with a 5 second timeout, a 5 KiB limit and no redirects.
Scopes
An approval grants one or both of two scopes. mcp:read lets the agent call the read tools. mcp:write also lets it create, update, delete and publish. A token with neither scope is treated as mcp:read. A read-only token sees only the read tools. A write attempted with it is refused with 403 and WWW-Authenticate: Bearer error="insufficient_scope", scope="mcp:write", so a client can ask the person for more.
API keys
A script or an agent with no browser cannot do a sign-in. A signed-in person can make a key for it from your app. A key starts with stmcp_, is shown once, and carries the scopes the person chose. It is sent as the bearer token on /mcp/v1 and works nowhere else. The agent acts as that person under the same rules as a browser sign-in, and the person can revoke the key at any time. <ConnectedApps /> from @supatype/react lets your users make, copy and revoke their keys, and revoke the agents they approved, from a settings page in your app. See MCP connections and keys.
Tools
Each exposed model gets its own tools, named from its toolPrefix, and each takes the fields of that model, typed from the schema. Only the operations in expose get one.
| Tool | What it does |
|---|---|
<prefix>_list | Records the person may read, with filter (the operators of Filters), order, limit (1 to 100), and cursor or offset to page. See Reading |
<prefix>_get | One record by its key |
<prefix>_create | Creates a record from the exposed fields that can be written. Fields the server sets, such as the owner and the timestamps, are not asked for |
<prefix>_update | Changes fields of one record, by its key |
<prefix>_delete | Deletes one record by its key. See Deleting |
<prefix>_publish | Publishes a record’s draft, on a model with versions |
whoami | The signed-in person’s id and email, so the agent knows whose data it holds |
Every call goes through the project’s API as the person who approved it, so your access rules, field masks, hooks and validators apply exactly as they do for your own app. A person sees through the MCP what they see in the app. There is no way to act with more access. The API also refuses what the schema did not expose: a model or operation left out, a column outside fields.only, an upsert, a function call, and an embedded or select=* read. Hooks and validators can tell the call came from an agent: it carries X-Supatype-Via: mcp and the agent’s client id in X-Supatype-Mcp-Client.
Reading
The read tools tell the agent what to expect. <prefix>_get and <prefix>_list declare an output schema with one property for each field the agent may read, and the describe text you wrote for a field is on it. Each property of a filter carries the same text, then a reminder of how to write a condition. A filter or order that names a field that is not exposed is refused with the list of fields that are, each with its hint, so the agent can correct itself.
Page a large model with cursor, not offset. A list answer holds a nextCursor: pass it as cursor to get the next page, and it is null when there are no more records. A cursor lasts 15 minutes and works only for the person and the agent it was issued to, so a long walk survives the sign-in renewing itself but a cursor cannot be handed to anyone else. It must be sent with the same filter and order it was issued for, and not with offset. With no order, records come back by key, ascending, and the answer says so. offset still works, and an answer to a call that used it has no nextCursor.
An answer is capped at 131072 bytes of JSON. When a list would be longer, whole records are dropped from the end, truncated is true, and a note tells the agent to lower limit, narrow the filter or page with nextCursor. Any other tool whose answer is over the cap returns an error that names it.
Custom tools
The generated tools cover one model at a time. When an agent needs something else, such as a summary across models or a call to another service, declare a tool of your own. A custom tool is an exported McpTool type in your schema, next to your models. supatype push reads it and the app MCP serves it beside the generated tools.
Every tool has a name (letters, digits and underscores, at most 64 characters), a description for the agent, an input shape and an access rule. describe adds a hint for each argument. readOnly says whether the tool only reads. A tool that writes needs the mcp:write scope, and a read-only tool works with either scope. maxOutputBytes cuts the answer at that size, up to 131072, which is also the default. The access rule is LoggedIn, Role<>, Public or a combination. A rule that needs a record, such as Owner<>, is refused because a tool has no record.
Back it with one of two things.
A function
Set function to a directory in functions/. The tool runs that function as the signed-in person. A function can write, so a tool that writes goes here.
import type { LoggedIn, McpTool } from "@supatype/types"
export type SummariseWeek = McpTool<{ name: "summarise_week" description: "Summarise the tasks the signed-in user finished in the last seven days" function: "summarise-week" input: { since?: string } describe: { since: "ISO date to start from. Default: seven days ago" } access: LoggedIn readOnly: true}>On every push and supatype dev, the CLI writes functions/_supatype/mcp-tools.ts. It holds a type for each function tool’s input and the mcpTool() helper. The handler gets the input, the caller and the request:
// docs:no-check (imports the file the CLI generates into your project)import { mcpTool, type SummariseWeekInput } from "../_supatype/mcp-tools.ts"
export default mcpTool<SummariseWeekInput>(async (input, caller) => { const since = input.since ?? new Date(Date.now() - 7 * 86_400_000).toISOString() return { user: caller.id, since }})The caller is found by asking the auth server. mcpTool() sends the request’s own bearer, the short-lived token the server made for this call, to /auth/v1/user. A bearer the auth server refuses gets 401. Only after it accepts the token does the helper read clientId and scopes from it. So caller holds id, email, clientId, scopes and the tool name. Forward that bearer to the API and your access rules apply to the person. See the mcpTool() helper.
SQL
For a read that is one query, write the query. Give sql, or sqlFile with the path of a .sql file in your project so your editor can check it. Give one of the two, not both. Each row of the result becomes one JSON object in the answer.
import type { LoggedIn, McpTool } from "@supatype/types"
export type EntityImpact = McpTool<{ name: "entity_impact" description: "Which projects and tasks depend on an entity" input: { entity_id: string } inputTypes: { entity_id: "uuid" } access: LoggedIn readOnly: true sql: ` select t.id, t.title, p.name as project from public.task t join public.project p on p.id = t.project_id where t.entity_id = entity_impact.entity_id `}>Name an argument in the query as <tool name>.<argument>, as entity_impact.entity_id above. Without the tool name an argument would be read as a column. inputTypes sets the Postgres type of an argument where the TypeScript type is not enough, such as uuid or integer. The default is text, numeric, boolean or jsonb. A ${ inside the backticks is read by TypeScript as a placeholder, so move that query to a sqlFile.
A SQL tool is always read-only. Push turns the query into a function of its own, in a schema the REST API does not serve, and the tool runs it as the signed-in user in a read-only transaction with a 5 second time limit. Your row rules and field masks apply to the tables it reads, as they do to the person in your app. A query that could write is refused when you push, so a tool that writes goes in a function, where the model’s hooks and validators run on what it writes.
What push checks
A push refuses a tool that cannot work, and names it:
- a name that is not letters, digits and underscores, is over 64 characters, or is already the name of a model’s tool or another custom tool
- none, or more than one, of
function,sqlandsqlFile - a function directory with no
index.ts, or asqlFilethat is missing or outside the project - SQL that is not one
SELECT(orWITH ... SELECT), that calls a function that can change data or reaches outside the database, or that does not run against your schema - a SQL tool with
readOnly: false, or a read-only tool markeddestructive - an
inputTypeskey that is not an input, an input that is not a string, number, boolean, list or object of those, or amaxOutputBytesoutside 1 to 131072 - an access rule that needs a record
A tool that deletes or overwrites data can set destructive: true, and the agent then asks the person first, as for a delete (see Deleting). Set confirm: false beside it to run without asking. Push lists the tools it added or removed, and warns about a new tool that writes.
A custom tool works on Supatype Cloud with nothing for you to set up. You need no access to the database, because the engine that applies your schema creates the SQL function in the same push. Studio’s MCP settings page lists every custom tool with whether it reads or writes, and a switch for each. See Turning operations off in Studio.
Bulk upsert
To let an agent load or sync many records at once, name a unique field on the model as upsertKey. The model then gets <prefix>_bulk. It needs create and update in expose, and the key must be a field agents may see, and be Unique or the primary key. A push says which of these is wrong.
import type { Model, Owner, SupatypeAuthUserId, Unique, UUID } from "@supatype/types"
export type Contact = Model<{ id: UUID owner_id: SupatypeAuthUserId email: Unique<string> name: string}, { access: { read: Owner<"owner_id"> create: Owner<"owner_id"> update: Owner<"owner_id"> } mcp: { description: "A person the signed-in user knows" expose: ["read", "create", "update"] upsertKey: "email" fields: { only: ["id", "email", "name"] } }}>The tool takes records, a list of 1 to 50 records, each with its upsert key. A record whose key is not found is created, and one whose key is found is updated. The answer lists each record in order with its key, created or updated, and the saved record.
- It is all or nothing. If one record is refused, by an access rule, a validator or a hook, nothing is written, and the answer names that record’s key.
- Each record runs the model’s own hooks and validators, the insert ones for a new record and the update ones for an existing one, and your access rules apply to each.
- A key listed twice, or a field that is not exposed or cannot be written, is refused before anything runs.
- The whole call must finish in 13 seconds, or it is rolled back.
In Studio, the bulk tool is switched off with the model’s create operation.
Turning operations off in Studio
Studio’s MCP settings page can switch the app MCP’s operations off at run time, for a whole model or for one operation of it, without a push. It can only narrow: it cannot turn on an operation your schema did not expose. The switch is stored apart from the pushed schema, so a later supatype push does not reset it, and turning an operation back on in Studio restores it only if the schema still exposes it.
Deleting
A delete tool asks the person before it deletes. With a client that speaks MCP 2026-07-28 and can ask the person questions (it declares elicitation), the server answers the first call with an input request, and the client shows the person the question: Delete Task 42?. The call runs only if the person accepts. The answer is tied to that person, that agent and those arguments for 5 minutes, so it cannot be replayed on another call. If the person declines, nothing is deleted and the agent is told that they said no. For any other client, the tool takes confirm: true as well as the key, its description tells the agent to pass it only when the person has agreed, and a call without it is refused. An agent that passes confirm: true up front skips the question on every client, so the tool still works for a script. A custom tool marked destructive is confirmed the same way. Set confirmDelete: false on the model to remove the question and the extra argument. Writes and deletes are off unless you list them in expose. Do not expose writes on a model that shows other people’s content to the caller, because an agent that reads text written by someone else may be told by that text to act.
Limits
<prefix>_listreturns 1 to 100 records per call. Page withoffset.- By default each person is limited to 2 calls in flight and 60 calls a minute, and each project to 64 calls in flight. A call over a limit is refused at once, and the agent can retry. The counts are kept by each MCP service replica.
- To change them for your project, set
limitsundermcp.app.perUserInFlightis the calls one person may have running at once,perUserPerMinuteis the calls one person may make in a minute, andperProjectInFlightis the calls all your users may have running at once. Each key is optional and must be a whole number of at least 1, and a key you leave out keeps the default.supatype pushrefuses anything else and says which key to fix. When you set any, push says so, as incustom limits: 4 per user in flight. ```ts title=“supatype.config.ts” // docs:no-check (a fragment: the rest of your config stays as it is) mcp: { app: { enabled: true, limits: { perUserInFlight: 4, perUserPerMinute: 120, perProjectInFlight: 32 }, }, }
- The platform sets a ceiling for each limit, and a value above it is lowered to the ceiling when the server applies it. The default ceilings are 4 calls in flight and 300 calls a minute per person, and 64 calls in flight per project, so the project limit can only be lowered. On a self-hosted stack the ceilings are `SUPATYPE_MCP_APP_MAX_CALLS_PER_USER_CEILING`, `SUPATYPE_MCP_APP_CALLS_PER_USER_PER_MINUTE_CEILING` and `SUPATYPE_MCP_APP_MAX_CALLS_PER_PROJECT_CEILING`, and the defaults come from `SUPATYPE_MCP_APP_MAX_CALLS_PER_USER`, `SUPATYPE_MCP_APP_CALLS_PER_USER_PER_MINUTE` and `SUPATYPE_MCP_APP_MAX_CALLS_PER_PROJECT`.- On Supatype Cloud a tool call counts as an API request for billing, and the billing page can tell app MCP calls from the Studio MCP's.
Every call is logged with the person, the agent, the tool and the result, and a refused call is logged too. Agent sign-ins last 10 minutes and renew themselves, and signing out or revoking a connection stops data calls at once.