# Claude Code

Add plnnrly to Claude Code with one command and sign in from your browser, without a token.

Claude Code is Anthropic's coding agent for the terminal. You add plnnrly with one command and sign in to plnnrly in your browser. There is no token to copy.

## Before you start

- MCP is switched on for your organisation. It is off in a new organisation until an administrator switches it on. If the **AI** panel (the sparkles icon in the top bar) is missing in plnnrly, ask an administrator; see [For administrators](https://developers.plnnrly.com/en/docs/administration/).
- You have the server URL, `https://<your-url>/mcp/v1`. `<your-url>` is the address you sign in to plnnrly on, such as `acme.plnnrly.com`, or your organisation's own domain. The **AI** panel shows the exact URL.
- Claude Code is installed. Anthropic recommends its native installer:

```bash [macOS, Linux, WSL]
curl -fsSL https://claude.ai/install.sh | bash
```

```shell [Windows PowerShell]
irm https://claude.ai/install.ps1 | iex
```

Installing with npm (`npm install -g @anthropic-ai/claude-code`) also works. Anthropic's [setup guide](https://code.claude.com/docs/en/setup) lists the other ways to install and the plans that include Claude Code.

## Add the server

```bash
claude mcp add --transport http plnnrly https://<your-url>/mcp/v1
```

Where the server is available depends on its scope:

| Option                        | Where plnnrly is available                                                                                              |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `--scope local` (the default) | In the current project, for you only.                                                                                   |
| `--scope project`             | In the current project, for everyone who uses it. The command writes `.mcp.json` in the project root for you to commit. |
| `--scope user`                | In all your projects, for you only.                                                                                     |

With `--scope project`, each teammate still signs in to plnnrly with their own account, and Claude Code asks each of them to approve the server the first time.

## Sign in

Run this in your shell:

```bash
claude mcp login plnnrly
```

Or start `claude`, run `/mcp` and choose plnnrly to sign in.

A plnnrly window opens in your browser. Sign in if needed, check the details and click **Approve**. Claude Code stores the sign-in on your computer and renews it by itself.

## Check that it works

```bash
claude mcp list
```

plnnrly shows `✔ Connected` once you are signed in, and `! Needs authentication` before that. Then start `claude` and ask "Which work items are assigned to me?"

## Remove the server

```bash
claude mcp remove plnnrly
```

This removes the server and deletes the sign-in Claude Code stored on your computer. To be sure the sign-in itself is cut in plnnrly, use **Disconnect** there; see [Disconnect an app](https://developers.plnnrly.com/en/docs/mcp/#disconnect-an-app).

## Troubleshooting

If plnnrly does not connect, or refuses a request, see [Troubleshooting](https://developers.plnnrly.com/en/docs/mcp/troubleshooting/).
