# Connecting Claude and other AI assistants

> Add your workspace's MCP server to Claude or another assistant, so it can read and work your tickets as you, and revoke it whenever you like.

Every workspace has an MCP server: a way for an AI assistant such as Claude to work your tickets the way a teammate would. Connect it and the assistant can go through the queue, read a ticket, look up the customer, leave a note, write a draft reply, and send one when you ask. Anyone with a seat can connect their own assistant. It acts as you, with your role, and everything it does carries your name.

## Your workspace's address

```
https://acme.lagottolabs.ai/mcp
```

Use your own workspace's address in place of `acme`.

## Connecting Claude

1. In Claude, open **Settings → Connectors** and choose **Add custom connector**.
2. Paste your workspace's address and add the connector.
3. Claude sends you to your workspace. Sign in if you are not already, with your password or single sign-on.
4. Lagotto shows what the assistant is asking for: it wants to work tickets in your workspace as you, and lists what it will be able to do.
5. Press **Allow**. You are sent back to Claude, and the connector is ready. There is no key to copy.

> **Important:** Only press **Allow** if you started connecting the assistant yourself. The name on the page is whatever the app calls itself, so check the address it says you will be sent back to.

### Claude Code

Add the server, then run `/mcp` inside Claude Code to sign in through your browser:

```
claude mcp add --transport http lagotto https://acme.lagottolabs.ai/mcp
```

### Other assistants

Any MCP client that supports remote servers with OAuth sign-in connects the same way: give it the address and it finds where to sign in by itself. For a script or a machine with no browser, an administrator can make an API key instead. See [API keys and webhooks](https://www.lagottolabs.ai/support/integrations/api-and-webhooks.md) and the developer documentation at [/docs/mcp](https://www.lagottolabs.ai/docs/mcp.md).

## What the assistant can do

It can read:

- the queue, filtered by status, assignee or group, and ticket search
- a ticket, with its messages, internal notes and history
- every ticket from one customer
- your macros, filled in for a ticket
- the people in your workspace, and your groups
- the ticket's customer data, if [production data](https://www.lagottolabs.ai/support/integrations/customer-data.md) is on
- your knowledge base, if the [knowledge base](https://www.lagottolabs.ai/support/integrations/knowledge-base.md) is on

It can change:

- add an internal note
- save a draft reply, which waits on the ticket for a person to read, edit and send
- send a reply
- assign, close and reopen tickets
- save a fact for future drafts, if [memories](https://www.lagottolabs.ai/support/ai/memories.md) are on

**Sending a reply is the only thing that writes to your customer.** It goes out in your name, to the customer and anyone on CC, exactly as written, and cannot be unsent. If you want to stay the one who presses Send, ask the assistant for drafts. Closing a ticket also sends the customer a satisfaction request when [customer satisfaction](https://www.lagottolabs.ai/support/reports/customer-satisfaction.md) is on, just as closing it in Lagotto does.

The assistant cannot delete anything or change settings, and it reaches only the workspace in its address. Internal notes are never shown to customers.

A good first request: "Go through my tickets that need a reply, look into each one, and leave a draft. Don't send anything."

## Read-only seats

A read-only seat can connect an assistant too. It can read everything listed above and change nothing: the page you allow it on says so. See [Roles and permissions](https://www.lagottolabs.ai/support/getting-started/roles-and-permissions.md).

## Staying connected and disconnecting

The connection renews itself while you use it. If it goes unused for 30 days, the assistant asks you to sign in again.

To disconnect an assistant:

1. Open **Profile** and find **Connected apps**, which lists each app with when you connected it and when it was last used.
2. Press **Revoke** beside the app and confirm.

It stops working straight away and would have to ask again. When someone is deactivated, or an administrator changes their email address, all their connections end. While their address is outside your [allowed email domains](https://www.lagottolabs.ai/support/people-and-security/allowed-email-domains.md), their connections don't work. Connecting and revoking are recorded in the [audit log](https://www.lagottolabs.ai/support/people-and-security/audit-log.md).
