Skip to content

Developer documentation

Connect assistants over MCP

Zunous MCP server for Claude, ChatGPT, Gemini and any compatible client: address, OAuth 2.1 authorization, and each brain's tools and resources.

MCP (Model Context Protocol) is the open standard an AI assistant uses to work with external tools. Zunous exposes each brain as an MCP server: the assistant reads its instructions, searches its knowledge, queries its memory and checks its permissions before proposing an action.

Connection details

ItemValue
Addresshttps://mcp.zunous.com/mcp (the same for every brain)
TransportStreamable HTTP, stateless
AuthorizationOAuth 2.1 with PKCE and dynamic client registration (/register)
Permission (scope)cerebro
Metadata/.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource/mcp

The token decides which brain answers: one connection is one brain. To use two brains, add the connector twice with different names (for example "Zunous sales" and "Zunous collections").

How authorization works

  1. You add the connector in your assistant with the address above. You don't need a Client ID or Client Secret: the assistant registers itself.
  2. The assistant opens the Zunous Connect a brain screen.
  3. You type the organization, the brain and the access key (see Authentication) and click Authorize.
  4. You return to the assistant with the connector active.

The screen is available in Spanish, English and Portuguese, and shows the name of the app requesting access and the address it returns to. If you don't recognize the app, don't authorize it.

Clients

Claude (claude.ai and desktop app)

Customize → Connectors → Add custom connector, name Zunous and the server address. On Claude Team or Enterprise, an Owner adds it once in Organization settings → Connectors and each person clicks Connect.

Claude Code

bash
claude mcp add --transport http zunous https://mcp.zunous.com/mcp

Then, inside Claude Code, type /mcp, choose zunous and complete the authorization in the browser.

ChatGPT

In Settings, turn on Developer mode (depending on the version, it's under Security or Apps → Advanced). Then create an app or connector with the server address and OAuth authentication. ChatGPT's menus change often: look for "Developer mode", "Apps" or "Connectors".

Gemini CLI

In ~/.gemini/settings.json:

json
{
  "mcpServers": {
    "zunous": {
      "httpUrl": "https://mcp.zunous.com/mcp",
      "oauth": { "enabled": true }
    }
  }
}

Your own client

Any MCP client that speaks Streamable HTTP and OAuth 2.1 works. With the official TypeScript SDK:

typescript
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const transport = new StreamableHTTPClientTransport(new URL("https://mcp.zunous.com/mcp"), {
  authProvider: myOAuthProvider, // implements OAuthClientProvider: registration, PKCE and tokens
});
const client = new Client({ name: "my-app", version: "1.0.0" });
await client.connect(transport);
const { tools } = await client.listTools();

If your integration doesn't need a conversational assistant, the REST API is simpler: it uses the key directly.

Tools

Every brain exposes the same tools. What changes is each one's knowledge, skills, memory and permissions.

ToolWhat it doesRead-only
instrucciones_del_rolReturns the role's instructions. The assistant calls it at the startYes
listar_habilidadesLists the skills with their goalYes
obtener_habilidadReturns a skill's step-by-step procedure (id)Yes
buscar_conocimientoSearches the role's knowledge and your company's documents (consulta, k 1–20, origen oficio or cliente) and returns fragments with citations. If the company has a team of brains, what the teammates hold comes at the end, with their name (equipo: false turns it off)Yes
recordarQueries the brain's memory (consulta, sujeto, tipo, k 1–50)Yes
guardar_memoriaSaves a fact, an event or a learningNo
relacionarSaves a relationship between two entities (person, company, product)No
red_de_memoriaReturns the network of entities and relationships (entidad, limite 1–200)Yes
olvidarDeletes a memory by id or all memories about a sujetoNo (destructive)
verificar_accionSays whether an action is allowed, needs approval or is forbidden under your company's policyYes
estadoThe brain's version and the status of its knowledge sourcesYes
equipoThe other brains in your company: who each one is, what it handles and which systems it has connected. With brain it returns that teammate's full card. Always listed; if the brain is the only one in the company, it says soYes
consultar_companeroConsults another brain in your company and returns its answer as data. With pregunta it searches that brain's knowledge; with accion and parametros it requests a read-only lookup in one of its systems, if the company opened them. No AI is used and nothing is changedYes
guardar_archivoSaves a file to deep memory (text, base64 or a public URL; up to 10 MB) and copies it to the "Zunous" folder in your Drive if it's connectedNo
abrir_archivoOpens a saved fileYes
listar_archivosLists the files in deep memoryYes

The parameters are the same as in the equivalent REST API endpoints.

Resources and prompts

  • Resource cerebro://<brain>/identidad: the role's instructions in Markdown.
  • Resources cerebro://<brain>/conocimiento/<ruta>: each document in the role's expert knowledge.
  • Prompt rol: loads the role's instructions as the first message.

How to use it well

  • The assistant should call instrucciones_del_rol at the start and buscar_conocimiento before answering about the company. Good clients do this on their own, following the server's instructions.
  • Before proposing an action that changes something outside (send, create, charge), the assistant calls verificar_accion. In Connected Mode the brain doesn't act on its own: it proposes and the person decides.
  • Your company's documents arrive marked as untrusted content: the brain uses them as information and never follows instructions written inside them.
  • If the token stops working (the key was rotated or the brain was canceled), the server responds 401 with WWW-Authenticate: Bearer error="invalid_token" and the assistant asks you to authorize again.

For the non-technical people in your company there is a step-by-step guide with screenshots of each assistant; your administrator provides it as a PDF.

Something unclear? Write to us at hello@zunous.com.