> ## Documentation Index
> Fetch the complete documentation index at: https://docs.askgina.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude

> Add Gina to Claude in one tap on the web, iPhone or Android, or connect it by hand in Claude Desktop or Claude Code.

## Add Gina in one tap

Pick where you use Claude. Each button opens Claude's **Add custom connector** screen with Gina filled in.

> [card] [Web](https://claude.ai/customize/connectors?modal=add-custom-connector\&connectorName=Ask%20Gina\&connectorUrl=https%3A%2F%2Faskgina.ai%2Fai%2Fgina%2Fmcp)

> [card] [iPhone](claude://claude.ai/customize/connectors?modal=add-custom-connector\&connectorName=Gina\&connectorUrl=https%3A%2F%2Faskgina.ai%2Fai%2Fgina%2Fmcp)

> [card] [Android](claude://claude.ai/add-connector?name=Gina\&url=https%3A%2F%2Faskgina.ai%2Fai%2Fgina%2Fmcp)

**Web** opens claude.ai and also adds Gina to Claude Desktop. **iPhone** and **Android** open the Claude app, so tap them on your phone.

Confirm to add Gina, then sign in to Gina when Claude asks. The phone buttons use app links Claude does not document, so they can change. If a button does not open the add screen, use the steps below.

## Claude web and Desktop

Use a remote connector, rather than a local stdio server configuration:

1. Open **Customize → Connectors → + → Add custom connector**.
2. Enter **Ask Gina** and `https://askgina.ai/ai/gina/mcp`.
3. Add the connector, choose **Connect**, and complete Gina OAuth.
4. Enable Gina in the conversation's connectors or tools controls.

![Claude Customize screen with Connectors selected and Gina listed under Your custom connectors, showing askgina.ai and a green checkmark.](https://mintcdn.com/askgina/SuPbudog7G96Q9J2/images/product/claude-connector.png?fit=max\&auto=format\&n=SuPbudog7G96Q9J2\&q=85\&s=6430178ba45f1dd49348563f0ab2a9a2)

*Gina added as a custom connector in Claude, captured September 7, 2026.*

For Team or Enterprise, an owner may need to add the connector first. See [Claude's remote connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).

## Claude on iPhone and Android

Gina added on the web or in Desktop also appears in the Claude phone apps signed in to the same account. Turn it on in a chat with **+ → Connectors**. To add it from your phone instead, use the iPhone or Android button at the top of this page.

## Claude Code: direct MCP

Run:

```sh theme={null}
claude mcp add --transport http ask-gina https://askgina.ai/ai/gina/mcp
```

Start Claude Code, open `/mcp`, select Ask Gina, and complete browser authentication. See [Claude Code MCP](https://code.claude.com/docs/en/mcp).

## Claude Code: repository plugin

To install the research skills together with their MCP configuration, use the repository-hosted marketplace:

```text theme={null}
/plugin marketplace add askgina/plugins
/plugin install ask-gina@ask-gina-plugins
```

Restart the session if prompted, then use `/mcp` to authenticate the included connection. Choose this route instead of adding a duplicate direct connection. The repository marketplace is distinct from a listing in Anthropic's public directory. To add Spot execution from the same marketplace, see [install for your host](https://docs.askgina.ai/agents/plugins-and-skills.md#claude-code).

## Add the Predictions connector

Prediction trading and prediction events use a second connector, separate from Gina Read. It requests `tools:execute`, so it is write access (Degen mode) and can place orders. Add it by hand with these steps. The one-tap buttons above add Gina Read only.

* **Claude web and Desktop:** open **Customize → Connectors → + → Add custom connector**, enter **Ask Gina Predictions** and `https://askgina.ai/ai/predictions/mcp`, add it, choose **Connect** and complete Gina OAuth.
* **Claude Code:** the [Predictions client setup](https://docs.askgina.ai/predictions-mcp/client-setup.md#claude-code) has the `claude mcp add` command for the `predictions` server.

Ask Gina cannot push events into a Claude chat or a Claude Code session that is already open. A Claude Code routine can receive them instead, as described in [Push events into Claude Code (routine)](#push-events-into-claude-code-routine). To read events inside a chat, Claude can create a pull subscription with `createPredictionEventSubscription` and no `destinationId`, then call `getPredictionEvents` with the returned `subscriptionId` and `cursor` when you ask it to check. Always pass the `subscriptionId`, because without it the call reads the whole retained account log instead of the subscription's events. Save the returned `cursor`, call again while `hasMore` is `true`, dedupe on `eventId`, and read your account state again when `truncated` is `true`. A pull subscription that nobody reads for 7 days pauses. Resume it with `updatePredictionEventSubscription`, passing its `id` and `patch.enabled: true`.

In Claude Code, `/loop 5m` followed by that read prompt checks on an interval while the session is open. The [Prediction events](https://docs.askgina.ai/predictions-mcp/events.md#poll-from-claude-code) page has the prompt and its limits.

A Claude agent can create its own webhook destination with `createWebhookDestination` and test it with `sendWebhookTestEvent`, without a browser step. A plain webhook URL does not start a Claude turn by itself, so a receiver you run has to act on the events. A routine's fire URL is the exception, because Claude Code starts a session for each call. See [Prediction events](https://docs.askgina.ai/predictions-mcp/events.md).

## Push events into Claude Code (routine)

A Claude Code routine is a saved prompt that runs as a cloud session. Its API trigger is a URL that starts a new session when called. Register that URL as an Ask Gina destination and Ask Gina starts a session whenever your Polymarket orders or trades change. You run no receiver. Anthropic's docs now call routines scheduled tasks and label them a research preview, so their behavior and limits can change. See [Automate work with scheduled tasks](https://code.claude.com/docs/en/routines).

You need a Claude plan with Claude Code on the web (Pro, Max, Team or Enterprise), the [Predictions connector](#add-the-predictions-connector) in the Claude session where you create the subscription, and a finished Predictions account in Ask Gina.

1. **Create the routine.** Open `claude.ai/code/routines`, choose **New task** and write the prompt. Claude hands the fired text to the routine as untrusted data, so the prompt has to tell Claude to read it. For example:

   ```text theme={null}
   Ask Gina sent prediction events in the routine-fire-payload block, as a JSON array. List each distinct eventId once with the event name and the order or trade it describes. Do not place, change or cancel any order. If the block holds no events, say so and stop.
   ```

2. **Choose its connectors.** A new routine includes every connector on your Claude account. Remove the ones it does not need. Keep the Predictions connector out unless the routine must read your account, because that connector also carries the trading tools. See [Safety](#safety-for-routine-push).

3. **Add an API trigger.** Edit the routine, click **+** in the **Trigger** row and choose **API**. Copy the **Fire URL**. Click **Generate token** and copy the token straight away. Claude shows it once and cannot show it again.

4. **Register it with Ask Gina.** On the [settings page](https://askgina.ai/profile/webhooks), choose **Add destination** and enter a label. **Receiver type** offers **Detect from the address** by default, **Webhook**, or **Claude routine**. Leave detection on or choose **Claude routine**, paste the Fire URL into **Webhook or routine URL**, and paste the token into **Routine API trigger token**. The Fire URL looks like `https://api.anthropic.com/v1/claude_code/routines/trig_.../fire` and the token starts with `sk-ant-oat01-`. After saving, look for the **Claude routine** badge on the destination row to identify it for testing or token replacement. The settings page is the better path because the token goes from you to Ask Gina without passing through a chat. A Claude agent can instead call `createWebhookDestination` with the same URL as `url` and the token as `secret`. Its optional `kind` is `webhook` or `claude_routine`. If omitted, the URL decides: the exact routine fire URL pattern selects `claude_routine`, and any other `api.anthropic.com` URL is refused. A `kind` that contradicts the URL fails with `INVALID_ARGUMENTS` on `kind`. Passing the token through a Claude agent puts it in that conversation's transcript, and anyone who can read it can start your routine until you regenerate the token. Ask Gina cannot generate this token for you, so a create call with no `secret` is refused.

5. **Send a test before subscribing.** Press **Send test event** on the settings page or ask Claude to call `sendWebhookTestEvent` with the `destinationId` from step 4. This sends a short test message, not a signed event. It starts a real session, uses the routine's fire quota, and takes the destination's shared 150-second fire slot. Expect a new run in the routine's history. Testing before you subscribe keeps a real event from taking that slot first. If the routine was fired less than 150 seconds ago, nothing is sent: `sendWebhookTestEvent` refuses with `WEBHOOK_ROUTINE_NOT_READY` and `details.retryAfterSeconds`. The settings page tells you to wait N seconds before trying again.

6. **Subscribe after the test succeeds.** Ask Claude to call `createPredictionEventSubscription` with the same `destinationId`. Add a filter if the routine should only hear about some markets or orders. The first real delivery may wait for the test's shared fire slot to clear.

### What the routine receives

Ask Gina fires a routine at most once every 150 seconds per destination. Each fire carries every event waiting at that moment, as a JSON array of the [event envelopes](https://docs.askgina.ai/predictions-mcp/events.md#what-you-get) in order, behind a short note. The note tells Claude that events can repeat, that it should dedupe on `eventId` and that the message is not your approval to trade. Events that do not fit in one fire wait for the next one. Delivery is at least once.

Each fire is a new session with no memory of earlier ones. The routine can drop repeats inside one fire, but it cannot know that an earlier fire carried the same `eventId`. A repeated notification is usually harmless. If it is not for your use, keep the ids you have handled somewhere the routine can write.

The [Prediction events](https://docs.askgina.ai/predictions-mcp/events.md#claude-code-routines) page lists what happens on each Anthropic error, how to rotate the token and the limits. Regenerating the token stops the old token from working at once. In Ask Gina settings, choose **Replace token** on the routine's row, paste the new token, and choose **Save token**. A rejected token or a routine you paused or deleted pauses the subscription immediately when Anthropic returns 400, 401, 403 or 404. A 413 response or an event too large to fit alone also pauses it immediately. After fixing the cause, resume with `updatePredictionEventSubscription` and `patch.enabled: true`.

### Safety for routine push

A fire is a notification. It is not approval to trade, and Claude runs a routine without you in the loop. Anthropic starts the session in auto mode, where a classifier decides which actions proceed, so no prompt appears for you to answer unless an ask rule or repeated blocks stop the run. Ask Gina's trading tools are marked destructive, which makes a normal client ask you first, but a routine that holds the Predictions connector can reach them.

The only limit that does not depend on the prompt is the connector list. Leave the Predictions connector off a routine that should only notify you, and let it report through another connector such as email or chat. If the routine does need the Predictions connector, say in the prompt that it must never place, change or cancel orders, and treat that as a request, not a guarantee. Ask the routine to tell you what it found and let you place the order in Gina yourself.

Each fire uses your Claude subscription, like an interactive session. Ask Gina does not charge for deliveries. Anthropic limits fires per routine and per account each hour, and Ask Gina keeps one destination under the routine limit. See [Limits and billing](https://docs.askgina.ai/predictions-mcp/events.md#claude-code-routines).

### No push: poll from a scheduled routine

A routine can instead run on a schedule and read the event log with a pull subscription. This needs no destination, no token and no browser step.

1. Ask Claude to call `createPredictionEventSubscription` without a `destinationId`, and note the `subscriptionId` and `cursor`.

2. Create a routine with a **Schedule** trigger and the Predictions connector. For example:

   ```text theme={null}
   Call getPredictionEvents with subscriptionId <subscription id> and the cursor stored at <where you keep it>. If hasMore is true, call again with the new cursor until it is false. Store the latest cursor. List each new eventId once with the event name and the order or trade it describes. If truncated is true, say so and read my account state again before you report. Do not place, change or cancel any order.
   ```

3. Pick a schedule. Anthropic rejects cron expressions that run more often than once per hour, so the shortest interval is hourly. A run at the top of the hour can start several minutes late, so pick a few minutes past it.

Every run starts with no memory, so the cursor has to live somewhere the routine can read and write, such as a file in a repository the routine clones or a note in another connector. Without a stored cursor, each run would read from the subscription's start. Reading the subscription counts as activity, so an hourly routine also keeps it from pausing after 7 days unread.

Anthropic says routines can call the connectors on your Claude account, and that servers added at `claude.ai/customize/connectors` count. A server you added only with `claude mcp add` is stored on your machine and does not. Ask Gina has not run a routine against the Predictions connector, so open the first run and check that the `getPredictionEvents` call succeeded before you rely on it.

## Verify your first result

Ask **“Use Gina to show ETH in USD over the past seven days.”** Confirm a Gina tool ran and the response identifies ETH and the requested period. Follow [First successful request](https://docs.askgina.ai/start/first-request.md) for the expected tool boundary and recovery steps.

This connection is read-only. For trading or transfers, see [Write access (Degen mode)](https://docs.askgina.ai/write-access/index.md). A direct connection does not automatically install [research skills](https://docs.askgina.ai/agents/plugins-and-skills.md).

![A successful Gina request in Claude showing the user's HYPE chart prompt, the Gina tool call, a HYPE/USD chart, and Claude's summary.](https://mintcdn.com/askgina/SuPbudog7G96Q9J2/images/product/claude-perps-chart.png?fit=max\&auto=format\&n=SuPbudog7G96Q9J2\&q=85\&s=e1d39c8e00956c2da2cf58a8c039f4ef)

*Example of a successful chart request in Claude, captured September 7, 2026. This HYPE example uses a different asset and period from the verification prompt above; displayed prices are historical.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.