@verbaly/mcp 0.80.0 → 0.81.0
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/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as createVerbalyMcp } from "./server-
|
|
2
|
+
import { t as createVerbalyMcp } from "./server-CZVD3Se-.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
// src/cli.ts
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createVerbalyMcp } from "./server-
|
|
1
|
+
export { t as createVerbalyMcp } from "./server-CZVD3Se-.js";
|
|
@@ -503,7 +503,7 @@ function registerTranslate(server, ctx) {
|
|
|
503
503
|
function registerWrap(server, ctx) {
|
|
504
504
|
server.registerTool("verbaly_wrap", {
|
|
505
505
|
title: "Wrap hardcoded JSX text",
|
|
506
|
-
description: "Find hardcoded user-visible text in JSX/TSX files and wrap it in a t tagged template so the compiler can extract it (what `verbaly wrap` does). This is how an existing codebase is onboarded, and verbaly_extract then adds the wrapped texts to the catalogs. It only reports unless write is set, and text already wrapped is skipped, so running it again is safe. Text it cannot wrap safely (a sentence split across markup, an expression rendering JSX) is listed as needing a human. A file that does not bind t is never written, because the rewrite would not compile. It comes back in blocked, with
|
|
506
|
+
description: "Find hardcoded user-visible text in JSX/TSX files and wrap it in a t tagged template so the compiler can extract it (what `verbaly wrap` does). This is how an existing codebase is onboarded, and verbaly_extract then adds the wrapped texts to the catalogs. It only reports unless write is set, and text already wrapped is skipped, so running it again is safe. Text it cannot wrap safely (a sentence split across markup, an expression rendering JSX) is listed as needing a human. A file that does not bind t is never written, because the rewrite would not compile. It comes back in blocked, with the binding this project needs there, so you can add it and run again.",
|
|
507
507
|
inputSchema: {
|
|
508
508
|
root: rootInput,
|
|
509
509
|
write: z.boolean().optional().describe("Apply the rewrites instead of only reporting")
|
|
@@ -528,7 +528,8 @@ function registerWrap(server, ctx) {
|
|
|
528
528
|
blocked: z.array(z.object({
|
|
529
529
|
file: z.string(),
|
|
530
530
|
texts: z.number(),
|
|
531
|
-
client: z.boolean()
|
|
531
|
+
client: z.boolean(),
|
|
532
|
+
binding: z.string().describe("What to add so t is in scope, for this framework")
|
|
532
533
|
}))
|
|
533
534
|
},
|
|
534
535
|
annotations: writes(true)
|
|
@@ -549,10 +550,7 @@ function registerWrap(server, ctx) {
|
|
|
549
550
|
}
|
|
550
551
|
if (result.blocked.length > 0) {
|
|
551
552
|
lines.push(` nothing written in ${counted(result.blocked.length, "file")} with no t in scope:`);
|
|
552
|
-
for (const entry of result.blocked) {
|
|
553
|
-
const how = entry.client ? "\"use client\", so const t = useT()" : "no \"use client\"";
|
|
554
|
-
lines.push(` ${entry.file} ${counted(entry.texts, "text")}, ${how}`);
|
|
555
|
-
}
|
|
553
|
+
for (const entry of result.blocked) lines.push(` ${entry.file} ${counted(entry.texts, "text")}, ${entry.binding}`);
|
|
556
554
|
lines.push(" next: bind t there, run verbaly_wrap with write again, then verbaly_extract");
|
|
557
555
|
} else if (write && done.length > 0) lines.push(" next: run verbaly_extract");
|
|
558
556
|
return reply(lines.join("\n"), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"description": "MCP server for Verbaly: diagnosis, onboarding, extraction, coverage and machine translation as tools for coding agents.",
|
|
5
5
|
"mcpName": "io.github.AronSoto/verbaly",
|
|
6
6
|
"keywords": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
52
|
-
"@verbaly/compiler": "^0.
|
|
52
|
+
"@verbaly/compiler": "^0.81.0",
|
|
53
53
|
"zod": "^4.6.7"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|