fas-vietnamese
by faslocalize
README.md
# FAS Vietnamese API for MCP
Audit, score and translate into Vietnamese from any MCP client, with the
[FAS Vietnamese API](https://faslocalize.com/developers). Two ways to connect, one tool set:
| | Remote | Local |
| --- | --- | --- |
| Where | `https://mcp.faslocalize.com/mcp` (Streamable HTTP) | npm `@faslocalize/mcp` (`npx -y @faslocalize/mcp`, stdio) |
| Key | `Authorization: Bearer vl_live_...` header | `FAS_API_KEY` environment variable |
| Tools | the 11 shared tools | the 11 shared tools + `audit_file` (local locale files) |
| Folder | [`remote/`](remote) | [`stdio/`](stdio) |
The shared tool set is in [`core/`](core); [`server.json`](server.json) is the entry for the MCP Registry
(`com.faslocalize/vietnamese-api`), listing both.
Get a key at <https://faslocalize.com/developers>. The Free plan covers audits; translation, scoring and jobs need a
paid plan. `list_languages`, `list_targets` and `list_rules` work without a key.
## Set up your client
### Claude Code
```sh
# remote
claude mcp add --transport http fas-vietnamese https://mcp.faslocalize.com/mcp --header "Authorization: Bearer vl_live_your_key"
# or local (adds audit_file for the project's locale files)
claude mcp add fas-vietnamese --env FAS_API_KEY=vl_live_your_key -- npx -y @faslocalize/mcp
```
### Claude Desktop
Use the local package in `claude_desktop_config.json` (Settings > Developer > Edit Config):
```json
{
"mcpServers": {
"fas-vietnamese": {
"command": "npx",
"args": ["-y", "@faslocalize/mcp"],
"env": { "FAS_API_KEY": "vl_live_your_key", "FAS_MCP_ROOTS": "/home/you/projects/my-app" }
}
}
}
```
A custom connector to the remote URL works too, but custom connectors cannot send an API key, so only the `list_*`
tools are available that way.
### VS Code
`.vscode/mcp.json`:
```json
{
"inputs": [{ "type": "promptString", "id": "fas-api-key", "description": "FAS API key", "password": true }],
"servers": {
"fas-vietnamese": {
"type": "http",
"url": "https://mcp.faslocalize.com/mcp",
"headers": { "Authorization": "Bearer ${input:fas-api-key}" }
}
}
}
```
For the local package use `"type": "stdio", "command": "npx", "args": ["-y", "@faslocalize/mcp"], "env": {
"FAS_API_KEY": "${input:fas-api-key}", "FAS_MCP_ROOTS": "${workspaceFolder}" }`.
### Cursor
`~/.cursor/mcp.json` or `.cursor/mcp.json`:
```json
{
"mcpServers": {
"fas-vietnamese": {
"url": "https://mcp.faslocalize.com/mcp",
"headers": { "Authorization": "Bearer ${env:FAS_API_KEY}" }
}
}
}
```
### ChatGPT and other clients
- ChatGPT (developer mode): create a connector with the URL `https://mcp.faslocalize.com/mcp` and no authentication.
ChatGPT cannot send an API key, so only the `list_*` tools work there.
- Any Streamable HTTP client: the URL plus `Authorization: Bearer <key>` (or `X-API-Key: <key>`).
- Any stdio client: command `npx`, arguments `-y @faslocalize/mcp`, environment `FAS_API_KEY`.
## Tools
| Tool | Key | |
| --- | --- | --- |
| `list_languages`, `list_targets`, `list_rules` | no | Languages, targets, the cited rule catalogue. |
| `audit_translation` | any plan | Audit up to 200 source/target pairs. |
| `audit_file` | any plan | Audit a local locale file (local package only). |
| `score_translation` | paid | Confidence and review lane for up to 20 translations. |
| `translate_to_vietnamese` | paid | Translate up to 20 texts, audited. |
| `create_translation_job`, `get_translation_job`, `cancel_translation_job` | paid | Background jobs of up to 500 texts. |
| `tm_query` | paid | Translation-memory lookup. |
| `get_usage` | any plan | Plan, allowance and usage. |
## Develop
Each part has its own `package.json`; this repository uses no npm workspaces. `core/` owns the SDK install that the
other two parts build against.
```sh
cd core && npm ci --ignore-scripts && npm test && npm run typecheck
cd ../remote && npm test && npm run typecheck
cd ../stdio && npm test && npm run typecheck && npm run build
```
Tests run one file at a time in one forked worker. Live checks (`remote/scripts/live-check.mjs`,
`stdio/scripts/live-check.mjs`) read QA keys from `~/.secrets/fas-integrations-qa.json` and never print them.
## Registry
`server.json` follows the 2025-12-11 schema. Publish with `mcp-publisher` after the npm package is published (the
registry checks that `@faslocalize/mcp` declares `"mcpName": "com.faslocalize/vietnamese-api"`) and the remote is live;
the `com.faslocalize` namespace needs DNS verification of `faslocalize.com`.
## License
MIT. Copyright (c) 2026 FAS Localize.