> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.ollang.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Use Ollang MCP with Claude Code CLI for terminal-based translation workflows.

# Ollang MCP in Claude Code

[Claude Code](https://docs.anthropic.com/en/docs/claude-code) is Anthropic's agentic CLI tool. Ollang MCP integrates seamlessly, giving you translation capabilities right in your terminal.

## Setup

### Option 1: CLI command

```bash theme={null}
claude mcp add ollang --transport sse https://mcp.ollang.com/mcp
```

### Option 2: Project configuration

Create `.mcp.json` at your project root:

```json .mcp.json theme={null}
{
  "mcpServers": {
    "ollang": {
      "type": "sse",
      "url": "https://mcp.ollang.com/mcp"
    }
  }
}
```

<Tip>
  Commit `.mcp.json` to your repository so your entire team can use Ollang MCP. Use `${VARIABLE}` syntax for secrets to avoid hardcoding tokens.
</Tip>

### Option 3: Global configuration

Add to `~/.claude.json` for access in all projects:

```json ~/.claude.json theme={null}
{
  "mcpServers": {
    "ollang": {
      "type": "sse",
      "url": "https://mcp.ollang.com/mcp"
    }
  }
}
```

## Authentication

On first use, Claude Code will open a browser window for Ollang authentication. Sign in with your email (OTP), Google, or GitHub account.

## Use Cases

### Automate i18n in CI/CD pipelines

Use Claude Code in scripts to manage translations as part of your build process:

```bash theme={null}
claude -m "Upload src/locales/en.json to Ollang and create document
translation orders for French (fr), German (de), and Japanese (ja).
Return the order IDs."
```

### Batch translate project files

```
Find all .json files in src/locales/en/ and upload each one to Ollang
for translation to Spanish, French, and German. Track all order IDs.
```

### Quality check translations

```
Get all my completed Ollang orders. For each one, run a QC evaluation
checking accuracy and fluency. Summarize any issues found.
```

### Subtitle workflow

```
Read the subtitle file at https://example.com/captions.vtt using
Ollang's subtitle parser. Create a subtitle translation order for
Arabic, Hindi, and Chinese.
```

### Manage custom instructions

```
List all my Ollang custom instructions. Update the "Marketing Copy"
instruction to add: "Always use metric units for European markets."
```

## Configuration Scopes

Claude Code supports three configuration levels:

| Scope            | File                    | Use Case                         |
| ---------------- | ----------------------- | -------------------------------- |
| Project (shared) | `.mcp.json`             | Commit to repo, shared with team |
| User (global)    | `~/.claude.json`        | Personal tools, all projects     |
| Local (private)  | `.claude/settings.json` | Project-specific overrides       |

**Priority:** Local > Project > User

## Multi-Server Example

```json .mcp.json theme={null}
{
  "mcpServers": {
    "ollang": {
      "type": "sse",
      "url": "https://mcp.ollang.com/mcp"
    },
    "dropbox": {
      "type": "sse",
      "url": "https://mcp.dropbox.com/mcp"
    },
    "airtable": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "airtable-mcp-server"],
      "env": {
        "AIRTABLE_API_KEY": "${AIRTABLE_API_KEY}"
      }
    }
  }
}
```
