OpenBase MCP server
OpenBase contains an MCP (Model Context Protocol)
server in the same binary, at /mcp. An AI agent that you connected with a personal
access token, or by signing in to OpenBase from the agent’s own connector screen
(OAuth), can do everything you can do in the web app, within the permissions you
gave it: build projects, tables, fields of all 28 types and views, fill in and edit
records, run formulas and rollups, set up automations and public forms, invite
people, import and export CSV, upload files, read history and notifications, and
(for administrators) manage users and backups. You do not have to open the app
yourself if you would rather describe the work to an agent.
- Same rules as the app. Every action goes through the same permission checks, validation, history, live updates and automations as a click in the browser. Record changes are attributed to you in the record history.
- Nothing to install. No extra process, port or dependency. The endpoint is on your normal public URL, behind your normal HTTPS. The sign-in for apps such as Claude and ChatGPT is built in too (see Connect with OAuth).
- Not for account takeover. Passwords, two-factor authentication, passkeys, sessions and API tokens can never be read or changed through a token, whatever its scope. The tools cannot create, list or delete tokens either. Even an administrator’s token cannot create a password-reset link, switch off someone’s 2FA, remove someone’s passkeys, give a new user a password or set the SMTP password.
Contents: Quick start · Set up your client · Connect with OAuth · Choose a token · How access works · How an agent works here · Tools · Reaching everything: api_reference and api_request · Scope model · Security model · Limits and settings · Protocol · What has been tested · Troubleshooting
Quick start
Section titled “Quick start”Open Account → AI assistants in OpenBase (Connect an assistant in the profile menu at
the bottom of the sidebar). It shows your MCP address (built from
OPENBASE_PUBLIC_URL) and short, collapsible steps for Claude (Claude Desktop and
claude.ai first, then Claude Code), ChatGPT and other clients, each with copy buttons.
The same steps, in short, pick one way in:
Sign in (Claude, ChatGPT, anything with a connector screen). Add the server address
https://base.example.com/mcp as a custom connector. Your browser opens OpenBase, you
sign in, choose Read only, Read & edit or Full control, and approve. Nothing
to copy or paste. This needs OpenBase on a public HTTPS address; steps per app are
below.
Token (scripts, Claude Code, any client that can send a header).
-
Account → API tokens → New token. Give it a name. Tick “Allow writes” if the assistant should change things, and (only for an assistant that should also manage workspaces and members) “Allow managing workspaces, members and settings”. You can limit the token to chosen projects and give it an expiry. Copy the token; it is shown once.
-
Add the server to your assistant. For Claude Code:
Terminal window claude mcp add --transport http openbase https://base.example.com/mcp \--header "Authorization: Bearer YOUR_TOKEN"
Then ask it to do something: “Create a project for tracking customers and orders, with a rollup of each customer’s lifetime value, and add three sample customers.”
Set up your client
Section titled “Set up your client”The server speaks the Streamable HTTP transport at https://<your OpenBase>/mcp. It
accepts two kinds of bearer credential: a personal access token you paste
(Authorization: Bearer <token>), and an OAuth access token the built-in authorization
server issues after you approve an app. A client that does OAuth finds everything it
needs from the server address alone.
| Client | How | Checked |
|---|---|---|
| Claude (claude.ai, Claude Desktop, Cowork) | Customize → Connectors → Add custom connector. Name it, paste https://<your OpenBase>/mcp, leave the advanced settings alone (OpenBase supports both “Use Claude’s published identity” and “Register automatically”), click Connect, sign in to OpenBase and approve. Claude connects from Anthropic’s cloud, so OpenBase must be reachable at a public HTTPS address. |
not run against claude.ai; discovery and the whole flow are tested with other clients (below) |
| Claude Code | claude mcp add --transport http openbase <url>, then start claude, run /mcp, pick openbase and Authenticate: your browser opens OpenBase (a loopback address receives the answer, so this works against http://localhost too). Or skip OAuth and send a token: claude mcp add --transport http openbase <url> --header "Authorization: Bearer <token>" (add --scope user for all your projects). |
CLI 2.1.285: with a token claude mcp list shows Connected (scripts/mcp-claude-check.sh); without one it finds the sign-in and shows Needs authentication. The browser step itself is interactive and was not run |
| ChatGPT | Needs developer mode (Plus, Pro, Business, Enterprise and Edu plans). Under Settings → Apps / Connectors (the menu has moved more than once; look for developer mode or “Advanced”) create a custom connector, paste the server address, choose OAuth as authentication, then sign in and approve. ChatGPT cannot send a fixed token, and it also connects from OpenAI’s cloud, so a public HTTPS address is needed. | not run against ChatGPT |
| Other clients that support OAuth (MCP Inspector, Cursor, VS Code, …) | Give them the server address; they register themselves (or identify themselves with a metadata document) and open the browser. | the official MCP TypeScript SDK client: full flow, in web/contract/oauth.contract.test.ts |
| Claude Code, shared with a team | claude mcp add --scope project ... writes .mcp.json into the repository. With a token, keep it out of git ("Authorization": "Bearer ${OPENBASE_TOKEN}" expands an environment variable); with OAuth every person authenticates once. Everyone must approve a project-scoped server once; until then claude mcp list shows “Pending approval”. |
approval behaviour yes |
| Any client with a JSON file (Cursor, Windsurf, Cline, …) | The mcpServers object below, with a token. Cursor calls the file ~/.cursor/mcp.json; VS Code uses .vscode/mcp.json with a top-level servers key instead of mcpServers. |
format only |
| Claude Desktop through a local bridge | Only needed when you cannot make OpenBase public: "command": "npx", "args": ["-y", "mcp-remote", "<url>", "--header", "Authorization:${AUTH}"] with "env": {"AUTH": "Bearer <token>"} in claude_desktop_config.json. |
no |
| Your own program | Any MCP SDK with a Streamable HTTP client: use its OAuth support, or set the URL and the Authorization header. The official Rust SDK (rmcp) is tested against this server in both protocol generations. |
yes (rmcp, TypeScript SDK) |
{ "mcpServers": { "openbase": { "type": "http", "url": "https://base.example.com/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } }}“Checked: format only” means the configuration follows the client’s documented shape but this project has not run that client. The steps for Claude and ChatGPT follow what their vendors document (October 2026); menus change, so if a label differs, look for “custom connector” or “MCP server” in the app’s settings. A quick check from a shell works for any setup:
curl -s https://base.example.com/mcp \ -H "Authorization: Bearer $OPENBASE_TOKEN" \ -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Connect with OAuth (sign in)
Section titled “Connect with OAuth (sign in)”Apps that connect through a “custom connector” screen cannot take a pasted token, so
OpenBase has an OAuth 2.1 authorization server built in, following the MCP authorization
specification. The app opens your browser; you sign in to OpenBase as usual (with 2FA if
you use it), see who is asking and where the access would go, choose what to allow,
and approve. The app then holds a short-lived access token for /mcp.
What you choose on the approval page
| Choice | What the app can do | Same as a token with |
|---|---|---|
| Read only | read projects, schema, records, views, history | read-only |
| Read & edit | also create, change and delete content in your projects | “Allow writes” |
| Full control | also manage workspaces, members, invites and settings (and the admin pages for an administrator) | “Allow managing …” |
Plus All projects or only the projects you tick. The page always preselects Read
only; you choose more. An app is offered what it asked for and nothing above it: Read &
edit when it asked for write (an app that named no scope we know can get that much), and
Full control only when it asked for openbase:manage (the 401 from /mcp names
openbase:read openbase:write, so a client that follows it does not ask for more). It shows
the app’s name (written by the app itself, so not proof of anything) and the address the
answer goes to, and warns when the app runs on your own computer, when OpenBase cannot
verify the address, and when an app calls itself “Claude” or “ChatGPT” (look-alikes with
other-script letters, accents or full-width text included) but is not connecting from one
of those providers’ documented callback addresses
(https://claude.ai/api/mcp/auth_callback and https://claude.com/api/mcp/auth_callback,
https://chatgpt.com/connector_platform_oauth_redirect,
https://platform.openai.com/apps-manage/oauth); other pages on their domains, such as a
custom GPT’s own callback, are treated like any third party. The same permission checks as for a token
apply afterwards: the grant becomes the same scope (write, manage, projects), so the
rules in Scope model hold unchanged, credentials, sessions and tokens
stay out of reach, and what you can do in a project limits what the app can do.
Managing connections. Account → AI assistants → Connected apps lists every app with its access, projects, where it connects from, when it connected and when it was last used, with Revoke. Revoking cuts the app off at once. Administrators see everyone’s apps under Admin → Connected apps. Changing or resetting your password, turning on two-factor authentication, Sign out other sessions and having your account deactivated disconnect all your apps (they have to be approved again; reactivating an account does not bring them back). Personal access tokens are not touched by the last three.
Lifetimes. Authorization codes live 60 seconds and work once. Access tokens live one
hour. Refresh tokens rotate on every use and expire after 30 idle days, so an app that is
used keeps working and an abandoned connection lapses by itself. If an old refresh token
is ever presented again more than 30 seconds after it was exchanged (a copy was kept
somewhere), the whole connection is revoked and the app has to be approved again. Inside
those 30 seconds (an app refreshing twice at once) the second request just gets
invalid_grant and nothing is revoked. A refresh may repeat the granted scope but not ask
for less or more (invalid_scope). Using a code twice revokes what it issued.
Where it works.
- Over HTTPS (
OPENBASE_PUBLIC_URL=https://...), or on a loopback address (http://localhost,http://127.0.0.1), which is enough to try Claude Code or the MCP Inspector on the same machine. On any other plainhttp://address OpenBase does not advertise or serve OAuth at all, because codes and tokens would cross the network in clear text. - Claude (claude.ai, Desktop, Cowork) and ChatGPT connect from their providers’ servers,
so OpenBase must be reachable from the internet at the public HTTPS address, with a
certificate they trust. A server on a private network or
localhostcannot be reached by them; use a personal access token with a local client instead. - OAuth tokens work on
/mcponly, never on/api/*or the Airtable-compatible/api/v1. Theapi_requesttool still reaches the REST API (/api/...) as you (inside the server), with the grant’s permissions. It does not reach/api/v1for an OAuth grant: that API takes a personal access token only, soapi_requestrefuses it with an explanation andapi_referencemarks theairtablearea unavailable. Use the curated tools or the other areas, or a personal access token.
Endpoints (all derived from OPENBASE_PUBLIC_URL; nothing to configure):
| Endpoint | What it is |
|---|---|
/.well-known/oauth-protected-resource/mcp |
RFC 9728 metadata of the MCP server (resource is <issuer>/mcp); a 401 from /mcp points here with WWW-Authenticate: Bearer resource_metadata="...". The same path without /mcp answers 404: a document there would have to name the origin, which is not the protected resource |
/.well-known/oauth-authorization-server |
RFC 8414 metadata: endpoints, S256 only, grant types, client_id_metadata_document_supported, scopes_supported |
POST /oauth/register |
RFC 7591 dynamic client registration (public clients; client_secret_post on request) |
GET /oauth/authorize |
starts the flow. Signed in: checks everything, stores the request on the server and sends the browser to /oauth/consent?request=<id> in the web app. Not signed in: stores nothing and sends the browser to /login?next=<this request>, which loads it again after sign-in |
POST /oauth/token |
authorization_code (PKCE S256 required, redirect_uri and resource checked) and refresh_token |
POST /oauth/revoke |
RFC 7009; revoking either token ends the connection |
Scopes: openbase:read, openbase:write, openbase:manage (what the app asks for
sets the ceiling of what the page offers; what you choose decides what it gets, and the
token response says which). The 401 challenge of /mcp carries
scope="openbase:read openbase:write", which is what a client following the MCP
authorization specification asks for.
How apps identify themselves. Three ways, all supported:
- Client ID Metadata Documents. The
client_idis an HTTPS URL; OpenBase fetches the JSON document there (name, redirect addresses) through the same SSRF guard as automations (public addresses only, no redirects, 5 s, 16 KB, cached for an hour) and checks that itsclient_idis that URL. This is what “Use Claude’s published identity” uses. It happens only after you are signed in,OPENBASE_ALLOW_PRIVATE_WEBHOOKSdoes not relax it (that switch is for automations), and a failure is reported only as “could not fetch the app’s metadata document” (the reason is in the server log). For a client under development on the same machine, the separateOPENBASE_OAUTH_CIMD_ALLOW_PRIVATE(development only, default off) allows loopback addresses andhttp://localhost. - Dynamic registration at
/oauth/register(“Register automatically”, Claude Code, ChatGPT). Bounded: 30 registrations per address (IPv6: per /64) per hour, names and redirect addresses validated (a name with control, invisible or direction-changing characters is refused), identical registrations share one client, at most 5,000 (a full table forgets the longest unused client to make room), and a client nobody completed a connection with is forgotten after 7 days.OPENBASE_OAUTH_REGISTRATION=falseturns registration off; apps that publish a metadata document, and clients you add by hand, still work. Note that this does not stop a stranger from sending you an approval request: anyone can publish a metadata document for their own app. You still see the address the access would go to and decide. - By hand:
openbase oauth-client add --name "My app" --redirect-uri https://...prints aclient_id(and with--confidentiala secret, shown once, for apps that authenticate withclient_secret_post: “Use your own OAuth client” in Claude).openbase oauth-client listandremovemanage them.
Redirect addresses must be https, or http on 127.0.0.1, [::1] or localhost
(any port, as native apps pick a free one). No other http, no custom schemes, no
javascript:, credentials, fragments or wildcards, and a requested address must equal a
registered one exactly. Every answer to the app carries iss (RFC 9207).
Differences from a token. A tool the grant’s scope does not allow is answered with
HTTP 403 and WWW-Authenticate: Bearer error="insufficient_scope", scope="..."
(an MCP client can then ask you for more access); a token that is wrong, expired,
revoked or meant for another server is 401 with error="invalid_token". Personal
access tokens keep getting a tool error that names the permission they lack.
Choose a token
Section titled “Choose a token”Give an agent the least permission that does the job. What a token can do is the intersection of its owner’s role on each project and the token’s scope:
| Token | The agent can | Tools it sees |
|---|---|---|
| Read only | read projects, schema, records, views, comments, history, trash listings, automations, notifications; export CSV | the read tools, api_reference, api_request (reads only) |
| Read and write | additionally create and edit records, comments, projects, tables, fields, views, share links, automations, imports and uploads, and restore from the trash, as far as the owner’s role allows | + the write tools |
| Write + manage | additionally rename, delete, duplicate and restore workspaces and projects, change members’ roles and projects and remove members, create, list and revoke invites, and (if the owner is an instance administrator) use the admin pages | + the manage tools, and the admin_* tools for administrators |
Optionally limit a token to chosen projects (it cannot see or touch any other project,
through any tool) and give it an expiry. A project-limited manage token manages only
its projects: workspace-level actions (workspaces, workspace members and invites,
duplicating projects, the admin pages) are refused for it, and so are creating projects
and workspaces.
The permission table, route by route, is in api.md.
How access works
Section titled “How access works”- An assistant acts as you, never as someone else, and never with more than your own role allows in each project.
- You choose its access when you approve it (OAuth) or create the token: read only, read and edit, or full control, on all projects or only the ones you tick.
- Its changes show in the record history under your name.
- Passwords, two-factor settings, passkeys, sessions, API tokens and backup downloads stay out of its reach, whatever access it has.
- Revoke an app under Account → AI assistants → Connected apps, or a token under Account → API tokens; it stops working at once. Changing your password disconnects everything; turning on two-factor authentication and “sign out other sessions” disconnect your apps (not your tokens).
The details are in Choose a token, Scope model and Security model.
How an agent works here
Section titled “How an agent works here”- Projects. What the web app calls a project is a base in the REST API
(
/api/bases/..., ids start withapp). The tools say project:list_projects,get_project_schema,create_project,rename_project,duplicate_project,delete_project, and every tool that tookbase_idtakesproject_id(alsoproject_idsforbase_ids,all_projectsforall_bases, scopeprojectfor scopebase, and kindprojectforrestore_from_trash). The old names (list_bases,get_base_schema,create_base,rename_base,duplicate_base,delete_base, and thebase_id,base_ids,all_basesarguments, scopebase, kindbase) keep working as aliases for existing prompts and scripts, but are not listed intools/list, so an assistant sees one name. Results keep their keys (base,bases); the REST API, the Airtable-compatible API and theapp...ids do not change. - Names, not ids. Tables, fields, views and select choices are given by name
(an id works too).
get_project_schemalists them. A wrong name returns the valid ones. - Value shapes follow the Airtable-compatible API: text,
numbers,
true/false, dates as"YYYY-MM-DD"or ISO datetimes, select names, arrays of record ids for links,{id}for users and attachments.field_typesexplains each of the 28 types. - Every tool returns compact JSON (and the same data as
structuredContent). Select values, people and linked records read the same way in every tool. - Deletions are recoverable. Deleted records, fields, tables, views, projects and
workspaces go to the trash and come back with
restore_from_trashwithinOPENBASE_TRASH_DAYS(30). Changing a field’s type is the exception: it converts the data and asks for confirmation first. - Errors say how to fix them: the valid names, the missing role (“requires the creator role on this base”), or the missing token permission (“needs an API token with the ‘manage’ permission”).
A typical run, as tool calls:
create_workspace {name: "Acme"} -> workspace idcreate_project {workspace_id, name: "CRM"} -> project id, with a first tablerename_table {project_id, table: "Table 1", name: "Customers"}create_table {project_id, name: "Orders", fields: [ -> the whole table in one call {name: "Customer", type: "link", options: {linked_table: "Customers"}, inverse_name: "Orders"}, {name: "Qty", type: "number"}, {name: "Total", type: "formula", options: {expression: "{Qty} * {Unit price}"}}]}create_field {..., table: "Customers", name: "Lifetime value", type: "rollup", options: {link_field: "Orders", target_field: "Total", expression: "SUM(values)"}}create_records {project_id, table: "Customers", records: [{fields: {Name: "Ada"}}]}create_view {project_id, table: "Orders", name: "Open by customer", type: "grid", config: {filter: {items: [{field_id: "Status", op: "is", value: "Open"}]}, sorts: [{field_id: "Total", direction: "desc"}], groups: [{field_id: "Customer"}]}}query_view {project_id, view: "Open by customer"} -> rows in view order + groupsTools are listed according to the token (a read-only token does not see
create_records), and every tool re-checks permissions when called. A call that
fails returns a tool result with isError: true and a message that says how to fix
it; protocol problems are JSON-RPC errors. Results longer than 100,000 bytes are cut
with a note. project_id always comes from list_projects; table, field and view
are names or ids.
Records and comments (data tools)
Section titled “Records and comments (data tools)”| Tool | Needs | What it does |
|---|---|---|
list_projects |
any | Workspaces and projects the token can reach, with your role on each and their icons (alias list_bases) |
get_project_schema |
any | The project’s icon, and its tables (with icons), fields (id, name, type, options) and views (alias get_base_schema) |
list_records |
any | Records keyed by field name; optional view, filterByFormula, sort, field list; 50 per call (max 200), offset continues; include_empty: true returns fields with no value as null (default: left out, as in Airtable) |
search_records |
any | Case-insensitive text search over all fields; takes include_empty like list_records |
search_everything |
any | The web app’s search box: names, record text (rich text as plain words) and comments across all your projects, or only inside one workspace or project (names or ids); best first. Each result says where it is and where it matched: name_matches, and for a record found by another field or a comment a plain-text snippet (… where cut) with snippet_matches and the field; ranges are [start, end) in code points. Same as GET /api/search (docs/api.md) |
aggregate_records |
any | Counts, sums, averages, minimums and maximums computed on the server, optionally per group (group_by up to 3 fields); narrow with view / filterByFormula; group values come back as names (selects, links, people), dates as YYYY-MM-DD, empty group as null; invalid combinations (sum of text, group by a button) are errors that list the valid fields. Same as POST /api/tables/{id}/aggregate (docs/api.md §5) |
get_record |
any | One record; takes include_empty like list_records |
create_records |
write | 1-10 records per call; typecast (default true) converts values and creates select choices. New records go to the bottom of the table’s manual order, or to position top / bottom, or right after_record_id / before_record_id (at most one of the three; several records keep the order you list them in). Same as POST /api/tables/{id}/records with after_record_id / before_record_id |
update_records |
write | 1-10 records; only the given fields change; null clears |
delete_records |
write | 1-10 records, to the trash |
move_records |
write | Reorder records in the table’s manual order (the order grid, list and gallery views show when they have no sort): up to 100 records, in the order given, to position top / bottom or right after_record_id / before_record_id (give exactly one). Only the order changes; no history entry, no automations. Same as POST /api/tables/{id}/records/move (top is “before the first record”) |
duplicate_records |
write | 1-10 records: each copy goes right after its original and gets its values except computed fields, which are worked out again; answers duplicated: [{original_id, id}]. Same as POST /api/tables/{id}/records/duplicate (up to 100, all or nothing), which the web app can use |
list_comments / add_comment |
any / write | Comments on a record, in Markdown like rich text; @[Name](usrXXXX) mentions notify people (see Mentioning people) |
Workspaces and people
Section titled “Workspaces and people”| Tool | Needs | What it does |
|---|---|---|
list_workspaces |
any | Workspaces (with icons) with your role, member and pending-invite counts, and the projects you can open (with who can open each) |
create_workspace |
manage | New workspace, optionally with a color (a colour name such as blue, checked like a project’s colour; the next default colour otherwise) and an icon; you become its owner |
rename_workspace |
manage | Rename and/or change the color and/or change or remove the icon (owner role) |
delete_workspace |
manage | To the trash (owner role) |
reorder_workspaces |
write | Your own order of your workspaces in the menu: list them (names or ids) in the new order; any you leave out keep their places. Nobody else’s order changes |
list_members |
manage | Members of a workspace with their role and projects (all_projects or project_ids), or the workspace members who can open one project |
set_member_role |
manage | Change a workspace member’s role, and/or their projects: all_projects: true or a project_ids list (owner role; owners always have every project; a workspace always keeps an owner). Scope project is refused: there are no per-project roles |
remove_member |
manage | Remove someone from a workspace (they lose all its projects), or take one project off a limited member’s list (not their last) |
create_invite |
manage | Invite link to join a workspace, optional email restriction; returns the link. Scope workspace (owner): every project, or project_ids. Scope project (creator of that project): that project, or project_ids you can open; never all_projects, never above your role |
list_invites / revoke_invite |
manage | A workspace’s invites, or the pending ones that give a project; revoke one |
list_collaborators |
any | People who can see a project (user ids for user fields and @mentions) |
Projects, tables and fields
Section titled “Projects, tables and fields”| Tool | Needs | What it does |
|---|---|---|
create_project / rename_project |
write | (aliases create_base / rename_base) Create a project in a workspace (it starts with the table “Table 1”, which has just the primary field “Name” like any table added later; if you are limited to some bases, the new one is added to your list); rename or restyle it (name, colour, icon) |
duplicate_project / delete_project |
manage | (aliases duplicate_base / delete_base) Copy a project (records optional; the copy keeps the icons); delete to the trash (owner role) |
reorder_projects |
write | Order of the projects in a workspace’s menu, for everyone: the listed ones take their own places in the new order, the rest stay (creator role on each) |
create_table / rename_table |
write | Add a table, optionally with its icon and a fields list (each entry is the arguments of create_field without project_id and table), so a table is set up in one call; rename it or change its description or icon. A new table always starts with just the primary text field “Name” and a grid view (the same as the first table of a new project): fields adds exactly what it lists, never anything extra. All or nothing: every field is checked first and if one is invalid nothing is created and the error names it (fields[2] 'Status'). A lookup, rollup or count may use a link field listed before it, and a link may point to any table of the project; to link a table to itself, create it first and add the field with create_field |
duplicate_table / delete_table |
write | Copy a table (records optional; the copy keeps the icon); delete to the trash |
reorder_tables |
write | Order of a project’s tables, for everyone: the listed ones take their own places in the new order, the rest stay (creator role) |
create_field |
write | Add a field of any of the 28 types with options; link fields create their inverse |
update_field |
write | Rename, change description or options (merged into the current ones), or change type (asks for confirm_conversion first, as does turning a text field’s multiline off) |
delete_field |
write | Delete a field and its dependants to the trash |
set_primary_field |
write | Choose the table’s primary field |
check_formula |
write | Parse and type-check a formula and preview it on a record |
field_types |
any | What each field type is for (use_for), its options and value shape, with an example. Text is two types: rich_text (Markdown) for notes, summaries, descriptions, articles and anything longer than a sentence, and text (plain, multiline optional) for names, titles and codes; the names before v0.8, single_line_text and long_text, are still accepted |
list_icons |
any | Search the Lucide icon names (query, limit) that icon accepts |
Workspaces, projects and tables can have an icon: a Lucide name in
kebab-case such as briefcase, users or chart-column (the web app’s icon picker offers
the same set). create_workspace, create_project and create_table take an optional icon;
rename_workspace, rename_project and rename_table change it. In those, leaving icon out
keeps the current icon, a name sets it, and null removes it. The tools keep their
rename_* names (an update_* rename would have broken existing agents and prompts); their
titles and descriptions say that they also change icons.
Unlike the REST API, which only checks that an icon name is well-formed (so an icon from a
newer web client keeps working), the tools check the name against the list of Lucide icons
(crates/server/data/lucide-icons.txt, generated from the lucide-react package by
scripts/gen-icons.sh). An unknown name is refused with suggestions (Did you mean: shopping-cart, ...); an old name (home for house) or loose spelling (Chart Column) is
accepted and stored under the canonical name, and the result says so in note. list_icons
finds names: every word of query has to match a name or an old name (cart shop finds
shopping-cart); without a query it lists alphabetically. Icons show in list_projects,
list_workspaces and get_project_schema.
| Tool | Needs | What it does |
|---|---|---|
get_view |
any | A view’s configuration, with field names |
create_view |
write | Grid, form, gallery, kanban, calendar, timeline or list view, optionally personal, with a configuration |
update_view |
write | Rename, lock, or change parts of the configuration (filter, sorts, groups, hidden and ordered fields, widths, summaries, row colour, kanban / calendar / gallery / list / timeline / form settings) |
delete_view |
write | Delete to the trash |
reorder_views |
write | Order of a table’s views, for everyone: the listed ones take their own places in the new order, the rest stay. Shared views need the creator role; your own personal views the editor role. The default grid is not one of the views |
query_view |
any | Rows as the app shows them: filter, sort and grouping applied, hidden fields left out, group headers, totals, paging; include_empty: true returns a row’s unset visible fields as null. Optional timezone (IANA name) decides what “today” means for relative date filters. Optional from and to (YYYY-MM-DD, both included; the same day for one day) return only what a calendar or timeline shows for that window: a record is in when its span from start to end overlaps the range, one with a single date counts as that day, one with no date is left out. The dates are the view’s calendar or timeline fields, or date_field / end_field (needed for other view types); the answer repeats them in range. Same as the range of POST /api/views/{id}/query |
A view configuration is the REST API’s ViewConfig; wherever it wants a field id you
may write the field name, filter and sort entries may use field instead of
field_id, and select filters and kanban stack orders take choice names. Unknown keys
are rejected with the list of valid ones. update_view replaces only the parts you
send (settings objects merge key by key; null resets a part).
Kanban stack order. kanban.stack_order lists the stacks left to right by name:
choice names for a single select, person names (an email or user id also works) for a
user field, Checked / Unchecked for a checkbox. The stack of cards with no value is
called Uncategorized (the web app saves it as an empty string; "" is accepted too, and
get_view shows it as Uncategorized), so the order read from get_view can be passed
back to update_view unchanged, even when a person rearranged the board in the app. An
update that sets only stack_order reads it against the view’s saved stack field. Stacks
left out follow the listed ones. kanban.hidden_stacks takes the same names and leaves
those stacks off the board in this view (their cards stay in the table). The other kanban
card settings are show_all_people (a user field: also a stack for people without cards;
default is only people who hold cards), card_field_limit (most non-empty fields a card
shows, default 6) and cover_fit (fit the cover inside the card instead of cropping it).
List views. list.prefix_field_id is drawn at the start of every row and can be
changed there (a checkbox is ticked off in place); a new list uses the table’s first
checkbox field when its config says nothing about the list. list.parent_field_id is a
link field whose records are in the same table: a record linked to another is that
record’s sub-item, nested under it (within its group) and folded away with it. To
indent a record under another, update_records its parent field to the parent’s name;
to outdent it, set the field to the grandparent, or to nothing.
Field types are checked. A calendar date_field_id / end_field_id and a timeline
start_field_id / end_field_id must be date fields (date, created time, last modified
time, or a formula or rollup that returns a date), and an end must differ from its start;
a timeline dependency_field_id must be a link field to the same table; a kanban
stack_field_id must be a single select, a user field that holds one person, or a
checkbox; a list prefix_field_id must be a checkbox, a single select, or a user field
that holds one person, and a list parent_field_id a link field to the same table.
create_view and update_view (and the same REST calls) refuse anything else
with an error naming the field and its type, instead of saving a view the app cannot
draw. A reference the view already had in that place is left alone when you change
something else.
Relative date filters and time zones. In a filter, a date value like
{mode: "today"} (also tomorrow, yesterday, one_week_ago,
number_of_days_from_now with days, and for is_within past_week,
next_month, this_calendar_month, …) means the calendar day in the
viewer’s time zone, not the server’s and not UTC. In the web app the viewer is
the person with the view open (their profile zone, or the browser’s). For
query_view it is the timezone argument, else the time zone on the token
owner’s profile (api_request PATCH /api/auth/me {timezone} sets it), else UTC.
So an “Upcoming” view with is_on_or_after {mode: "today"} keeps today’s
events all evening in US Central time. Date-only fields are compared as calendar
dates; date-times are turned into a day in the field’s own time zone if it has
one, otherwise the viewer’s. exact_date is the day as written. Details:
docs/api.md, section 6.
Your inbox holds private quick-capture drafts (Markdown text plus files) that are in no project yet;
only you see them. They are the tools’ way to “write it down now, decide where it goes later”.
A token limited to specific projects (and an app connected with only some projects) cannot use the inbox
tools or upload_attachment without project_id: they fail with a message saying so. A draft holds up to
20 files, each file can be in one draft only, the files you have uploaded but not filed add up to at most
200 MB (OPENBASE_MAX_INBOX_MB), and inbox uploads are limited to 60 per minute.
| Tool | Needs | What it does |
|---|---|---|
list_inbox |
any | Your drafts, most recently changed first |
add_to_inbox |
write | Save a note (title, one line; body, Markdown) and/or files (attachments: [{id}] from upload_attachment without project_id) |
update_inbox_item |
write | Change a draft’s title, body and/or replace its attachments |
file_inbox_item |
write | Turn a draft into a record of table in project_id with fields (names, like create_records), then remove the draft. Put the draft’s files in an attachment field to keep them, or embed them in a long-text value (uploads the long-text fields or the note_as_comment text embed move into the project with the record); the text is not copied automatically (put it in a rich text field, or set note_as_comment to add it as the record’s first comment). Needs the editor role there; on any failure the draft stays |
delete_inbox_item |
write | Delete a draft permanently |
Presence
Section titled “Presence”Who has a project open right now is not a curated tool: call
api_request {method: "GET", path: "/api/bases/<project id>/presence"} for {viewers: [user ids]}
(the people with the project open in the web app; see api.md). It
needs only read access.
Trash, history, activity, notifications
Section titled “Trash, history, activity, notifications”| Tool | Needs | What it does |
|---|---|---|
list_trash |
any | Deleted records, fields, tables and views of a project (creator role; an editor sees the records they deleted themselves and their own personal views); a workspace’s deleted projects; your deleted workspaces |
restore_from_trash |
write | Bring back a record, field, table, view, project or workspace. Editors can restore the records they deleted themselves; other people’s records, fields, tables and shared views need the creator role |
get_record_history |
any | Who changed which fields from what to what, newest first, with field names and readable values |
list_activity |
any | What changed lately across all your projects (or one workspace, project, table or person; one kind): who created, changed, deleted or restored which record with field names and readable values, and the comments, newest first; before pages it |
list_notifications / mark_notifications_read |
any / write | Your notifications; mark some or all read |
Share links and public forms
Section titled “Share links and public forms”A form is set up with create_view / update_view (config.form, field and choice names):
{"form": { "fields": [ {"field_id": "Type", "required": true}, {"block": "heading", "label": "Bug details"}, {"field_id": "Steps", "show_if": {"conjunction": "and", "items": [{"field_id": "Type", "op": "is", "value": "Bug"}]}}, {"block": "text", "help": "Attach a screenshot if you can."} ],show_ifis an ordinary view filter on the questions above the entry (text, number, rating, checkbox and select questions only). While it does not hold the entry is not shown, its answer is ignored and it is not required (and its field default is not applied). It works the same in the web app, on the public form and on the server. Headings and text blocks (block: headingwithlabel,block: textwithhelp) can have one too; they get an id of their own (blk...) when saved, whichget_viewreturns and you send back unchanged.- A form shows each field’s default, and uses the field’s description as help when the form’s
helpis empty. notify_user_ids(email, name or user id of project members) get a notification, and an email if the server sends mail, for every response that comes in through the public link. An editor may change this list even while the link is on.- A public form link can prefill and hide fields:
?prefill_<Field name>=valueand&hide_<Field name>=true(see docs/api.md).
| Tool | Needs | What it does |
|---|---|---|
create_share_link |
write | Public read-only page of a view, or a public form for a form view; optional password; returns the URL |
list_share_links |
any | A view’s share links |
update_share_link |
write | Enable or disable; set or remove the password |
delete_share_link |
write | Delete a link for good |
Automations
Section titled “Automations”| Tool | Needs | What it does |
|---|---|---|
list_automations / get_automation |
any | A project’s automations; one with trigger and actions |
create_automation |
write | One trigger (record created / updated / matches, form submitted, schedule, webhook) and up to 25 actions; tables and fields by name; off unless enabled |
update_automation |
write | Enable or disable, rename, replace trigger or actions, rotate a webhook token |
delete_automation |
write | Delete with its run history |
test_automation |
write | Dry run by default (renders and evaluates, changes nothing); dry_run: false runs the actions once |
list_automation_runs |
any | Run history with the log of each action |
Files and data
Section titled “Files and data”| Tool | Needs | What it does |
|---|---|---|
upload_attachment |
write | Upload from content_base64 or a public url (fetched by the server through the automations’ SSRF guard); returns the attachment reference to put into an attachment field, and markdown: a line like  that embeds the file in a rich text field (see Embedding files in rich text). Without project_id the file is uploaded for your inbox (see Inbox; not for tokens limited to specific projects) |
export_csv |
any | A view as CSV text; cut at about 80 KB at a row boundary with the totals |
import_csv |
write | CSV text into an existing table (columns by header or mapping) or into a new table with inferred field types; all or nothing |
Embedding files in rich text
Section titled “Embedding files in rich text”A rich text field holds Markdown, and an uploaded file can be embedded in it: put the markdown line that
upload_attachment returns on a line of its own in the value you write with create_records or
update_records (or in an inbox draft’s body). Images, video and audio then show as blocks, any other
file as a download card; add alt text and a caption with .
The file must belong to the same project as the record (upload with that project_id), otherwise the write
fails with attachment att... is not a file of this project; for an inbox draft, upload without project_id
and filing moves the file into the project. Images from other websites () are never shown,
only a link. Details and the serving rules: docs/api.md.
Mentioning people
Section titled “Mentioning people”Comments and rich text fields can mention people: write @[Name](usrXXXX) with the
person’s user id from list_collaborators (the name is only a label; the id counts). The person gets
a mention notification (“Name mentioned you in Record”, opening the record) once the text is on a
record and visible to them:
- a comment, when it is posted (
add_comment), and when its author edits it to add the mention; - a long-text value, when a record is created or updated with it (
create_records,update_records,import_csv,api_request, automations, which write as their creator) and when an inbox draft is filed (file_inbox_item, in a rich text field or withnote_as_comment). An inbox draft itself notifies nobody: only you can see it. Neither does a public form submission, which has no author.
Only mentions the text did not already have count (saving the same text again notifies nobody), never
the author, and only people who can see the project. A mention inside code (`@[Name](usr...)`)
or with escaped brackets (@\[Name\](usr...), how the editor stores typed brackets) is just text.
The notification’s snippet is the text around the mention without its Markdown.
Administration
Section titled “Administration”Only for a manage token whose owner is an instance administrator; other tokens
neither see nor can call these. Every call is recorded in the audit log. There is no tool
(and api_request is refused) for downloading a backup archive: it holds every password
hash, two-factor secret and the SMTP password, so only a signed-in administrator can fetch
it in the web app. admin_create_backup and admin_list_backups return names and sizes.
Why admin_create_user returns no reset link. A password-reset link lets whoever
holds it choose the password of that account, and an account can be an administrator’s.
If a token received the link it could take the account over and keep it after the token
is revoked, which is exactly what the “tokens never change credentials” rule prevents.
(For the same reason POST /api/admin/users/{id}/reset-link is session-only.) So the
tool creates the account with no usable password and says what to do: when the server
sends email the new person uses “Forgot password” on the sign-in page with their address,
otherwise an administrator, signed in to the web app, creates the link under Admin →
Users → Create password reset link and sends it. Creating an account is otherwise like
inviting a new person: a new account has no data.
Email settings. The three email tools let an agent set up or check outgoing email
without the web app, with one deliberate gap: the SMTP password cannot be set or removed
by a token (the tool has no such argument, and api_request is refused with 403),
because it is a credential; a person types it under Admin → Email. For the same reason,
while an SMTP password is in use (stored, or from OPENBASE_SMTP_PASSWORD) a token cannot
change the host, port, security mode or username: that would make the server send the
password to a server of the agent’s choosing. It can still change the sender address, and
switch email off by clearing the host. Fields fixed by an OPENBASE_SMTP_* environment
variable are read-only for everyone. A typical sequence is admin_get_email_settings,
admin_update_email_settings {host, port, security, username}, a person enters the
password in the app, then admin_send_test_email.
| Tool | What it does |
|---|---|
admin_list_users |
All users with role, status, 2FA flag and passkey count |
admin_create_user |
New account (name, email, optional administrator role) without a usable password: the tool cannot set one or return a reset link (see below) |
admin_update_user |
Rename, deactivate or reactivate, grant or revoke the administrator role (no way to switch off someone’s 2FA) |
admin_get_email_settings |
The SMTP settings: on or off, host, port, security, username, sender, whether a password is stored (never the password), where each setting comes from, and the read-only email budgets |
admin_update_email_settings |
Change host, port, security, username or sender (effective at once). Never the password; and while a password is in use not the host, port, security or username either |
admin_send_test_email |
Send a test email (to the administrator, or to); a failure comes back as an error with the real SMTP error text |
admin_audit_log |
The audit log, newest first, paged |
admin_stats |
Counts, sizes, last backup, version |
admin_create_backup / admin_list_backups |
Make a backup now; list the stored backups |
Reaching everything: api_reference and api_request
Section titled “Reaching everything: api_reference and api_request”The tools above cover the whole application, but api_request stays for
completeness: any request of the REST API the web app uses, run inside the server
through the real router with the caller’s own token.
api_referencewith no argument: the list of areas. With{"area": "records"}: every endpoint of the area with method, path, purpose, minimum role, required token permission, and a request / response summary.api_requestwith{method, path, query?, body?}. The result is{status, ok, body}; a status of 400 or more makes the tool result an error.
Details:
pathmust start with/api/and contain real ids; query parameters go inquery(an object; lists repeat the key).- Uploads and CSV import use a multipart body:
{"multipart": {"file": {"filename": "people.csv", "text": "Name,Age\nAda,36\n"}, "has_header": true}}. Usecontent_base64instead oftextfor binary files. The whole request is capped at 8 MB. - Responses: JSON and text up to 100,000 bytes (then cut, with
truncated: true). Small binary files (up to 64 KB) come back asbody_base64. - Refused up front with a message: anything that is not
/api/...;/mcpitself; credential, 2FA, passkey, session and token endpoints; sign-in flows (password and passkey); and the endless live-update stream.
The catalogue lives in crates/server/src/mcp/catalogue.rs. A test scans the source
for every registered route and fails if one is missing from it.
Scope model
Section titled “Scope model”Four things decide whether a call works, all enforced by the server on every call (the
tool list is only a convenience). An OAuth grant is the same model: “Read only”, “Read &
edit” and “Full control” are a token without write, with write, and with write and
manage, optionally limited to projects.
- The token’s user and their role. A token never has more rights than its owner has on the project: viewer, commenter, editor, creator or owner.
- Write. A read-only token acts with at most the viewer role.
- Projects. A project-limited token sees only those projects; everything else is “not found”.
manage(needs write): workspaces, members, invites, deleting and duplicating projects, trash of projects and workspaces, the account name and time zone. Tools that reach beyond one project also need a token that is not project-limited. Admin tools additionally need the owner to be an instance administrator.
Errors tell the cause apart: “requires the creator role on this base” (the user’s role), “needs an API token with the ‘manage’ permission” (the token), “this API token is read-only” or “limited to specific bases” (the token’s limits), “not found, or you have no access” (the project is outside the user’s or the token’s reach).
Security model
Section titled “Security model”- Bearer tokens only. A session cookie is never looked at: a request without a
valid
Authorization: Bearerheader is401withWWW-Authenticate. That is the reason/mcpis exempt from the cookie CSRF header. - OAuth. Access tokens are random and stored only as hashes; they are bound to this
server’s
/mcpaddress and are not accepted on/api/*,/api/v1or anywhere else (api_requestruns/api/...as the grant inside the server, but not/api/v1). Authorization codes are single use, last 60 seconds, require PKCES256and are bound to the client, the exact redirect address, the resource and the access you chose. The pending request lives on the server, so the app cannot change it between the steps, and it is stored only once a signed-in person loaded the authorization URL; approving needs your signed-in session and the CSRF header, so a page cannot approve for you, and approving or revoking is never possible with a token or a grant. The approval page cannot be framed. All of it, with the threats it answers, is in security.md. - Credentials stay out of reach. No tool changes a password, two-factor setting,
passkey, session or API token, and
api_requestrefuses those endpoints (registering, listing, renaming and removing passkeys, and an administrator’s removal of a user’s passkeys, are session-only:Access=session-onlyin the catalogue, refused for personal access tokens of every scope, for OAuth grants and forapi_request). Administrators cannot set another user’s password, create a reset link for anyone, switch off their 2FA, remove their passkeys or set the SMTP password through MCP; a user created through MCP has no usable password until a person sets one in the web app. The server enforces this on the REST API itself, soapi_requestcannot get around it (403“API tokens can never …”, and nothing is changed). - Origin check (DNS rebinding). A request carrying an
Originheader (browsers always send one) is served only if the origin is the configured public URL or inOPENBASE_MCP_ALLOWED_ORIGINS; otherwise403. Non-browser clients send noOriginand are unaffected. - Outbound fetches are guarded.
upload_attachmentwith aurl, and the automations’ HTTP action, go through one SSRF guard: http(s) only, no credentials in the URL, the host is resolved by the server and every address checked (loopback, private, link-local including cloud metadata addresses, and other reserved ranges are refused unlessOPENBASE_ALLOW_PRIVATE_WEBHOOKSis set), the connection is pinned to the checked addresses, redirects are not followed, and the download is refused (not cut) beyond the upload limit. - Limits. Bodies up to 8 MB; per-token and per-user request rates; invalid tokens cost nothing and are never counted.
- Destructive actions are recoverable (trash) except changing a field’s type, which needs an explicit confirmation, and deleting automations, share links and invites.
- Audit. Calls an administrator’s
managetoken makes to the admin pages are recorded in the audit log (admin_token_use, with the token id). Audited actions taken with a token or a connected app (invites, share links, automations, user and email administration) say so indetail.via(the token’s id and name, or the app’s name and client id, and the grant id), and Admin → Audit shows it under the person’s name, so an assistant’s action is not mistaken for the person’s own. Token use is stamped in the token list (“last used”). Record changes show the token’s owner in the history. - Backup archives are never reachable.
GET /api/admin/backups/{name}(the download) is session-only: it holds every password hash, two-factor secret and the SMTP password.admin_create_backupandadmin_list_backupswork (they return names and sizes; the archive stays on the server), but not even an administrator’smanagetoken or a Full control grant can fetch it. - Prompt injection. An agent reads text that other people wrote (record contents,
comments, imported files, web pages behind an upload URL). Anything the agent may
do, text it reads might trick it into doing: use read-only or project-limited tokens
for agents that process untrusted content, avoid
managetokens for them, and set an expiry.
More in security.md.
Limits and settings
Section titled “Limits and settings”| Setting | Default | Meaning |
|---|---|---|
OPENBASE_MCP_RATE_PER_TOKEN |
30 | requests per second per token |
OPENBASE_MCP_RATE_PER_USER |
100 | requests per second per user |
OPENBASE_MCP_ALLOWED_ORIGINS |
none | extra browser origins allowed, comma separated |
OPENBASE_OAUTH_REGISTRATION |
true | let apps register themselves at /oauth/register; false keeps only metadata-document and hand-added clients (it does not stop apps that publish a metadata document from asking you for approval) |
OPENBASE_OAUTH_CIMD_ALLOW_PRIVATE |
false | development only: let client metadata documents be fetched from loopback and private addresses and http://localhost. Independent of OPENBASE_ALLOW_PRIVATE_WEBHOOKS, which never applies to them |
OPENBASE_PUBLIC_URL |
http://localhost:8080 |
also the OAuth issuer; OAuth is served only for https:// or loopback addresses |
OPENBASE_MAX_UPLOAD_MB |
100 | largest uploaded file (upload_attachment, URL or base64) |
OPENBASE_MAX_INBOX_MB |
200 | files one person may keep in their inbox (uploaded without a project, not yet filed) |
OPENBASE_ALLOW_PRIVATE_WEBHOOKS |
false | allow automations and URL uploads to reach private addresses |
OPENBASE_TRASH_DAYS |
30 | how long deleted items can be restored |
Fixed in code: 8 MB request body (so base64 uploads up to about 6 MB; URL uploads are
limited only by the upload limit), 10 records per write call, 200 records per
list_records / query_view call, 1,000 groups per aggregate_records call, 100,000 bytes per tool result, about 80 KB of CSV
per export_csv, 120 s per api_request, 30 s per URL download.
Protocol
Section titled “Protocol”POST /mcp accepts one JSON-RPC 2.0 message per request and answers with one JSON
object (Content-Type: application/json); notifications get 202 Accepted. There
are no sessions and no server-initiated messages, so GET /mcp and DELETE /mcp
answer 405. Two protocol generations are served on the same endpoint:
2026-07-28(current, stateless). No handshake. Each request carriesparams._meta["io.modelcontextprotocol/protocolVersion"]and the headersMCP-Protocol-Version,Mcp-Methodand (fortools/call)Mcp-Name; a mismatch is400with error-32020, an unsupported version400with-32022and the list of supported versions.server/discoverreturns versions, capabilities and instructions. Results carryresultType: "complete";tools/listalso carriesttlMsandcacheScope: "private"(the list depends on the token).2025-11-25,2025-06-18,2025-03-26(handshake).initializenegotiates the version (a version we speak is echoed; otherwise2025-11-25is proposed),notifications/initializedis accepted,pinganswers{}. Requests without a version header are treated as2025-03-26.
Only the tools capability is offered; tools/list is paginated by an opaque
cursor. JSON-RPC batches are not accepted.
Authentication answers follow the MCP authorization specification: 401 with
WWW-Authenticate: Bearer realm="OpenBase MCP", scope="openbase:read openbase:write", resource_metadata="<issuer>/.well-known/oauth-protected-resource/mcp"
(plus error="invalid_token" for a bad, expired or revoked token), and 403 with
error="insufficient_scope" and the scope that would suffice when an OAuth grant calls a
tool above its access. scope and resource_metadata are left out when OAuth is not available.
What has been tested
Section titled “What has been tested”crates/server/tests/mcp_agent.rs: an agent runs a small business only throughtools/callover HTTP on a real port: workspace, invited teammate, base, linked tables with number, select, date, formula, lookup, rollup and count fields, records with links, a filtered, sorted and grouped grid and a kanban board queried with computed values, edits flowing through formulas, delete and restore, comments, mentions and notifications, a public form submitted by an anonymous visitor, an automation that really runs, an attachment, CSV export and import into a new table, history, and the admin pages. The only steps outside MCP are signing up, accepting the invite, the teammate’s comment and the visitor’s form submission.mcp_tools_icons.rs(icons set, changed, kept and cleared on a workspace, base and table and read back; unknown names with suggestions;list_icons),mcp_tools_email.rsandadmin_email.rs(the email tools and API: precedence of the environment, write-only password, immediate effect, test email errors from an unreachable and a refusing server) andtoken_capabilities.rs(credential actions stay session-only for an administrator’s token).mcp_tools_schema.rs,mcp_tools_people.rs,mcp_tools_data.rs: all 28 field types, names in view configurations, type changes, permissions (role vs token), base-limited and read-only tokens, admin rules, SSRF refusals, CSV edge cases.mcp_client.rs: the official Rust SDK (rmcp3.5) connects over a real TCP listener with the stateless lifecycle, theinitializehandshake and automatic negotiation, lists the tools and calls several.scripts/mcp-claude-check.sh: the realclaudeCLI (when installed) adds the server with the command shown on the account page andclaude mcp listreports it connected. It runs in a temporary directory with a temporary home, leaving your Claude configuration alone.web/contract/mcp.contract.test.ts: handshake,tools/listand tool calls against the live server, read back through the web client’s REST API.- OAuth, in
crates/server/tests/oauth_*.rs: discovery documents and when OAuth is advertised; registration (every unsafe redirect address and malformed document), metadata documents fetched from a local test server (cache, stale fallback, SSRF refusals, timeout), clients added by hand; authorization requests, consent approve and deny, the access ceiling and bases; code exchange with right and wrong PKCE verifiers, redirect addresses and clients, expiry and replay; refresh rotation, reuse detection and idle expiry; revocation; scope mapping enforced on tools (read-only, write, manage, base-limited), 401 versus 403, audience, expiry, deactivation and password change; rejection of OAuth tokens on/api/*and/api/v1; connected-apps lists and the audit trail; no secret stored in the clear; a whole flow over real HTTP. web/contract/oauth.contract.test.ts: the official MCP TypeScript SDK client (@modelcontextprotocol/sdk, itsOAuthClientProvider) discovers, registers, runs PKCE, connects, calls tools, refreshes an expired token by itself and is cut off by a revocation.web/e2e/oauth.spec.ts(Playwright in Chrome): a client registers with a loopback redirect, the browser logs in and approves “Read & edit”, the loopback listener captures the code,tools/listand a write tool work, the app is revoked from the account page and its tokens stop working. Component tests cover the approval page and the connected-apps lists.- The Account → AI assistants page: component tests (
web/src/pages/assistants.test.tsx) cover the sections, Claude open by default, the public-address warning, the copied text and the collapsed token variants;web/e2e/assistants.spec.tschecks it in Chrome against the real server, including the real clipboard, keyboard use and 375 px width in both themes. The marks and wording follow the vendors’ documentation; the steps were not followed in the real apps. - Not tested: signing in from claude.ai, Claude Desktop or ChatGPT themselves
(they need a public HTTPS server and an account), and the interactive browser step of
claude(/mcp→ Authenticate);claude mcp listwas checked up to the point where it reports “Needs authentication”.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause |
|---|---|
401 “session cookies are not accepted” |
the client sent a cookie but no bearer token; configure the Authorization header |
401 invalid_token |
the token is wrong, expired, revoked, or its owner was deactivated or changed their password (that deletes all tokens; a deactivation also deletes connected apps). For an OAuth app: its access token expired and it did not refresh, or you revoked the connection; connect it again |
403 insufficient_scope |
an OAuth app called a tool above the access you approved; disconnect it under Connected apps and connect it again with more access |
| the connector says it cannot reach or sign in to the server | Claude and ChatGPT connect from the internet: OpenBase needs a public https:// address (OPENBASE_PUBLIC_URL set to it) with a valid certificate; curl https://<your OpenBase>/.well-known/oauth-protected-resource/mcp should answer JSON |
could not fetch the app's metadata document on the approval step |
the app’s client_id URL did not answer with its JSON document from a public address (the server log has the reason). Private and loopback addresses are refused on purpose |
404 oauth_disabled |
OPENBASE_PUBLIC_URL is plain http:// on a public address; OAuth is only served over HTTPS (or on localhost) |
| the approval page says “This request has expired” | the page waited more than 10 minutes, or it was already used; start again from the app |
the app says invalid_grant after working for a while |
its refresh token was used twice more than 30 seconds apart (the connection was revoked for safety), was idle 30 days, or the connection ended with a password change, turning on two-factor authentication, “sign out other sessions” or a deactivation; connect it again. An invalid_grant that says the token “was just exchanged” is two refreshes at once: nothing was revoked |
403 “Origin is not allowed” |
a browser-based client on another origin; add it to OPENBASE_MCP_ALLOWED_ORIGINS |
429 |
rate limit; retry after the Retry-After seconds |
| a tool is missing from the list | the token lacks write or manage, or its owner is not an administrator (admin_*); create another token |
| “not found, or you have no access” | wrong id, or the base is outside the token’s base list or the owner’s access |
| “Several tables have a view named …” | view names repeat across tables (every table starts with “Grid view”); pass table |
claude mcp list says “Pending approval” |
a project-scoped .mcp.json server has to be approved once; start claude in the project, or add the server with claude mcp add |
| the client says the server is not an MCP server | a proxy buffers or rewrites /mcp, or the client is an old one that wants a different transport; check with the curl command above |