# Connect Oobit in any AI agent

Oobit is a payments app. Its MCP server lets an AI assistant pay online for a user with single-use virtual cards. Every purchase needs the user's confirmation in the chat. This page describes how to connect the Oobit MCP server to any AI assistant that supports remote MCP servers with OAuth.

Client-specific pages: [Muse](https://docs.oobit.com/docs/oobit-connector-instructions-for-muse.md), [Grok Bot](https://docs.oobit.com/docs/oobit-connector-instructions-for-grok-bot.md), [OpenAI dots](https://docs.oobit.com/docs/oobit-connector-instructions-for-openai-dots.md).

Connecting is one step: the Oobit server is added to the assistant, and the user approves it in the Oobit app.

## Two ways the server gets added

**A. Assistants that can add a custom MCP server or connector themselves.** The assistant adds the server in the conversation, with the settings below, then starts OAuth and gives the user the sign-in link. Each attempt uses a new link.

**B. Assistants that only use connectors the user has already installed.** The user adds the server once in the assistant's settings, usually in a computer browser:

1. Open the assistant's settings and find the section for connectors, plugins or MCP servers. Some apps keep this behind a developer or advanced setting.
2. Choose to add a custom MCP server.
3. Fill in name **Oobit**, URL `https://mcp.oobit.co`, authentication **OAuth**. Confirm any risk warning and create it.
4. If the app offers a permission level for Oobit, the option that asks every time is recommended, since tools can spend money.

## Connector settings

| Setting                       | Value                                                                         |
| ----------------------------- | ----------------------------------------------------------------------------- |
| Name                          | Oobit                                                                         |
| MCP server URL                | `https://mcp.oobit.co`                                                        |
| Transport                     | Streamable HTTP                                                               |
| Headers                       | None                                                                          |
| Authentication                | OAuth authorization code with PKCE (`S256`). Public client, no client secret. |
| Authorization server metadata | `https://mcp.oobit.co/.well-known/oauth-authorization-server`                 |
| Protected resource metadata   | `https://mcp.oobit.co/.well-known/oauth-protected-resource`                   |
| Client registration           | Dynamic client registration at `https://mcp.oobit.co/register`                |
| Redirect URI                  | The assistant's own OAuth callback (https, or http on localhost)              |

There are no API keys. An unauthenticated request to the MCP URL returns `401` with a `WWW-Authenticate` header pointing to the protected resource metadata, so clients that support MCP authorization discover the rest automatically.

## The approval step

Both ways finish the same way:

1. The user opens the sign-in link right away: it is valid for about 5 minutes.
2. On a computer, the page shows a QR code to scan with the phone camera, which opens the Oobit app. On a phone, the Oobit app opens directly.
3. In the Oobit app, the user checks that the request names their assistant and taps **Approve**.
4. The user returns to the browser tab with the Oobit page, which completes on its own.

Access tokens last one hour and are renewed with a refresh token.

## Checking the connection

Once connected, the `get_account` tool returns the user's name and available balance. A successful call confirms the connection. If the assistant isn't connected after the user approved, starting OAuth again with a new link usually solves it.

## Tools

| Tool              | What it does                                                              |
| ----------------- | ------------------------------------------------------------------------- |
| `get_account`     | Name, available balance and card limits                                   |
| `get_card`        | Creates a single-use card for one purchase the user confirmed in the chat |
| `get_card_status` | Whether a card was used, canceled or expired                              |
| `list_cards`      | The user's cards, newest first                                            |
| `cancel_card`     | Cancels an unused card and releases the funds                             |

Each card covers one purchase of up to the confirmed amount ($1 to $500) and expires one hour after it is created. The MCP server's own instructions describe the purchase flow: check `get_account`, get the user's confirmation in the chat for the item, merchant and total, then create one card.

## Security

* Sign-in happens on Oobit's page and in the Oobit app. Oobit never asks for a password, one-time code, card number or token in the chat.
* Card numbers are returned only to the connected assistant, for the confirmed purchase, and are not meant to be shown to the user.

## Troubleshooting

| Situation                                                               | Resolution                                                                                                        |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| The Oobit app shows "Agent cards are not available on your account yet" | The Oobit account isn't eligible yet, usually because no Oobit card has been issued. Contact <support@oobit.com>. |
| "This request expired"                                                  | The link is older than 5 minutes or was already used. Start sign-in again for a new link.                         |
| Approved in the Oobit app, but the assistant isn't connected            | Start sign-in again in the same browser where the assistant is signed in.                                         |

Support: <support@oobit.com>