Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/connect/claude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ Prediction trading and prediction events use a second connector, separate from G
- **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](/predictions-mcp/client-setup#claude-code) has the `claude mcp add` command for the `predictions` server.

Ask Gina does not push events into a Claude conversation. 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. See [Prediction events](/predictions-mcp/events).
Ask Gina does not push events into a Claude conversation. 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](/predictions-mcp/events#poll-from-claude-code) page has the prompt and its limits.

A Claude agent can now create its own webhook destination with `createWebhookDestination` and test it with `sendWebhookTestEvent`, without a browser step. Delivering events to that URL does not start a Claude turn by itself, so a receiver you run has to do something with them. See [Prediction events](/predictions-mcp/events).

## Verify your first result

Expand Down
2 changes: 1 addition & 1 deletion docs/connect/codex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ codex mcp login predictions

The login command opens the same browser sign-in. Complete it, then start or refresh your Codex session. Keep the `ask-gina` entry for research. The [Predictions client setup](/predictions-mcp/client-setup#codex) has the matching configuration entry.

Codex cannot receive a webhook, so it reads prediction events by cursor. Create a subscription with `createPredictionEventSubscription` and no `destinationId`, then call `getPredictionEvents` with the returned `subscriptionId` and `cursor`, and pass each new `cursor` back to read only newer events. Dedupe on `eventId`. The steps and recovery are in [Prediction events](/predictions-mcp/events#pull-events-with-a-cursor-codex-and-other-clients).
Codex cannot receive a webhook, so it reads prediction events by cursor, with no destination and no browser step. Create a subscription with `createPredictionEventSubscription` and no `destinationId`, then call `getPredictionEvents` with the returned `subscriptionId` and `cursor`, and pass each new `cursor` back to read only newer events. Always pass the `subscriptionId`, because without it the call reads the whole retained account log. Save the `cursor`, call again while `hasMore` is `true`, and dedupe on `eventId`. The steps and recovery are in [Prediction events](/predictions-mcp/events#pull-events-with-a-cursor-codex-and-other-clients). To push events to an HTTPS receiver you run, Codex can register it with `createWebhookDestination`, test it with `sendWebhookTestEvent` and then pass its `destinationId`. See [With MCP tools](/predictions-mcp/events#with-mcp-tools).

To check the connection, confirm that `listPredictionEventSubscriptions` and `getPredictionEvents` appear in the Codex tool list, then ask Codex to list your prediction event subscriptions with `listPredictionEventSubscriptions`. It is a read, so it changes nothing.

Expand Down
2 changes: 1 addition & 1 deletion docs/connect/grok-bot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The Gina package targets the Cursor marketplace route used by Grok Bot. A live A

Prediction trading and prediction events use a second connection, separate from Gina Read. It is `https://askgina.ai/ai/predictions/mcp` with `tools:execute`, so it is write access (Degen mode). Add it the same way you added Ask Gina, through the `ask-gina-predictions` plugin from [install for your host](/agents/plugins-and-skills#install-for-your-host) or a [custom connector](/connect/other-clients#grok-web) that uses that URL. A live Grok Bot listing for the Predictions plugin has not been verified here.

Grok Bot receives prediction events as webhooks. Add a **Webhook** trigger to a Grok automation, register its endpoint and signing secret on [askgina.ai/profile/webhooks](https://askgina.ai/profile/webhooks), and never give the secret to the agent. Then ask Grok to create a subscription with that destination's id. The signature rules, delivery guarantees and setup are in [Prediction events](/predictions-mcp/events#grok-webhook-triggers).
Grok Bot receives prediction events as webhooks. Add a **Webhook** trigger to a Grok automation, then ask Grok to call `createWebhookDestination` with the trigger's endpoint as `url` and its signing secret as `secret`. Grok makes its own secret, so always pass it. The secret then appears in the Grok conversation, and your host asks you to confirm the call. Next ask Grok to call `sendWebhookTestEvent` and to create a subscription with the `destinationId`. No browser step is needed. You can still register the destination on [askgina.ai/profile/webhooks](https://askgina.ai/profile/webhooks) instead. The signature rules, delivery guarantees and setup are in [Prediction events](/predictions-mcp/events#grok-webhook-triggers).

## Verify your first result

Expand Down
Loading
Loading