> For the complete documentation index, see [llms.txt](https://help.twinr.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.twinr.dev/mcp/mcp.md). Agents can also search and read this documentation through its [MCP server](https://help.twinr.dev/~gitbook/mcp).

# Twinr MCP Server

Connect Claude, Cursor, Lovable or any MCP client to your Twinr account so it can read your apps, change your app icon, launch screen, theme, permissions and settings, start builds and write Twinr cod

The Twinr MCP server connects AI assistants to your Twinr account using the Model Context Protocol. Once connected, you can ask things like:

* "List my Twinr apps."
* "Is my Android build finished?"
* "Get me the download link for the latest iOS build."
* "Use this image as my app icon."
* "Change my launch screen to launch.png on my desktop."
* "Which permissions does my app need?"
* "Turn on portrait mode for my app."
* "Make my primary colour #1E88E5."
* "Hide the titles under my tab bar icons."
* "Create version 1.1.0 of my app."
* "Publish my changes to the live app."
* "Start an Android build."
* "Add Twinr push notifications to my site."
* "What does the Twinr JavaScript bridge offer?"

Without the connection, an assistant guesses at how Twinr works. With it, it reads your real apps and Twinr's own integration guides.

## Server URL

```
https://mcp.twinr.dev/mcp
```

It uses the Streamable HTTP transport with OAuth. Adding it opens a browser sign-in to your Twinr account. You do not need an API key.

{% hint style="info" %}
**Account access.** The assistant acts on your Twinr account as you, limited to the apps you share when you approve the connection. With **View only** it can look at your apps, builds and documentation. With **View & edit apps** it can also change the app icon, launch screen, theme, permissions and settings, create a new app version and start builds.
{% endhint %}

## Add the server to your client

{% tabs %}
{% tab title="Claude Code" %}
Run:

```bash
claude mcp add --transport http twinr https://mcp.twinr.dev/mcp
```

Then run `/mcp`, select **twinr**, and choose **Authenticate**.
{% endtab %}

{% tab title="Claude" %}
In **Settings → Connectors**, click **Add custom connector**. Enter `Twinr` as the name and the server URL above, then click **Add**, then **Connect**, and sign in.

Connectors added on claude.ai also work in the desktop app.
{% endtab %}

{% tab title="Cursor" %}
Add a `twinr` entry to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (this project only):

```json
{
  "mcpServers": {
    "twinr": {
      "url": "https://mcp.twinr.dev/mcp"
    }
  }
}
```

Open **Cursor Settings → MCP** and click **Connect**.
{% endtab %}

{% tab title="Lovable" %}
In **Connectors**, click **+** and choose **MCP server**. Enter `Twinr` as the name and the server URL above, keep **OAuth** selected, and click **Add & authorize**.

See [Lovable](https://help.twinr.dev/website-builders/lovable.md) for the full walkthrough.
{% endtab %}

{% tab title="VS Code" %}
Add a `twinr` server of type `http` to `.vscode/mcp.json`:

```json
{
  "servers": {
    "twinr": {
      "type": "http",
      "url": "https://mcp.twinr.dev/mcp"
    }
  }
}
```

Click **Start** and sign in. The tools appear in Copilot Chat agent mode.
{% endtab %}

{% tab title="Other clients" %}
Any MCP client that supports remote Streamable HTTP servers with OAuth can connect using the same URL.

Clients that browse the official MCP Registry list Twinr as `dev.twinr/mcp`.
{% endtab %}
{% endtabs %}

## Approve the connection

Adding the server opens Twinr in your browser. If you are not signed in, Twinr asks you to sign in first and then returns you to the request.

The approval screen shows:

* **Who is asking** — the assistant's name, marked *Verified* if Twinr recognises it, or *Unverified* if it named itself.
* **Permission** — choose **View only** to let the assistant look, or **View & edit apps** to also let it change your app icon, launch screen, theme, permissions and settings, create a new app version and start builds.
* **Apps** — tick the apps to share, or choose *All apps, including ones I create later*.

Click **Allow** to approve, or **Deny** to refuse.

{% hint style="warning" %}
Only approve a request you started yourself. If an approval screen appears when you did not just add a connector, click **Deny**.
{% endhint %}

## Available tools

| Area                       | What the assistant can do                                                                                                               |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Account                    | Look up your name and email                                                                                                             |
| Apps                       | List the apps you shared and read one app's details                                                                                     |
| Builds                     | Check Android and iOS build status, and get download links for finished builds                                                          |
| App icon and launch screen | Replace either image, from a link or a file on your computer (needs **View & edit apps**)                                               |
| App permissions            | Turn permissions on or off and edit their explanation texts (needs **View & edit apps**)                                                |
| App Settings               | Change portrait mode, prevent app sleep, webview zoom, iPad support and the minimum Android version (needs **View & edit apps**)        |
| App Theme and bars         | Change theme colours, text styles and buttons, and style the bottom tab bar, navigation bar and status bar (needs **View & edit apps**) |
| New app version            | Create the next version of your app (needs **View & edit apps**)                                                                        |
| Publish changes            | Send saved changes that don't need a build to your live app (needs **View & edit apps**)                                                |
| Start a build              | Start an Android build, an iOS build, or both (needs **View & edit apps**)                                                              |
| Documentation              | Search and read these help pages                                                                                                        |
| Integration guides         | Fetch Twinr's guides for push notifications, login sync and in-app purchases                                                            |
| JavaScript bridge          | List every function the Twinr app injects into your site, with its arguments                                                            |
| Project setup              | Produce a Twinr context block to save in your project, so later sessions remember                                                       |

## Change your app icon or launch screen

Ask the assistant to change the image and tell it where the image is. It names the app it is changing before it does.

* **An image on the web.** Give it the image's `https` link.
* **A file on your computer.** Give it the file's path. The assistant replies with a one-line command. Run it in Terminal on macOS or Linux, or in Command Prompt or PowerShell on Windows, within 5 minutes, then tell the assistant it's done. Assistants that can run commands themselves, such as Claude Code, may run it for you.

|           | App icon                                  | Launch screen              |
| --------- | ----------------------------------------- | -------------------------- |
| Format    | PNG or JPEG                               | PNG, JPEG or GIF           |
| Size      | Square. 1024 × 1024 pixels is recommended | Exactly 1062 × 2100 pixels |
| File size | Up to 5 MB                                | Up to 5 MB                 |

If an image doesn't fit, the assistant tells you why and nothing changes.

{% hint style="info" %}
The new icon and launch screen reach your users only with a new build. They do not update over the air. After a change, the assistant offers to start a build.
{% endhint %}

## App permissions

Ask the assistant which permissions your app needs. It reads your app and your website, recommends what fits, and changes nothing until you say yes.

You can turn on location, microphone, App Tracking Transparency (the iOS prompt for tracking you across other companies' apps) and Android file reading, and edit the text shown when the app asks for each one. Camera and photo library are always on, but their texts can be edited. This is the same as the **App Permissions** screen in the dashboard.

* "Which permissions does my app need?"
* "Turn on location and change its message to: We use your location to show nearby stores."

Once a version of your app is published, its permissions are locked. The assistant then asks you for a new version number, explaining why, and creates the new version before it makes the change.

{% hint style="info" %}
Permission changes reach your users only with a new build. If the Twinr dashboard is open, reload it before saving there, or it will overwrite the change.
{% endhint %}

## App Settings

Ask the assistant to change an option from the dashboard's **App Settings** screen. The defaults suit most apps, so it changes an option only when you ask.

| Option                  | What it does                                                              |
| ----------------------- | ------------------------------------------------------------------------- |
| Portrait mode           | Locks every screen upright                                                |
| Prevent app sleep       | Keeps the screen awake while the app is open                              |
| Webview zoom            | Lets customers pinch-zoom your site                                       |
| iPad support            | Makes the iOS app available on iPad. Needs a new iOS build                |
| Minimum Android version | The oldest Android version the app installs on. Needs a new Android build |

* "Turn on portrait mode."
* "Make the app install on Android 8 and newer."

Portrait mode, prevent app sleep and webview zoom reach installed apps the next time your changes are published, which starting a build does.

{% hint style="info" %}
If the Twinr dashboard is open, reload it before saving there, or it will overwrite the change.
{% endhint %}

## App Theme and bars

Ask the assistant to change how your app looks. It can change everything on the dashboard's [App Theme](https://help.twinr.dev/app-theme/app-theme.md), [Bottom Tab Bar](https://help.twinr.dev/app-theme/bottom-tab-bar.md), [Navigation Bar](https://help.twinr.dev/app-theme/navigation-bar.md) and [Status Bar](https://help.twinr.dev/app-theme/status-bar.md) screens.

| Screen         | What the assistant can change                                                                              |
| -------------- | ---------------------------------------------------------------------------------------------------------- |
| App Theme      | The six theme colours, the size, weight and font of each text style, and the primary and secondary buttons |
| Bottom Tab Bar | The style, colours, icon size, titles and fonts, and the extra settings each style has                     |
| Navigation Bar | The title style and colour, the background colour, the logo size, and the button size and spacing          |
| Status Bar     | The background colour, and whether the clock and battery are light or dark                                 |

* "Make my primary colour #1E88E5."
* "Use Inter for my headings."
* "Make the status bar text light."

Tab bar items, the navigation bar logo image and navigation bar buttons are still set in the dashboard.

Some tab bar settings belong to one style only. If you ask for one your style doesn't have, the assistant tells you and nothing changes. As in the dashboard, custom fonts and tab bar styles other than Default need a higher plan. If your app version is too old for these settings, the assistant offers to create a new version first.

{% hint style="info" %}
Theme and bar changes reach installed apps the next time your changes are published, without a build. If the Twinr dashboard is open, reload it before saving there, or it will overwrite the change.
{% endhint %}

## Create a new app version

Some options need a newer app version than yours. When that happens, the assistant tells you and offers to create one. Tell it the number you want, using digits and dots, for example `1.1.0`. It must be higher than your current version, and no other version of the app can already use it.

The new version starts as a copy of your current one, including unpublished changes, and becomes the version the dashboard opens and builds use. If the Twinr dashboard is open, reload it afterwards.

* "Create version 1.1.0 of my app."

{% hint style="info" %}
Changes in a new version reach your users after a build and a store release.
{% endhint %}

## Publish changes

After a change, the assistant tells you whether it can go live without a build, and asks if there's anything else to change first, since one publish covers every change so far. Say yes and it publishes. Changes like portrait mode or your theme then reach your users the next time they switch back to the app.

Publishing without a build needs a paid app subscription, and not every plan includes it. Otherwise your changes reach users with your next build, and the assistant says so. Changes such as the app icon, launch screen, permissions, iPad support and the minimum Android version always need a build.

* "Publish my changes."

If there is nothing new to publish, the assistant tells you the live app already has your changes.

## Start a build

Ask the assistant to start an Android build, an iOS build, or both. It starts one only when you ask, or when you accept its offer after a change that needs a build.

Twinr runs the same checks as the **Build** button in the dashboard. Your app must have an active plan or free trial (a cancelled, expired, frozen or unpaid subscription can't build), the platform's app information must be complete, and a build for that platform must not already be running. If one platform isn't ready, the assistant tells you what is missing, and the other platform still builds.

When the build finishes, iOS builds are uploaded to TestFlight, and Android builds are emailed to you as a download link. You can also ask the assistant for the build status or the download link.

{% hint style="warning" %}
**Unpublished changes are published first.** If you have changes in the builder that you haven't published, starting a build publishes them, and they reach installed apps over the air straight away. If your app uses more than one language, publish text changes from the builder instead, so the translations are made.
{% endhint %}

## Test the connection

Start a new chat and ask the assistant to list your Twinr apps. If it names them, the connection works.

If the tools are missing, confirm the server is enabled in your client and that you completed the sign-in.

## After you connect

Your connection is listed in **My Profile → AI connections**. That is where you change which apps it reaches, or revoke it.

{% content-ref url="/pages/m1uQokqWNFnyJfP83Epq" %}
[AI Connections](https://help.twinr.dev/twinr-account/ai-connections.md)
{% endcontent-ref %}

## Common Questions

<details>

<summary>The assistant says the connection is view-only.</summary>

In **My Profile → AI connections**, change the connection to **Can edit**. Then reconnect Twinr in your assistant's connector settings, so the assistant signs in again with the new permission.

</details>

<details>

<summary>Do I need a paid plan?</summary>

No. Connecting an assistant is part of your Twinr account.

</details>

<details>

<summary>I approved it, but the assistant still asks me to sign in.</summary>

Approval links are single-use and expire after a few minutes. Go back to your assistant and start the connection again.

</details>

<details>

<summary>Is this the same as an account secret?</summary>

No. An MCP connection is for an assistant acting on your behalf, approved in your browser, and limited to the permission you chose. An [account secret](https://help.twinr.dev/twinr-account/account-secrets.md) is a credential your own backend uses to call the Twinr API.

</details>
