@questlang/mcp-server 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +4 -2
- package/dist/init.js +4 -3
- package/dist/init.js.map +1 -1
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -16,7 +16,7 @@ Use `questlang_scan_i18n_files` to scan the project directory for localization f
|
|
|
16
16
|
- File path, format, and number of keys
|
|
17
17
|
- Highlight which files look like source (vs already-translated) files
|
|
18
18
|
|
|
19
|
-
### Step 2: Select files, languages, and
|
|
19
|
+
### Step 2: Select files, languages, model, and style
|
|
20
20
|
|
|
21
21
|
Ask the user to confirm:
|
|
22
22
|
- Which file(s) to translate (default: the source file found in Step 1)
|
|
@@ -26,6 +26,8 @@ Ask the user to confirm:
|
|
|
26
26
|
- `claude-sonnet-4-5-20250929` — best quality (recommended)
|
|
27
27
|
- `claude-haiku-4-5-20251001` — faster and cheaper
|
|
28
28
|
- `deepseek-chat` — budget option
|
|
29
|
+
- Formality level (optional): `formal`, `informal`, or `auto` (default)
|
|
30
|
+
- Narrator gender (optional, for languages with grammatical gender): `male`, `female`, or `neutral`
|
|
29
31
|
|
|
30
32
|
### Step 3: Check balance and estimate cost
|
|
31
33
|
|
|
@@ -36,7 +38,7 @@ Ask the user to confirm:
|
|
|
36
38
|
### Step 4: Submit translation
|
|
37
39
|
|
|
38
40
|
After the user confirms:
|
|
39
|
-
1. Use `questlang_translate_file` with the selected file, languages, and any options (model, game context)
|
|
41
|
+
1. Use `questlang_translate_file` with the selected file, languages, and any options (model, game context, formality, narratorGender)
|
|
40
42
|
2. Save the returned order ID
|
|
41
43
|
|
|
42
44
|
### Step 5: Poll for completion
|
package/dist/init.js
CHANGED
|
@@ -3,6 +3,7 @@ import { join, dirname } from 'node:path';
|
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
export async function init() {
|
|
5
5
|
const cwd = process.cwd();
|
|
6
|
+
const forceUpdate = process.argv.includes('--update') || process.argv.includes('-u');
|
|
6
7
|
console.log('\n🔧 QuestLang MCP — Setting up your project...\n');
|
|
7
8
|
// 1. Locate SKILL.md relative to this file
|
|
8
9
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
@@ -57,13 +58,13 @@ export async function init() {
|
|
|
57
58
|
// 3. Create .claude/commands/translate.md
|
|
58
59
|
const commandsDir = join(cwd, '.claude', 'commands');
|
|
59
60
|
const translatePath = join(commandsDir, 'translate.md');
|
|
60
|
-
if (existsSync(translatePath)) {
|
|
61
|
-
console.log('✓ .claude/commands/translate.md already exists — skipping');
|
|
61
|
+
if (existsSync(translatePath) && !forceUpdate) {
|
|
62
|
+
console.log('✓ .claude/commands/translate.md already exists — skipping (use --update to overwrite)');
|
|
62
63
|
}
|
|
63
64
|
else {
|
|
64
65
|
mkdirSync(commandsDir, { recursive: true });
|
|
65
66
|
writeFileSync(translatePath, skillContent);
|
|
66
|
-
console.log('✓ Created .claude/commands/translate.md');
|
|
67
|
+
console.log(forceUpdate ? '✓ Updated .claude/commands/translate.md' : '✓ Created .claude/commands/translate.md');
|
|
67
68
|
}
|
|
68
69
|
// 4. Print next steps
|
|
69
70
|
console.log(`
|
package/dist/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,KAAK,UAAU,IAAI;IACxB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IAEjE,2CAA2C;IAC3C,MAAM,SA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AY,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC;IACnH,CAAC;IAED,sBAAsB;IACtB,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;CAab,CAAC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@questlang/mcp-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "MCP server for AI-powered i18n file translation. Translates JSON, CSV, Android XML, iOS .strings, PO, and XLIFF into 20 languages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|