This page is about connecting your assistant to Moss. To let Moss call tools on your MCP server during a conversation, use the MCP server card under Configure > Integrations instead; see Integrations.
Before you start
Two switches must be on, and both are off by default:- The deployment. When your Moss deployment has the feature turned on, AI assistants appears in your user menu (top right) on every page, and in the sidebar next to Applications when no application is open. An application’s own sidebar never shows it. If neither place shows AI assistants, the feature is off for your deployment.
- Your organization. An admin turns it on for the organization on the AI assistants page (see below). Until then, nobody in the organization can connect an assistant.
Turning it on for a self-hosted install
The operator sets these environment variables. The Helm chart has them invalues.yaml, off.
Claude and ChatGPT connect from their vendors’ clouds, so for them
MCP_PUBLIC_URL and its sign-in paths must be reachable from the internet. Claude Code, Cursor, VS Code and Codex run on the user’s computer and need only that computer’s network or VPN.
Turn it on for your organization
Only admins can change these settings; members see a summary.- Open AI assistants from your user menu, or from the sidebar when no application is open.
- Under Organization access, select Turn on.
- The dialog lists the settings that will apply. For an organization that never set them up: Read: allowed, Conversation content: on, Approval in Moss: off. Select Turn on.
- Adjust the settings below.
Connect an assistant
Once the organization allows it, anyone who can sign in to the dashboard, admin or member, can connect their own assistant. Open AI assistants: the Connect card shows the MCP URL and the steps for each client. There are two ways to connect:- Sign in (OAuth), for Claude, ChatGPT and Claude Code. There is no token to handle.
- A personal access token, for Claude Code, Cursor, VS Code, Codex and other clients.
Sign in
Your browser then opens Connect an AI assistant in Moss. Sign in if you are asked to, and check the page before you decide:
- Who is asking. The app’s name is marked Self-declared: the app chose it and Moss has not verified it. Returns to shows where Moss sends you afterwards. For an address Moss does not recognize, the page warns you to continue only if you started the connection yourself.
- Organization. The connection is created in this organization. If you belong to several, you can switch here.
- Permissions. Read is always included. Knowledge and Configure appear only if the organization allows them. They are never ticked for you, even when the assistant asked for them (marked Requested): tick the ones you want. Each says whether its changes wait for your approval in Moss.
- Applications. All applications, or up to 50 you select.
- How long it lasts: 30 days. After that, you approve again.
Use a token
- Under Your connections, select Create token.
- Fill in the dialog:
- Label: 1 to 100 characters, so you can tell your tokens apart.
- Permissions: Read, plus Knowledge or Configure if the organization allows them. A token without them cannot change anything.
- Applications: All applications, or Selected applications (up to 50).
- Expires after: 7, 30 or 90 days (30 by default).
- Select Create token and copy the token. It starts with
moss_pat_and is shown only once; Moss keeps only a hash of it. - Store it in an environment variable rather than in a file you commit, and add Moss to your client. Replace
<MCP URL>with the URL from the Connect card.
- Claude Code
- Cursor
- VS Code
- Codex
- Other
claude mcp add stores the token in Claude Code’s own config. Keep the default local scope and never use --scope project, which writes the token into a file you may commit.What an assistant can read
With the Read permission, an assistant can use these tools. None of them changes anything.
“Admins only” means the connection was made by an admin. An assistant sees only the tools its connection can use.
What an assistant can change
Security, privacy and data-collection settings, such as allowed domains, session recording, vision, JWT keys and retention, stay in the dashboard.
Previews and approvals
Every change goes through a preview first:- The assistant asks Moss what the change would do. Nothing changes yet. Moss answers with a preview: what would change, computed from the current data.
- The assistant shows you the preview. With your yes, it asks Moss to apply exactly that change.
Approval in Moss
When a change needs approval in Moss, the preview carries a link to Review a change from your AI assistant in the dashboard:- Open the link, signed in as the person who connected the assistant, in the organization it was connected in. Nobody else can open it, admins included.
- Check the application, Requested by (the token’s label, or for a sign-in connection the name the assistant gave itself, marked Self-declared), when the change expires, and What will change. Text the assistant wrote, which can include text from your users or the web, is marked; don’t follow instructions in it.
- Select Approve or Reject.
- Tell your assistant to continue. It can apply an approved change once.
- Require approval in Moss is on (any write), or
- the connection was not made by an admin, and the change would put something live for end users: publishing a procedure, editing a published procedure, or accepting a proposal that edits a published procedure. This holds even with the setting off.
See and revoke connections
Your connections lists the tokens and sign-ins you created in this organization, with their Label, Permissions, Applications, Last used and Expires; the details button on a row shows its type (Token or OAuth), when it was created, the start of the token and the client. A connection that is not active is marked Expired, Revoked or Suspended (while AI assistants are off for the organization); select Show revoked and expired to list them. To disconnect, select Revoke on the row. The connection stops working on its next request, and this cannot be undone. Admins also see All connections: every connection in the organization, by person. Revoke all ends all of one person’s active connections. A connection keeps the role you had when you made it. If an admin becomes a member, their admin connections are revoked the next time they use the dashboard. When someone leaves the organization, revoke their connections under All connections: they otherwise stay valid until they expire.Audit log
Moss records every tool call it runs for an assistant, reads and previews included, as anmcp.tool.call audit event. It names the user, the connection and the client, with a summary of the arguments; an applied change also records what it changed. Calls that ran on an application appear in that application’s Configure > Audit Log; a call refused because the connection lacked a permission is recorded as an organization event instead. Approving or rejecting a change is recorded as mcp.preview.approve or mcp.preview.reject.
Creating and revoking connections (mcp.grant.create, mcp.grant.revoke, mcp.grant.revoke_all), each sign-in decision (mcp.oauth.consent) and changes to the organization settings (mcp.settings.update) are recorded as organization events, which the application’s Audit Log page does not list. See Audit logging.