# Connect Claude.ai, Claude desktop and ChatGPT to Repowise

Add the hosted Repowise MCP server as a custom connector in Claude.ai, Claude desktop and mobile, or as a custom MCP app in ChatGPT, signed in with OAuth.

Claude.ai and ChatGPT run in the cloud, so they reach Repowise Hosted, which
indexes your repositories on every push. You add one URL, approve Repowise in
the browser, and every chat can answer from your real code, on the web,
desktop or phone.

## Install

You need a repowise.dev account with at least one repository indexed. Index
one from the [dashboard](https://repowise.dev/dashboard), or let your coding
agent do both halves:

```text
Set up Repowise for this repository. Follow https://docs.repowise.dev/hosted/setup.md
```

Chat connectors use the account-wide URL, which reaches every repository your
account can read:

```text
https://api.repowise.dev/mcp
```

To pin one repository, use `https://api.repowise.dev/mcp/OWNER/REPO`
instead. Private repositories need a paid plan and the
[indexing GitHub App](https://docs.repowise.dev/hosted/private-repos).

### Claude.ai, Claude desktop and mobile

1. Open [Claude's connector settings](https://claude.ai/settings/connectors)
   (**Customize > Connectors**) and click **Add custom connector**.

2. Paste `https://api.repowise.dev/mcp` as the remote MCP server URL and click
   **Add**. Leave any client ID and secret blank.

3. Click **Connect**. A Repowise sign-in window opens. Approve access.

On a Team or Enterprise plan, an organization owner adds the connector first
under **Organization settings > Connectors**. Each member then clicks
**Connect** and signs in, so each person reaches only the repositories they
can read on repowise.dev.

The connector lives on your Claude account, so Claude desktop and the mobile
apps use it with no further setup.

### ChatGPT

1. In ChatGPT on the web, add a custom MCP server (ChatGPT lists custom MCP apps
   under its plugins or apps settings, with developer mode on).

2. Enter a name, paste `https://api.repowise.dev/mcp` as the server URL and set
   authentication to **OAuth**.

3. Create and install the app. In a chat, pick the Repowise app and ask your
   question. The first call opens the Repowise sign-in.

Every Repowise tool is marked read-only, so ChatGPT asks for the fewest
confirmations.

## What gets written where

Nothing on your machine. The connector is stored on your Claude or ChatGPT
account. Repowise records the approval as a connected app under
**Connected apps** in [Settings](https://www.repowise.dev/settings?tab=editor).

## Restart

None. The tools are available in the next chat once you approve the sign-in.
In Claude, turn the connector on for a chat from the **+** menu under
**Connectors**. In ChatGPT, select the app in the tools menu.

## Verify

Ask something the model cannot know without the index:

> What are the hotspot files in acme/billing-api, and who owns them?

You should see a Repowise tool call (`get_overview` or `get_risk`) and an
answer that names real files and owners.

## Uninstall

Remove the connector in Claude (**Customize > Connectors**) or the app in
ChatGPT, then click **Revoke** on it under **Connected apps** in
[Settings](https://www.repowise.dev/settings?tab=editor).

## Troubleshooting

| Symptom | Fix |
|---|---|
| Claude says the connection failed on **Add** | Paste `https://api.repowise.dev/mcp` exactly, with no port or trailing path. |
| The model never calls a Repowise tool | The connector is off for this chat. Turn it on from **+ > Connectors** in Claude, or select the app in ChatGPT. |
| The sign-in window never appears | Allow pop-ups for claude.ai or chatgpt.com, then click **Connect** again. |
| "Repo not found" or answers about another repository | The URL pins one repository, or that repository is not indexed under the account you signed in with. Use the account-wide URL and check the [dashboard](https://repowise.dev/dashboard). |
| A team member cannot see the connector | An owner adds it under **Organization settings > Connectors**; each member connects separately. |

## Next
- [Connecting your IDE](https://docs.repowise.dev/hosted/connecting-ide) for coding agents on the same hosted index.
- [Private repositories](https://docs.repowise.dev/hosted/private-repos) to give the connector your private code.
- [Tools by question](https://docs.repowise.dev/agents/tools-by-question) for what to ask.
