# Check your codebase and store copy for a target country before launch

> Fetch market-specific i18n rules, dialect checks and launch requirements, then audit your open codebase and store copy before shipping.

## Copy the prompt

Replace the bracketed values with your app and country, then paste this line into Claude Code, Claude, ChatGPT, Cursor or Codex:

```text
Using the threefold MCP, check my repository and store copy for [country] readiness, fix plurals, currency and dialect issues, and list every launch requirement.
```

Ready-to-try example (works immediately, even keyless):

```text
Using the threefold MCP, check my repository and store copy for Mexico (es-MX) readiness, fix plurals, currency and dialect issues, and list every launch requirement.
```

## Step 1: Connect the threefold MCP

Connect your agent to `https://api.threefold.eco/mcp` (browser OAuth 2.1 sign-in is free during v1 early access, up to 200 library reads/day; add `?keyless=1` for up to 50 reads/day with no account).

In Claude Code:

```sh
claude mcp add --transport http --scope user threefold https://api.threefold.eco/mcp
```

Using Claude, ChatGPT, Cursor, VS Code, Codex, Gemini CLI or OpenCode? Copy the one-line setup on the [Connect](https://threefold.eco/connect.md) page.

## Step 2: Add the skills (optional)

Point your agent at these public skill files if you want stricter citation and workflow guidance alongside the MCP tools:

- [`use-threefold`](https://threefold.eco/skills/use-threefold.md)
- [`localise-app`](https://threefold.eco/skills/localise-app.md)
- [`launch-in-market`](https://threefold.eco/skills/launch-in-market.md)

## Step 3: Paste the prompt

Paste the prompt above into a new chat or terminal session. In MCP clients that expose server prompts as slash commands, you can also invoke the built-in MCP prompt `localise-codebase-ready` directly via `prompts/get`.

### Prompt arguments (for `prompts/get`)

| Argument | Required | Default | Meaning |
|---|---|---|---|
| `market` | Optional | `mx` | Target country code (all 32 markets supported for check). |
| `from` | Optional | `us` | Source market code you are localising from. |
| `app` | Optional | — | Optional app name or store ID to check live store metadata too. |

## What the agent calls and returns

This recipe uses only the read-only v1 hosted MCP surface (`app`, `market`, `check`).

| Tool | Focus / What | Purpose |
|---|---|---|
| `check` | `repo` | Get country-specific codebase i18n readiness rules (plurals, dates, currency, RTL, dialect) without uploading source code. |
| `market` | `language` | Fetch target variant rules (e.g. es-MX vs es-ES, pt-BR vs pt-PT, formal/informal register). |
| `market` | `launch` | Pull the country launch checklist (local payments, statutory notes, store requirements). |
| `check` | `app` | Check your live store listing too if an app ID or name is supplied. |

### Workflow the agent follows

1. Call `check` with `what: "repo"` for the target market (and `from` if provided). On the hosted MCP server this returns rules, dialect checks, and formatting criteria without receiving source code; apply those checks directly to the user's open repository files (or run `npx threefold-check --json` if available locally).
2. Call `market` with `focus: "launch"` for the target market to load local payment rails, store rules, and statutory launch requirements (if you also know the app's category, call `market` with `focus: "language"` and `genre` for category-specific glossary terms).
3. If the user named a live app, also call `check` with `what: "app"` for that market.
4. Inspect the user's string catalogues, date/currency formatters, plural rules, RTL/font handling, and store copy against the returned criteria.
5. Fix concrete code and copy defects (or propose exact patches if read-only) and finish with a pass/fail launch readiness table.

### What you get back

- Concrete list of codebase i18n and dialect findings with file locations and fixes.
- Country-specific formatting, pluralisation, and register checks verified against threefold criteria.
- A pre-launch checklist covering store metadata, local payments, and statutory signposts (clearly marked not legal advice).
