# CrossIndie MCP server

Hosted MCP (Streamable HTTP): `https://api.crossindie.com/mcp`
Auth: **OAuth 2.1** (sign in with your CrossIndie account; used by claude.ai, Claude Desktop, ChatGPT and other
OAuth-capable clients), or a bearer API key for developer tools: `Authorization: Bearer <API key>`
(the account API key from https://crossindie.com/dashboard/integration).

## Connect with OAuth (no key: claude.ai, Claude Desktop, ChatGPT)

claude.ai / Claude Desktop:
1. Settings > Connectors > **Add custom connector**.
2. Name `CrossIndie`, Remote MCP server URL `https://api.crossindie.com/mcp`. Leave the advanced OAuth client id / secret empty.
3. Click **Add**, then **Connect**. A CrossIndie page opens: log in (or create an account) and press **Allow**.
4. In a chat, enable the CrossIndie connector (tools menu) and ask, e.g. "Add my app to CrossIndie".

ChatGPT: Settings > Apps & Connectors > Advanced: enable **Developer mode**, then **Create** a connector with the
URL `https://api.crossindie.com/mcp` and authentication **OAuth**. Connect, log in, Allow.

Disconnect any time: https://crossindie.com/dashboard/integration > Connected AI apps.

How it works (for client developers): `POST /mcp` without credentials answers 401 with
`WWW-Authenticate: Bearer resource_metadata="https://api.crossindie.com/.well-known/oauth-protected-resource"` (RFC 9728).
Authorization server metadata: `https://api.crossindie.com/.well-known/oauth-authorization-server` (RFC 8414).
Dynamic client registration: `POST https://api.crossindie.com/oauth/register` (RFC 7591, public clients, redirect URIs must be
https, loopback http, or a native app scheme). Authorization code flow with **PKCE S256** at
`https://api.crossindie.com/oauth/authorize` (the user consents on https://crossindie.com), tokens at `https://api.crossindie.com/oauth/token`
(`authorization_code`, `refresh_token`; access tokens last 1 hour, refresh tokens 30 days and rotate on
every use), revocation at `https://api.crossindie.com/oauth/revoke`.

## Connect with an API key (Claude Code, Cursor, other dev tools)

Claude Code:

```bash
claude mcp add --transport http crossindie https://api.crossindie.com/mcp --header "Authorization: Bearer YOUR_KEY"
```

Cursor (`~/.cursor/mcp.json`) / Claude Desktop (via mcp-remote):

```json
{
  "mcpServers": {
    "crossindie": {
      "url": "https://api.crossindie.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}
```

```json
{
  "mcpServers": {
    "crossindie": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.crossindie.com/mcp", "--header", "Authorization: Bearer YOUR_KEY"]
    }
  }
}
```

## Tools

Adding an app (ad network):
- `list_my_apps`: list the account's apps with ids and status.
- `create_app`: register an app (needs a public store or website link). It is checked automatically: a link that isn't live and public comes back `rejected` with `review_feedback` and `next_steps`.
- `get_app_status`: review status + feedback, store check, ownership, SDK connection and a `next_steps` list. Use it to guide the user.
- `update_app`: change the link / name / description / category / tags. Editing a rejected app resubmits it.
- `verify_ownership`: Google Play apps. Without `code` it e-mails a 6-digit code to the developer address on the Play listing (instant if that is the account e-mail); call again with `code`.
- `get_integration_snippet`: ready code for an app and engine (web, godot, unity, unreal).
- `check_integration`: is the SDK calling us (works before approval too) and are ads showing.
- `get_app_stats`: impressions, clicks and credits for an app.

Free Testers (Google Play closed testing):
- `create_test_program`: list an Android app (draft). The icon and the Play Console screenshot are uploaded on the website.
- `verify_tester_group`: check the user's Play Gmail is in the tester Google Group (needed once before testing others).
- `list_testing_pool`: open-pool apps that need testers.
- `my_squad_today`: today's squad checklist.
- `answer_optin`: after opening an opt-in link, report "Become a tester" (true) or "App not available" (false).
- `testing_checkin`: record a daily check-in (only after the user really used the app).
- `my_testing_profile`: test credits, strikes and reputation tier of the account.

Treat the API key as a secret and never commit it.
