# MCP

> Connect an MCP client such as Claude Desktop or Cursor to your Deer workspace so it can read and work with your tasks, under your identity and permissions.

Source: https://docs.deerapp.co/en/connect/mcp/

## What MCP is

The Model Context Protocol (MCP) is an open standard that lets an AI client call tools in another product. Deer runs an MCP server for every workspace. When you connect a client to it, the client can list your tasks and, if you allow it, create and change them.

Every MCP tool is a Deer action. The client goes through the same permission check as the interface, its changes carry the client's mark, and each call is recorded in the [audit log](https://docs.deerapp.co/en/admin/audit_log/). Destructive requests stop until you approve them in Deer.

A connection always acts as the person who created it. It can never do more than that person can do in the workspace, and it can do less: you choose the task access when you create it.

## Before you start

- **Who can create a connection.** Workspace owners, and admins unless an owner has restricted their MCP access. Members and guests cannot open MCP settings.
- **Task access.** You need permission to read tasks. To give a client **Read & write**, you need permission to change tasks yourself.
- **A compatible client.** The client must support remote MCP servers over Streamable HTTP and let you set an `Authorization` header with a bearer token.
- **A limit.** A workspace can have up to 30 active connections at a time.

## Create a connection

#### Open MCP settings
Open **Settings**, then select **MCP** under **Workspace**. The **Connections** tab shows the **Server endpoint** for this workspace.

#### Start a new connection
Select **New connection**.

#### Name the client
Enter a **Client name** you will recognise later, for example the app and the device: `Cursor - work laptop`. Up to 80 characters.

#### Choose the task access
Under **Task access**, choose **Read** to let the client list tasks, or **Read & write** to let it create, edit, assign, comment on and delete tasks too.

#### Create it
Select **Create connection**. Deer shows the **Client configuration** with a new access token.

#### Save the configuration now
Select **Copy configuration** and paste it into your client. The token is shown once. Deer keeps only a fingerprint of it and cannot show it again. Select **Done** when you have saved it.

> [!IMPORTANT]
> If you lose the token, revoke the connection and create a new one. There is no way to recover a token.

## The client configuration

The configuration Deer gives you has this shape:

```json
{
  "mcpServers": {
    "moeen": {
      "url": "<workspace-mcp-url>",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}
```

- `<workspace-mcp-url>` is the **Server endpoint** shown in MCP settings. It has the form `https://app.deerapp.co/api/mcp/<workspace-id>`. Select **Copy URL** to copy it.
- `<token>` is the access token from the dialog. Tokens start with `mn_mcp_`.
- `moeen` is only the name your client shows for the server. You can rename it.

The **Client configuration** card on the **Connections** tab shows the same shape with a hidden token, so you can copy the structure again later. Insert your saved token into it.

## Add Deer to your client

Each client stores MCP servers in its own settings file. Use the tab for your client.

#### Claude Desktop
Claude Desktop starts MCP servers from its configuration file. To reach a remote server with a bearer header, it can use the open source `mcp-remote` bridge, which needs Node.js on your computer.

Open Claude Desktop, go to **Settings**, then **Developer**, and select **Edit Config**. Add Deer under `mcpServers`:

```json title="claude_desktop_config.json"
{
  "mcpServers": {
    "moeen": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "<workspace-mcp-url>",
        "--header",
        "Authorization:${DEER_AUTH_HEADER}"
      ],
      "env": {
        "DEER_AUTH_HEADER": "Bearer <token>"
      }
    }
  }
}
```

Save the file and restart Claude Desktop. The Deer tools appear in the tools menu of a new chat.
#### Cursor
Cursor connects to remote servers directly. Add Deer to `~/.cursor/mcp.json` for all projects, or to `.cursor/mcp.json` in one project:

```json title="mcp.json"
{
  "mcpServers": {
    "moeen": {
      "url": "<workspace-mcp-url>",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}
```

Open Cursor's MCP settings and check that the server shows its tools. Do not commit a project `mcp.json` that contains a token.
#### Streamable HTTP
Any client that speaks MCP over Streamable HTTP can connect. Send JSON-RPC messages with `POST` to the workspace URL with these headers:

```http
POST /api/mcp/<workspace-id> HTTP/1.1
Host: app.deerapp.co
Authorization: Bearer <token>
Content-Type: application/json
Accept: application/json, text/event-stream
```

Clients normally start with `initialize`. Deer keeps no session between requests, so you can also call `tools/list` directly:

```bash
curl -s <workspace-mcp-url> \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

Deer answers each request with a single JSON response. Protocol details are in the [API page](https://docs.deerapp.co/en/developers/api/#mcp-endpoint).

> [!NOTE]
> Client settings screens change often. If a client does not show Deer's tools, check that it supports Streamable HTTP and custom headers, and that the token and URL were pasted in full.

## What a connection can do

| Task access | Tools the client sees |
| --- | --- |
| **Read** | `tasks.list` |
| **Read & write** | `tasks.list`, `tasks.create`, `tasks.update`, `tasks.set_status`, `tasks.assign`, `tasks.add_comment`, `tasks.set_subtask`, `tasks.delete` |

The client sees only the tasks you can see, including private teams you belong to. If your own permission changes, the tool list changes with it. Tasks a client creates or edits show its mark, so everyone can tell the change came from MCP.

`tasks.delete` always stops for your approval. The full tool reference and the approval flow are in [MCP tools](https://docs.deerapp.co/en/connect/mcp_tools/).

## Approve a request

You can also decide in **Actions**, under **Approvals**. For a write that does not require approval, see [retry keys](https://docs.deerapp.co/en/connect/mcp_tools/#retry-writes).

When a client asks to delete a task, an **Approval requests** section appears on the **Connections** tab of the person who created the connection. Each request shows **Delete task**, the task title and the client name.

Select **Approve deletion** or **Reject**. After you approve, the request shows **Approved. The client can retry the call.** The client then repeats the same call with the approval ID. A request expires 15 minutes after the client made it.

## Monitor and revoke

The **Connections** table lists every connection in the workspace with its **Client**, who it **Acts as**, its **Scopes**, the number of **Calls**, when it was **Last used** and its **Status**: **Active** or **Revoked**.

To stop a client, select **Revoke** on its row and confirm. Any owner or admin with MCP access can revoke any connection in the workspace.

- The token stops working immediately, and the client's next call is refused.
- Pending approval requests from that connection are deleted.
- A revoked connection cannot be turned back on. Create a new connection if you need access again.

Every connection created, every revocation and every tool call is recorded in the [audit log](https://docs.deerapp.co/en/admin/audit_log/), with the client shown as the actor acting for its owner.

## Security notes

- **Treat the token like a password.** Anyone who has it can act as you within the connection's access. Never paste it into chat, tickets or shared documents, and never commit it to a repository.
- **One connection per client.** Create a separate connection for each app and device, so you can revoke one without breaking the others.
- **Choose the least access.** Use **Read** unless the client really needs to change tasks.
- **Access follows you.** A connection stops working if you leave the workspace, if your MCP access is removed, or if the workspace requires two-step verification and you have not set it up.
- **Browser pages cannot borrow it.** Deer refuses MCP requests sent by web pages on other sites.
- **Limits.** The MCP endpoint accepts up to 120 requests a minute from one network address, and each request body can be up to 15,029,592 bytes.

- [MCP tools](https://docs.deerapp.co/en/connect/mcp_tools/) Every tool, its input and the approval retry.
- [API](https://docs.deerapp.co/en/developers/api/) The MCP endpoint and the public actions endpoint.
- [Errors and approvals](https://docs.deerapp.co/en/developers/errors_and_approvals/) What a client sees when something is refused.
- [Audit log](https://docs.deerapp.co/en/admin/audit_log/) See what each client did.
