AI applications (MCP)
Who can do this: tenant admins turn it on and choose which applications may sign in; every user allows and withdraws their own applications.
AI assistants that speak the Model Context Protocol (MCP) — Claude, ChatGPT, Copilot Studio, n8n and others — can use your workspace as a source. Each person signs in through the assistant as themselves, and the assistant then searches and reads exactly what that person can open in ContentSurface, no more. It never changes anything, and it never sees where an item lives in its source system or how to reach it there.
The MCP address is the same for every workspace:
https://mcp.contentsurface.io/mcpEach person names their workspace — {your-workspace}.contentsurface.io —
when they sign in. Tenant → Settings and plan, section AI applications
(MCP), shows the address and your workspace’s name.
Your workspace also has an MCP address of its own,
https://{your-workspace}.contentsurface.io/mcp. It works the same, without
the step of naming the workspace. Use it when an assistant lets you add only
one connection per listing and you want a second workspace beside the first.
Turning it on
Section titled “Turning it on”
AI applications are off until a tenant admin turns them on, under Tenant → Settings and plan → AI applications (MCP):
- Allow AI applications to sign in — the switch. Turning it off ends the access of every AI application at once; people sign in again after it is turned back on.
- Allowed application hosts — only applications served from these hosts
may sign in, for example
claude.ai. Leave it empty to let any application sign in, each after the person’s own consent. Removing a host ends the access of that host’s applications at once.
Both changes are recorded in the audit log.
Connecting an assistant
Section titled “Connecting an assistant”- In the assistant, add a connector or MCP server with the address
https://mcp.contentsurface.io/mcp(or ContentSurface from the assistant’s directory, where it is listed). In the Claude desktop app, a custom connector is added under Settings → Plugins → Connectors → Browse plugins → Add custom connector; it is then available on claude.ai with the same account too. - The assistant opens a ContentSurface page that asks for your workspace
address. Type the first part — for
acme.contentsurface.io, typeacme— or paste the whole address, and choose Continue. Workspaces you used in this browser before are offered as buttons. There is no search by email address: if you do not know it, it is the address you sign in to the Portal with, or ask your administrator. - You arrive at your workspace’s sign-in page. Sign in as usual — with a one-time code, or with Microsoft or Google where allowed.
- A consent page names the application, the host it is served from and your workspace, and says what it will be able to do. Choose Allow.
With your workspace’s own address, step 2 is skipped.
The name on the consent page is what the application states about itself. ContentSurface checks that the application is served from the host shown, not who the vendor is — allow only applications you recognise.
What an assistant can do
Section titled “What an assistant can do”| Tool | What it does |
|---|---|
search |
Searches by words and meaning (or words only), with filters on fields and attributes and a folder scope; returns the best results with matching passages of text |
get_node |
Reads one item’s details: name, type, dates, attributes, a short preview |
list_children |
Lists a folder’s contents, a page at a time |
read_text |
Reads an item’s indexed text, a page at a time, with the text’s total length, so a long document does not fill the assistant’s memory |
list_attributes |
Lists the attributes search can filter on — such as a contract’s end date — so the assistant can filter by them |
list_related |
Lists an item’s related items in either direction — an order’s lines and a line’s order, an account’s cases — a page at a time |
Records that own details, such as an order and its lines, come as one: a search finds the order also by its lines and names the lines that matched, and every order the assistant gets says how many lines it has and names a few. Other relations, such as an account’s cases, are added when the assistant asks for them.
Every item an assistant gets carries its location, the folder it is in
within your repository (for example /Contracts/Customers), and an open
link, its page in the Portal (https://{your-workspace}.portal.contentsurface.io/data/…).
Assistants use them to cite where an answer comes from. The link is
ContentSurface’s own: whoever follows it signs in to the Portal and sees the
item only if their own access allows it. Neither is ever an address in the
source system. Folder names are what your repository shows; rename a mount
folder if its name says more than it should.
When search by meaning is briefly unavailable, a search runs by words only and tells the assistant so, with when to retry: a question in natural language may then find nothing even though the document exists.
Results are trimmed exactly as everywhere else: an assistant acting for a person sees what their access labels allow. An admin role adds nothing here — a repository admin’s assistant reads by labels, like everyone’s. The text an assistant reads is the indexed text, up to your plan’s indexed-text cap; it does not download files.
Searches and text read through an assistant count in your statistics like any other. When a usage limit applies, the assistant is told to retry and when.
Seeing and withdrawing access
Section titled “Seeing and withdrawing access”- Your own — Account → AI applications lists the applications you allowed, with when you allowed them and when each last renewed its access. Withdraw ends one at once; to use it again, sign in through it once more. Sign out everywhere ends them all.
- Everyone’s (tenant admins) — Tenant → Settings and plan → AI applications (MCP) lists every user’s applications, by the user’s name. Withdraw ends one at once and asks for a reason, recorded in the audit log against the user.
An application renews its access about every 15 minutes while in use. An application that stops for 30 days must sign in again; one signed in with Microsoft or Google must also sign in again when the federated session ends.
Good practice
Section titled “Good practice”- Grant on specific folders. An assistant reads what its user can read. Give a group the folders it needs rather than a parent folder holding more — an override may grant a label on one deep folder alone; see Folder access. An assistant finds such folders with its shared listing, and their locations show the folders above them it cannot read as ….
- Assistants that also write elsewhere. ContentSurface’s tools only read. An assistant with other connectors that can send mail or change files could act on words planted in a document it read here (see the caution above) — that risk sits in the assistant, so review which write tools it has.
- Automation belongs on the API. Scheduled or bulk jobs (exports, syncs, reports) use the API with a client application, not an AI assistant’s connection.
- After withdrawing access, some assistants still show the connector as connected until you disconnect and connect it again; the next call fails either way.
For application builders
Section titled “For application builders”The MCP server speaks streamable HTTP at https://mcp.contentsurface.io/mcp.
It publishes its protected resource metadata at
https://mcp.contentsurface.io/.well-known/oauth-protected-resource/mcp,
naming https://auth.contentsurface.io as the authorization server, whose
metadata names itself as issuer and sends iss in every authorization
response. A workspace’s own address works the same with the workspace address
as authorization server. A token is accepted only at the address it was issued
for. Applications identify
themselves with a client ID metadata document: the client_id is the
HTTPS address of a JSON document with client_id (that same address),
client_name and redirect_uris. There is no dynamic client registration.
Sign-in is the authorization code flow with PKCE and the resource parameter
set to the MCP address; the only scope is cs.content. See
OAuth and tokens.
Troubleshooting
Section titled “Troubleshooting”- This address does not belong to an active workspace on the page that asks for the workspace: check the address you sign in to the Portal with.
- This workspace does not allow AI applications to sign in: a tenant admin turns MCP access on.
- Applications from … may not sign in to this workspace: the host is not on the allowed list.
- The redirect address is not one the application lists, or The application’s metadata document …: the application is misconfigured; tell its vendor.
- This address signs in AI applications only: an application registered with your workspace (not an AI assistant) signs in at your workspace’s own address.
- Too many sign-in attempts from this network: wait a minute and try again.
- The assistant stops working and asks to sign in again: its access was withdrawn, MCP access was turned off, or you signed out everywhere.
In the API
The Portal does this through these calls; an integration can make them directly.
| Operation | Call |
|---|---|
| Protected resource metadata (RFC 9728) of the MCP endpoint: the global one or a tenant's. | GET /.well-known/oauth-protected-resource/mcp |
| Authorization server metadata (RFC 8414) of the addressed tenant. | GET /.well-known/oauth-authorization-server |
| Changes settings within their bounds; null returns a setting to its default. | PATCH /v1/admin/settings |
| The AI applications (MCP clients) the caller allowed to read content as them. | GET /v1/me/mcp-grants |
| Withdraws an AI application's access; it stops working at its next request. | DELETE /v1/me/mcp-grants/{id} |
| Every AI application (MCP client) access of the tenant's users, or one user's. | GET /v1/admin/mcp-grants |
| Withdraws a user's AI application access, with a reason for the change log. | POST /v1/admin/mcp-grants/{id}/revoke |