Setup
Connecting an AI assistant to Waafir takes one URL: paste it into your assistant, then sign in to Waafir when it asks. There is no token to create or copy. This page covers the sign-in, each assistant's add-server step, and how to connect with a Personal Access Token instead when an assistant cannot sign in.
The basics
The URL. One URL serves every Waafir tool:
https://app.waafir.io/api/mcp/waafirAdd-ons → Config → AI assistants shows the URL for your deployment, with a
copy button. Replace https://app.waafir.io if you are on a different
deployment.
Signing in. The first time your assistant uses the URL, it opens Waafir in your browser. Sign in as you normally do, then review the consent screen:
- Which organization the assistant works in, if you belong to more than one;
- Which data rooms it may reach: all of them, or only the ones you pick;
- What it may do: read, write or admin, never more than your own role allows, and whether it may sign documents or send outside your organization;
- Confirm it's you. If you have set up two-factor authentication, each approval asks for your code first, as creating a token does.
Approve, and the browser hands you back to the assistant. The connection appears under Add-ons → Config → AI assistants, where you can see what it can reach and revoke it. See Connections.
Unverified app "…". An assistant that identifies itself by a web address
it controls is shown by that address, such as claude.ai. One that registered
itself with a name of its choosing is shown as Unverified app "<its name>":
Waafir cannot confirm who made it, so only approve it if you started the
connection yourself.
What the tool list shows. Tool names start with their area: dataroom_,
esign_, redact_ and translate_. The list shows only the tools your
connection and your organization can use: a read-only connection is not shown
write tools, and the e-signature tools appear only if your organization holds
the E-Signatures add-on or an active subscription. A connection also lists the
tools that need a permission you did not grant, such as signing or sending
outside your organization. If the assistant calls one, Waafir refuses the call
and the assistant asks you to approve again, this time with that permission
offered. A token cannot ask again, so its list leaves those tools out. A tool
that is not listed is still refused with its reason if an assistant calls it
anyway.
Connecting your assistant
Each section below gives the assistant's own add-server step and links to its documentation (each link last checked on 23 October 2026). None of these assistants has been tested with Waafir sign-in yet, so each section keeps the token fallback beside it.
Claude (claude.ai and Claude Desktop)
Not yet tested by Waafir. Open Customize → Connectors, choose Add → Add custom connector, give it a name, paste the URL, and continue. Leave sign-in on, and sign in to Waafir when Claude asks. To use it in a chat, turn it on under + → Connectors. On a Team or Enterprise plan, an owner adds connectors under Organization settings → Connectors. (Claude's guide)
If sign-in does not work, add a request header Authorization: Bearer <token>
with a token instead (see Connect with a token instead).
ChatGPT
Not yet tested by Waafir. ChatGPT reaches remote MCP servers in different places depending on the app; in the desktop app, open Settings → MCP servers → Add server and paste the URL, then sign in to Waafir when asked. (OpenAI's guide)
If ChatGPT cannot sign in, use a token instead.
Claude Code
Not yet tested by Waafir.
claude mcp add --transport http waafir https://app.waafir.io/api/mcp/waafirThen run /mcp inside Claude Code (or claude mcp login waafir from your
shell) and sign in to Waafir in the browser. Add --scope user to use it in
every project. Add-ons → Config → AI assistants has this command ready to
copy.
(Claude Code's guide)
Cursor
Not yet tested by Waafir. Add the URL to .cursor/mcp.json (or
~/.cursor/mcp.json for every project), then sign in to Waafir when Cursor
asks:
{
"mcpServers": {
"waafir": {
"url": "https://app.waafir.io/api/mcp/waafir"
}
}
}If Cursor cannot sign in, add the token header shown in Connect with a token instead.
VS Code
Not yet tested by Waafir. Run MCP: Add Server from the Command Palette,
choose HTTP, paste the URL and give it the id waafir. Sign in to Waafir
when VS Code asks.
(VS Code's guide)
Gemini CLI
Not yet tested by Waafir.
gemini mcp add --transport http waafir https://app.waafir.io/api/mcp/waafirThen run /mcp auth waafir and sign in in the browser. Sign-in needs a local
browser, so it does not work over most remote SSH sessions: use a token there.
(Gemini CLI's guide)
Codex
Not yet tested by Waafir.
codex mcp add waafir --url https://app.waafir.io/api/mcp/waafir
codex mcp login waafirConnect with a token instead
Use a Personal Access Token
when an assistant cannot sign in, or for a script. Every request carries the
token as a bearer token in the Authorization header:
Authorization: Bearer waafir_pat_...Never commit a real token to a shared file or repository; treat it like a password. Add-ons → Config → API tokens has a copy-ready snippet.
Area servers. Besides waafir, four area servers are still served, so an
existing configuration keeps working. Each lists only its own area's tools,
filtered the same way, and keeps the tool names it has always had (list_files
rather than dataroom_list_files). You do not need them if you connect to
waafir:
| Server | URL |
|---|---|
waafir-redact | https://app.waafir.io/api/mcp/waafir-redact |
waafir-translate | https://app.waafir.io/api/mcp/waafir-translate |
waafir-dataroom | https://app.waafir.io/api/mcp/waafir-dataroom |
waafir-esign | https://app.waafir.io/api/mcp/waafir-esign |
There is no bare /api/mcp endpoint: the server name segment is required,
and a request without it returns a 404. waafir-esign is a
paid offering: without the E-Signatures add-on
or an active subscription its URL answers with an ADDON_NOT_PURCHASED error.
On waafir the same organization simply does not see the esign_ tools.
Claude Code. Put the token in an environment variable first, so it stays out of your shell history:
export WAAFIR_PAT=... # the token you copied at issuance
claude mcp add --transport http waafir https://app.waafir.io/api/mcp/waafir \
--header "Authorization: Bearer $WAAFIR_PAT"To share the setup with a project, put the same entry in its .mcp.json.
Claude Code expands ${WAAFIR_PAT} from each person's environment, so the file
can be committed without the token in it:
{
"mcpServers": {
"waafir": {
"type": "http",
"url": "https://app.waafir.io/api/mcp/waafir",
"headers": {
"Authorization": "Bearer ${WAAFIR_PAT}"
}
}
}
}Claude Desktop's config file. claude_desktop_config.json starts local
servers: each entry is a command to run, not a remote url. To reach Waafir
from that file, run the mcp-remote
bridge (it needs Node.js), which forwards to the remote server and adds your
token as a header:
{
"mcpServers": {
"waafir": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://app.waafir.io/api/mcp/waafir",
"--header",
"Authorization:${WAAFIR_AUTH}"
],
"env": {
"WAAFIR_AUTH": "Bearer YOUR_WAAFIR_PAT"
}
}
}
}Keep the Authorization:${WAAFIR_AUTH} argument free of spaces, then restart
Claude Desktop.
Cursor, and other clients that take a URL and headers.
{
"mcpServers": {
"waafir": {
"url": "https://app.waafir.io/api/mcp/waafir",
"headers": {
"Authorization": "Bearer YOUR_WAAFIR_PAT"
}
}
}
}An area server is added the same way, changing the entry key and the URL.
Calling a tool
After connecting, your client lists the server's tools (an MCP tools/list)
and calls them on your behalf. You do not call tools by hand — you ask the AI
client to do something ("list the files in this data room", "translate this
paragraph into French") and it selects and calls the right tool, passing the
arguments documented in each server's reference. See the
waafir-redact,
waafir-translate,
waafir-dataroom, and
waafir-esign references for the tool
contracts.
When something goes wrong
Failures arrive on two different layers, and they do not look alike. Getting this wrong is the single most common integration mistake here: a client that branches only on the HTTP status will silently miss every failure of the second kind.
Layer 1 — the request was refused before any tool ran
These are real HTTP error statuses, with a JSON-RPC-shaped error body. They mean the request never reached a tool at all:
-
404 — Unknown MCP server. The URL's server-name segment is not one of
waafir,waafir-redact,waafir-translate,waafir-dataroom, orwaafir-esign— most often a typo or a bare/api/mcpwith no server name. Fix the URL. -
402 — Add-on not purchased. The server is a paid offering (today:
waafir-esign) and your organization holds neither the add-on nor an active subscription. An org admin can purchase the add-on or a plan from the billing settings. An unentitled organization cannot even list the server's tools.waafirnever answers 402: it hides the paid tools instead, and a call to one is refused on layer 2 withQUOTA_EXCEEDEDand a message naming that tool, which also carriesADDON_NOT_PURCHASED. -
401 — Unauthenticated. The credential is missing, malformed, revoked or expired. For a connection, sign in again from your assistant: most assistants do this for you when they see the 401, and a connection that was revoked, or that went unused for 30 days, needs a fresh sign-in. For a token, check that the
Authorizationheader is present and that the token is still active in Add-ons → Config → API tokens; issue a fresh one if it has been revoked or has expired. A deployment that predates this behavior answers a missing or malformed token with 403CSRF validation failed: missing Origininstead; on this surface, that also means the token is missing or malformed. -
403 — Forbidden. The credential was rejected at the door: a logged-in browser session was used instead of a connection or a PAT (sessions are not accepted on this surface), or your organization enforces an IP allow-list and the request came from an address outside it.
-
429 — Too many requests. You have hit an MCP rate limit. Nothing here is keyed on your IP address or on your organization — your budget is your token's, so a colleague in the same organization and a second client on the same network do not spend it. The limit is 60 requests per minute per token. It is counted before the token is looked up, so a malformed, revoked or expired token spends it too, and the same token's calls to the Waafir API outside MCP count against the same 60. A signed-in connection's 60 is also counted per connection, so the new token your assistant gets when it refreshes its sign-in does not start a fresh 60.
The response carries no
Retry-Afterheader and no distinguishing code — every 429 on this surface looks the same — so back off on a schedule of your own rather than spinning. If one token is not enough headroom, issue a second: the limit is per token.
Layer 2 — a tool ran and refused
This is where most refusals live, and it is not an HTTP error. The HTTP
response is 200 and the JSON-RPC envelope is a success envelope. The
failure is carried inside the tool result, which sets isError: true and whose
text content is:
{ "error": { "code": "CONFLICT", "message": "…" } }Branch on error.code. The codes are:
| Code | Meaning |
|---|---|
INVALID_ARGUMENT | An argument is missing, malformed, or not a valid id — fix it and retry |
FORBIDDEN | The token is valid but not permitted for this call |
NOT_FOUND | No such record, or it is not yours |
CONFLICT | Understood and permitted, but the data room is not in a state where it can be carried out |
TOO_LARGE | The input exceeds a size limit — split it |
QUOTA_EXCEEDED | A metered allowance is spent; somebody must buy or upgrade something |
UPSTREAM_ERROR / UNAVAILABLE | A transient downstream failure — retry later |
INTERNAL | An unexpected failure — do not retry, escalate |
Two of these catch people out:
FORBIDDENfor a scope that is too low. Areadconnection or token is not shown write tools, but a client that calls one anyway is refused by the tool, so it arrives here asFORBIDDENin the payload — not as an HTTP 403. The same is true of a token restricted to specific data rooms that names one outside its allow-list asdataroom_id. Most tools that take a file or folder id instead answerNOT_FOUNDfor an item in such a room, exactly as for an id that does not exist. Sign in again from your assistant and grant the right scope or data rooms, or issue a token with the right scope.CONFLICT. The call was understood and permitted, but the data room is not in a state where it can be carried out — a folder name already taken, a file whose name a live file has since claimed, or a restore whose container is still deleted or whose upload never completed. ACONFLICTis not an authorization problem and signing in again or re-issuing the token will not help; the message names the blocking record where there is one, so you can act on it and retry. Thewaafir-dataroomreference lists the conflicts each tool can return.
A file that is still being checked. Waafir checks each newly uploaded file
and each new version before it serves the content. Until then, a tool that reads
the file's content answers UNAVAILABLE with
error.reason: "ACTIVATION_PENDING" and the message
This file is still being checked. Try again shortly. It is transient: call
again after a short wait.
A clear refusal on either layer is the expected, safe outcome of a call Waafir will not serve — it fails the request rather than silently doing less than you asked.
Personal Access Tokens
Issue, scope, and revoke Personal Access Tokens (PATs) for the Waafir REST API, scripts, and AI assistants that cannot sign in. Covers the read / write / admin scopes, restricting a token to specific data rooms, expiry, the one-time reveal, and revocation.
Connections
See and revoke the AI assistants connected to Waafir by signing in. Covers what a connection is, how long it lasts, the limit per person, what owners and admins can see and revoke, and how revokes appear in the activity log.