lotux-mcp 0.1.0 → 0.1.1

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/index.mjs +21 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -52,7 +52,7 @@ const ok = (result) => ({
52
52
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
53
53
  });
54
54
 
55
- const server = new McpServer({ name: "lotux", version: "0.1.0" });
55
+ const server = new McpServer({ name: "lotux", version: "0.1.1" });
56
56
 
57
57
  // ── Reads ─────────────────────────────────────────────────────────────────────
58
58
 
@@ -187,6 +187,26 @@ server.tool(
187
187
  async (args) => ok(await rpc("set_base_language", args))
188
188
  );
189
189
 
190
+ server.tool(
191
+ "add_language",
192
+ "Add a translation language (tab) to a concept's Script, e.g. Dutch. Use a full-written name from list_options. Then write each beat's translated line with set_beat_translation.",
193
+ { concept_id: z.string(), language: z.string().describe("Full-written name, e.g. Dutch") },
194
+ async (args) => ok(await rpc("add_language", args))
195
+ );
196
+
197
+ server.tool(
198
+ "set_beat_translation",
199
+ "Write one beat's translated script line for a language. beat_id comes from get_concept; language must match one added via add_language.",
200
+ {
201
+ beat_id: z.string(),
202
+ language: z.string().describe("Full-written name, e.g. Dutch"),
203
+ delivery_text: z.string().optional().describe("The translated script line / what's said"),
204
+ visual_note: z.string().optional(),
205
+ },
206
+ async ({ beat_id, language, ...patch }) =>
207
+ ok(await rpc("set_beat_translation", { beat_id, language, ...patch }))
208
+ );
209
+
190
210
  // ── Copy ──────────────────────────────────────────────────────────────────────
191
211
 
192
212
  server.tool(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lotux-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Local MCP server that lets Claude create LOTUX concepts (fetch brand-DB entities, create concepts, fill scripts + copy). Talks to the LOTUX app with a personal token; no business logic or secrets live here.",
6
6
  "bin": {