# Set up Diagnosis in Codex or Claude

Connect Claude, Codex, Cursor or another MCP client on your computer to Tellagen with a browser sign-in, so it can diagnose incidents with the tools you already use.

Your client runs the diagnosis on your computer and reads your metrics, logs and code with your own tools. Tellagen holds the incident and the result. You copy no key: you sign in once in the browser.

## Before you start

### Intended audience

Responders who run a Diagnosis from an AI client on their own computer.

### Required permissions

You need a responder seat, and your AI client and Node.js on your computer. To see the tools of the whole workspace, you also need permission to manage settings.


## Procedure

<a id="step-add-tellagen-to-your-client"></a>

1. **Add Tellagen to your client.** Go to **Settings** → **AI diagnosis** and open the **Local** tab. If you connected a client before, select **Connect a client**. Under **Your client**, pick yours, select **Copy**, then run what you copied.

   In Claude, the plugin is the quickest way. You can also use `claude mcp add`, or add the JSON to `claude_desktop_config.json`, then quit Claude fully and open it again. Cursor reads the same JSON from `~/.cursor/mcp.json`.

Claude:

```shell
/plugin marketplace add tellagen/tellagen-marketplace
/plugin install tellagen@tellagen-marketplace
```

Claude, MCP command:

```shell
claude mcp add tellagen -- npx -y @tellagen/mcp-server@latest
```

Claude, config file:

```json
{
  "mcpServers": {
    "tellagen": {
      "command": "npx",
      "args": ["-y", "@tellagen/mcp-server@latest"]
    }
  }
}
```

Codex:

```shell
codex mcp add tellagen -- npx -y @tellagen/mcp-server@latest
```

Cursor and other MCP clients:

```json
{
  "mcpServers": {
    "tellagen": {
      "command": "npx",
      "args": ["-y", "@tellagen/mcp-server@latest"]
    }
  }
}
```

**Figure: How Diagnosis connects Tellagen, your AI client, and your tools.** Your AI client, such as Claude, Codex or Cursor, runs on your computer and calls your own MCP tools. Tellagen sends it the incident and the runbooks. The client sends back its result. The credentials for your tools stay on your computer. Tellagen stores the result: findings, steps, and the verdict.

![The Connect a client sheet with the client picker, the Claude commands to copy and the step to sign in from Claude.](https://tellagen.com/help/captures/local-diagnosis-connect-client.webp)

<a id="step-sign-in-from-your-client"></a>

2. **Sign in from your client.** In Claude, type `/tellagen:connect`. In any other client, ask it to "sign in to Tellagen". Your client shows a short code and opens the sign-in page in your browser. If it can't open a browser, it gives you the address, and you can open it on any device.

<a id="step-approve-the-sign-in"></a>

3. **Approve the sign-in.** Check that the code matches the one in your client, and that the workspace is the one you want. Approve only a sign-in that you started yourself. Under **Stay signed in for**, pick 30 or 90 days, then select **Approve**.

   When the page says "Your client is connected", go back to your client. It's ready.

<a id="step-check-local-setup"></a>

4. **Check your clients.** Back on the **Local** tab, find your client under **Your clients**, with its version, its computer and the days left on its sign-in. You can have two sign-ins at a time.

   To remove a client, select **Sign out** in its row and confirm. To check from your computer instead, run `npx @tellagen/mcp-server status`.

![Your clients with one signed-in Claude client on ops-laptop, and a ring around Connect a client.](https://tellagen.com/help/captures/local-diagnosis-your-clients.webp)

<a id="step-add-your-evidence-tools"></a>

5. **Add your evidence tools.** A diagnosis is only as good as what it can read. Add your Grafana, GitHub or Kubernetes tools to the same client, with read-only accounts. See [how local diagnosis uses your tools](https://tellagen.com/help/how-local-diagnosis-uses-your-tools), then [add an evidence tool](https://tellagen.com/help/add-an-evidence-tool).

   After its first diagnosis, your client reports the tools it found under its row. A tool it didn't find has a dash. Select **Add a missing tool** to set it up.

<a id="step-check-the-evidence-tools"></a>

6. **See the tools of the workspace (optional).** With permission to manage settings, you also see **For the workspace**. Under **Tools a diagnosis can use**, each tool has the newest report of each client. A tool marked Not found becomes a gap in the diagnosis, so fix that one first. See [Fix a tool that shows Not found](https://tellagen.com/help/fix-a-tool-that-shows-not-found).

   The switch **Responders can connect their own client** decides whether responders can sign a client in.

## What happens next

- Your client can now pick up a Diagnosis. [Run one](https://tellagen.com/help/run-local-diagnosis).
- An admin can set how the close dialog offers a to-do under **To-dos from a diagnosis**, lower on the **Local** tab.
- To have your computer start runs without you asking, see [Let your computer take diagnosis runs](https://tellagen.com/help/let-your-computer-take-diagnosis-runs).

## FAQs

<a id="troubleshooting-the-sign-in-page-says-i-can-t-connect-a-client-why"></a>

### The sign-in page says I can't connect a client. Why?

One of three things: you have a viewer seat, an admin turned off **Responders can connect their own client**, or your plan doesn't include API access. The page names the cause. If you already have two clients, sign one out under **Your clients** first.

<a id="troubleshooting-the-sign-in-page-says-this-code-is-not-valid-or-it-expired-or-it-was-already-used-what-now"></a>

### The sign-in page says “This code is not valid, or it expired, or it was already used.” What now?

A code works once and lasts 10 minutes. Start the sign-in again in your client and use the new code.

<a id="troubleshooting-my-client-shows-update-needed-how-do-i-update-it"></a>

### My client shows Update needed. How do I update it?

Start the client again. The commands above load the newest server each time. With the Claude plugin, run `/plugin` and update Tellagen, because a restart keeps the plugin's own version.

<a id="troubleshooting-my-client-can-t-do-the-browser-sign-in-at-all-is-there-another-way"></a>

### My client can't do the browser sign-in at all. Is there another way?

Yes. In **Connect a client**, select **Use a key instead**, then **Make key**, and copy the key at once, because Tellagen shows it only once. It counts as one of your two sign-ins. For a key the whole team shares, see [API keys](https://tellagen.com/help/manage-api-keys).

<a id="troubleshooting-my-client-never-reports-its-tools-what-can-i-do"></a>

### My client never reports its tools. What can I do?

If your computer listens for runs, select **Check now** on its row. Otherwise someone with permission to manage settings selects **Recheck** on the tool under **Tools a diagnosis can use**, then pastes the prompt into the client.

## Related articles

- **Recommended next task:** [Run a Diagnosis](https://tellagen.com/help/run-local-diagnosis)
- [Let your computer take diagnosis runs](https://tellagen.com/help/let-your-computer-take-diagnosis-runs)
- [API keys](https://tellagen.com/help/manage-api-keys)
- [Write runbooks for Diagnosis](https://tellagen.com/help/write-runbooks-for-diagnosis)

## External setup references

- [OpenAI Codex MCP documentation](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) (verified 2026-08-29)
- [Anthropic Claude MCP documentation](https://code.claude.com/docs/en/mcp) (verified 2026-08-29)


## Continue through the incident lifecycle

- **Previous task:** [API keys](https://tellagen.com/help/manage-api-keys)
- **Next task:** [Add an evidence tool to your client](https://tellagen.com/help/add-an-evidence-tool)
- [Back to Support Center](https://tellagen.com/help#help-search)

## Updated

2026-11-28
