Add the server by URL and sign in
This is the simplest way to connect. Addhttps://api.avazal.com/mcp to a client that supports MCP sign-in. The client finds Avazal’s sign-in details on its own, registers itself and opens your browser. You sign in to Avazal with Slack or Google, as on the web app, and approve the connection.
- Claude Code: run the command, then run
/mcpinside Claude Code and pick avazal to sign in. - Claude.ai and Claude desktop: open Settings → Connectors → Add custom connector, paste the URL, then choose Connect.
- ChatGPT: turn on developer mode, open Settings → Apps & Connectors, and create a connector with the URL and OAuth authentication.
- Cursor: add the entry above to
mcp.json, then choose Connect or Needs login in Cursor’s tool settings. - Any other client with sign-in support, such as the official MCP Inspector: add the URL.
Approve what the app can do
After you sign in, a consent screen shows:- the app’s name
- your Avazal account
- the workspace the app will use. If you belong to several workspaces, pick one. The connection is bound to that workspace.
- the access the app asked for, area by area
What a connection can do
A signed-in connection acts as you, in the workspace you picked, with only the scopes you approved. Every tool and API operation enforces the same scopes and workspace as an API key. Access tokens last 1 hour. Refresh tokens last 30 days and rotate on every use, so an app you keep using stays signed in. Theoffline_access scope lets an app stay signed in this way.
Disconnect an app
Open Settings → API keys. Connected apps are listed beside your keys. Disconnect revokes an app’s tokens immediately. Leaving the workspace also cuts the app off.Remote MCP with an API key
Use a key when your client can’t sign in, or for scripts, CI and other unattended agents. Create one in Settings → API keys. The remote server speaks streamable HTTP. Send your key on every request in either header:POST is answered on its own with JSON, there are no sessions to resume, and GET returns 405. Without a valid key or sign-in it answers 401, which tells sign-in clients where to sign in. Requests from a browser page on another origin are refused with 403.
The tools, resources and prompts you see follow the scopes of the key or sign-in, so a read-only connection never lists a tool that writes.
Local MCP through the desktop app
The Avazal desktop app runs a local MCP server for agents on your computer, so they don’t need a key. Each agent posts as an identity, such as@claude, rather than as you.
Add an agent from Settings
Open Settings → Identities in the desktop app. Under This computer, choose Add next to Claude Code, Codex or Cursor. Avazal writes the entry into that agent’s MCP config, and the agent connects the next time it starts. Remove takes the entry out and revokes the key it used.Add it by hand
Each entry runs theavazal CLI that ships inside the app. These are the entries Avazal writes; edit the path if the app is somewhere other than /Applications.
$CODEX_HOME/config.toml when CODEX_HOME is set. For any other agent, use Other agents → Show config under This computer, which gives the same entry without --client.
How avazal mcp works
avazal mcp is a stdio MCP server that relays every message to the desktop app at http://127.0.0.1:29981/mcp. The app picks an identity for the client, uses a key it holds for that identity, and forwards the call to the remote server. Only programs on your computer can reach the local server.
--clientnames the agent:claude-code,codex,cursoror anything else. It decides the identity.--as <handle>posts as a specific identity, such as--as claude.
Tools
The server has a small set of tools shaped around jobs, such assearch, read, send and task, instead of one tool per operation. Each tool picks an API operation with its action or type field and passes the rest of its input to that operation, so task {"action": "update", "id": "ENG-123", "done": true} calls tasks.update and returns the same JSON. A key sees only the tools, actions and fields its scopes allow. Tools carry the hints for the highest risk among their actions.
A failed call comes back as a tool result with isError: true and the API’s error body, such as {"_tag":"ScopeRequired","scope":"messages:send",…}, so the agent can read why. A field the action doesn’t take is refused with the fields it does take.
The tool catalogue lists every tool and action with its operation, scope and risk. Add ?tools=operations to the MCP URL for one tool per operation instead.
Resources
Records with a stable address are also resources, read withresources/read. resources/templates/list returns the templates the key can use, and resources/list returns your documents a page at a time.
Prompts
Prompts are ready-made tasks. Clients show them in their prompt or slash-command menu, and each appears only when the key has the scope it needs.Server instructions
Oninitialize the server returns short instructions for the model: how tools map to the API, where to start, how pages and pasted links work, and to confirm before outward tools. When the key belongs to an identity, they also name the identity, its @handle and its own instructions.