@babelize/mcp 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +107 -6
  2. package/package.json +5 -1
package/README.md CHANGED
@@ -88,14 +88,74 @@ Add to `.opencode.json`:
88
88
 
89
89
  ## Available Tools
90
90
 
91
+ ### Scanning (no API key required)
92
+
93
+ | Tool | Description |
94
+ |------|-------------|
95
+ | `babelize_scan` | Scan a local directory for hardcoded strings |
96
+ | `babelize_scan_strings` | Extract translatable strings from a code snippet |
97
+
98
+ ### Projects
99
+
100
+ | Tool | Description |
101
+ |------|-------------|
102
+ | `babelize_project_list` | List all translation projects |
103
+ | `babelize_project_get` | Get details of a specific project |
104
+ | `babelize_project_create` | Create a new translation project |
105
+ | `babelize_project_language_add` | Add a language to a project |
106
+ | `babelize_project_language_remove` | Remove a language from a project |
107
+ | `babelize_project_sync` | Trigger repository sync |
108
+ | `babelize_project_download` | Download translated project files as ZIP |
109
+
110
+ ### Translation Runs
111
+
112
+ | Tool | Description |
113
+ |------|-------------|
114
+ | `babelize_run` | Start a translation pipeline run |
115
+ | `babelize_status` | Check status of a translation run |
116
+ | `babelize_babel_list` | List translation runs (babels) |
117
+ | `babelize_babel_get` | Get detailed babel run info and logs |
118
+
119
+ ### Languages
120
+
121
+ | Tool | Description |
122
+ |------|-------------|
123
+ | `babelize_language_list` | List all supported languages |
124
+ | `babelize_language_codes` | Look up language code mappings (ISO ↔ FLORES-200) |
125
+
126
+ ### Analysis
127
+
91
128
  | Tool | Description |
92
129
  |------|-------------|
93
- | `babelize_scan` | Scan a local directory for hardcoded strings. No API key required. |
94
- | `babelize_scan_strings` | Extract translatable strings from a code snippet. No API key required. |
95
- | `babelize_run` | Start a translation pipeline run for target languages. Requires API key. |
96
- | `babelize_status` | Check the status of a running translation. Requires API key. |
97
- | `babelize_glossary_get` | List glossary entries for a project. Requires API key. |
98
- | `babelize_glossary_set` | Add or update terms in the translation glossary. Requires API key. |
130
+ | `babelize_engine_analyze` | Analyze source code for i18n readiness and framework detection |
131
+
132
+ ### Translation Quality
133
+
134
+ | Tool | Description |
135
+ |------|-------------|
136
+ | `babelize_tm_get` | List translation memory entries for a project |
137
+ | `babelize_tm_set` | Add a translation memory entry |
138
+ | `babelize_tm_export` | Export translation memory as TMX |
139
+ | `babelize_glossary_get` | List glossary entries for a project |
140
+ | `babelize_glossary_set` | Add or update a glossary entry |
141
+ | `babelize_glossary_delete` | Delete a glossary entry |
142
+ | `babelize_glossary_import` | Bulk import glossary entries from CSV |
143
+ | `babelize_glossary_export` | Export glossary entries as CSV |
144
+
145
+ ### Team & Deploy
146
+
147
+ | Tool | Description |
148
+ |------|-------------|
149
+ | `babelize_member_list` | List project members |
150
+ | `babelize_invitation_send` | Send a team invitation |
151
+ | `babelize_pr_raise` | Create a GitHub Pull Request with translations |
152
+
153
+ ### Account
154
+
155
+ | Tool | Description |
156
+ |------|-------------|
157
+ | `babelize_me` | Get current user profile and credits |
158
+ | `babelize_provider_tokens_list` | List connected BYOK translation provider tokens |
99
159
 
100
160
  ## Configuration
101
161
 
@@ -113,6 +173,47 @@ The server resolves configuration in this priority order:
113
173
  | `--api-url` / `BABELIZE_API_URL` | API base URL | `https://api.babelize.co/api` |
114
174
  | `--api-base` | API base path (without `/api` suffix) | — |
115
175
 
176
+ ## Workflow Examples
177
+
178
+ ### Translate a GitHub project in one command
179
+
180
+ Ask your AI agent:
181
+
182
+ > "Translate my-project to French and Spanish."
183
+
184
+ The agent will:
185
+ 1. `babelize_project_list` — find your project
186
+ 2. `babelize_project_language_add` — add French + Spanish
187
+ 3. `babelize_run_and_wait` — start + wait for completion
188
+ 4. `babelize_project_download` — download the translated ZIP
189
+
190
+ ### Translate local code without GitHub
191
+
192
+ > "Scan my local project and translate it to German."
193
+
194
+ 1. `babelize_scan` — find all hardcoded strings (no API key needed)
195
+ 2. `babelize_project_create` — create a project (no GitHub URL)
196
+ 3. `babelize_project_language_add` — add German
197
+ 4. `babelize_run_and_wait` — translate and wait
198
+ 5. `babelize_project_download` — get the translated files
199
+
200
+ ### Check translation quality
201
+
202
+ > "Review the translation quality for my project."
203
+
204
+ 1. `babelize_tm_get` — check translation memory entries
205
+ 2. `babelize_glossary_get` — review glossary for consistent terminology
206
+ 3. `babelize_babel_get` — inspect detailed run logs
207
+ 4. `babelize_glossary_set` — add missing glossary entries for consistent translations
208
+
209
+ ### Audit i18n readiness
210
+
211
+ > "Scan my codebase for i18n issues."
212
+
213
+ 1. `babelize_scan` — detect all hardcoded strings (free, no API key)
214
+ 2. `babelize_scan_strings` — test specific code snippets for translatable patterns
215
+ 3. `babelize_engine_analyze` — analyze framework and i18n library usage
216
+
116
217
  ## Links
117
218
 
118
219
  - [Website](https://babelize.co)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babelize/mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "MCP (Model Context Protocol) server for Babelize AI-powered i18n — let AI coding agents translate your apps",
5
5
  "keywords": [
6
6
  "babelize",
@@ -38,12 +38,16 @@
38
38
  "prepublishOnly": "npm test && npm run typecheck"
39
39
  },
40
40
  "dependencies": {
41
+ "@babel/parser": "^7.28.5",
42
+ "@babel/traverse": "^7.28.5",
43
+ "@babel/types": "^7.28.5",
41
44
  "@modelcontextprotocol/sdk": "^1.0.0",
42
45
  "axios": "^1.15.2",
43
46
  "zod": "^3.24.0"
44
47
  },
45
48
  "devDependencies": {
46
49
  "@jest/globals": "^30.2.0",
50
+ "@types/babel__traverse": "^7.28.0",
47
51
  "@types/jest": "^30.0.0",
48
52
  "@types/node": "^22.0.0",
49
53
  "jest": "^30.2.0",