@verbaly/mcp 0.83.0 → 0.84.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/README.md +0 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{server-DuHEfzpG.js → server-Dv6NISrJ.js} +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://www.npmjs.com/package/@verbaly/mcp"><img src="https://img.shields.io/npm/v/@verbaly/mcp?logo=npm&color=cb3837" alt="npm version" /></a>
|
|
9
9
|
<img src="https://img.shields.io/node/v/@verbaly/mcp?logo=nodedotjs&logoColor=white&color=5fa04e" alt="supported Node.js versions" />
|
|
10
|
-
<a href="https://github.com/AronSoto/verbaly/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/AronSoto/verbaly/ci.yml?logo=github&label=CI" alt="CI" /></a>
|
|
11
10
|
<a href="https://scorecard.dev/viewer/?uri=github.com/AronSoto/verbaly"><img src="https://api.scorecard.dev/projects/github.com/AronSoto/verbaly/badge" alt="OpenSSF Scorecard" /></a>
|
|
12
11
|
<a href="https://www.npmjs.com/package/@verbaly/mcp#provenance"><img src="https://img.shields.io/badge/provenance-SLSA%20v1-3fb950?logo=npm" alt="published with npm provenance" /></a>
|
|
13
12
|
<a href="https://github.com/AronSoto/verbaly/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/@verbaly/mcp?color=blue" alt="MIT" /></a>
|
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-Dv6NISrJ.js";
|
|
3
3
|
import { formatCliError } from "@verbaly/compiler";
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
import { parseArgs } from "node:util";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createVerbalyMcp } from "./server-
|
|
1
|
+
export { t as createVerbalyMcp } from "./server-Dv6NISrJ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
-
import { check, counted, doctor, effectiveDrafts, extractProject, formatCheckResult, formatCheckWarnings, formatDoctorEntry, formatDoctorHealth, formatFinding, formatStatusResult, formatTranslateFailures, formatWrapResult, init, loadCatalogs, loadConfig, loadState, readState, relativeCheck, shippedCatalogs, status, syncProject, translateProject, wrapProject, writeDrafts } from "@verbaly/compiler";
|
|
3
|
+
import { check, counted, doctor, effectiveDrafts, extractProject, formatCheckResult, formatCheckWarnings, formatDoctorEntry, formatDoctorHealth, formatFinding, formatStatusResult, formatTranslateFailures, formatWrapResult, init, loadCatalogs, loadConfig, loadState, readState, relativeCheck, shippedCatalogs, status, syncProject, targetLocales, translateProject, wrapProject, writeDrafts } from "@verbaly/compiler";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { relative } from "node:path";
|
|
6
6
|
// src/tools/shared.ts
|
|
@@ -101,7 +101,7 @@ function registerDrafts(server, ctx) {
|
|
|
101
101
|
description: "Every machine translation still waiting for a human, each with the source text and what the provider wrote, so a person can read both and decide. Read-only. Approving is deliberately not a tool here and never will be: a machine translation is unreviewed by definition, so accepting one is `verbaly review --approve`, run by a human. For how many drafts each locale has, verbaly_status is enough; verbaly_missing lists them next to the gate.",
|
|
102
102
|
inputSchema: {
|
|
103
103
|
root: rootInput,
|
|
104
|
-
locales: z.array(z.string()).optional().describe("Target locales (default: all)")
|
|
104
|
+
locales: z.array(z.string()).optional().describe("Target locales (default: all). One the project does not have is an error")
|
|
105
105
|
},
|
|
106
106
|
outputSchema: {
|
|
107
107
|
total: z.number(),
|
|
@@ -118,7 +118,7 @@ function registerDrafts(server, ctx) {
|
|
|
118
118
|
const catalogs = loadCatalogs(cfg);
|
|
119
119
|
const source = shippedCatalogs(cfg, catalogs, await extractProject(cfg))[cfg.sourceLocale] ?? {};
|
|
120
120
|
const pending = effectiveDrafts(loadState(cfg).drafts, catalogs);
|
|
121
|
-
const wanted =
|
|
121
|
+
const wanted = targetLocales(cfg, locales);
|
|
122
122
|
const entries = Object.entries(pending).filter(([locale]) => wanted.includes(locale)).flatMap(([locale, keys]) => keys.map((key) => ({
|
|
123
123
|
locale,
|
|
124
124
|
key,
|
|
@@ -389,7 +389,7 @@ function registerStatus(server, ctx) {
|
|
|
389
389
|
function registerTranslate(server, ctx) {
|
|
390
390
|
server.registerTool("verbaly_translate", {
|
|
391
391
|
title: "Machine-translate missing entries",
|
|
392
|
-
description: "Fill missing translations with the configured provider (what `verbaly translate` does). The default provider is Claude, which needs @anthropic-ai/sdk and ANTHROPIC_API_KEY. Every new translation is saved as a draft awaiting human review (`verbaly review`), which no tool here can approve. A batch the provider never answers is reported in failed and everything else stays written, so a retry only asks for what is left. dryRun lists what would be translated without calling the provider. To see what is missing first, use verbaly_missing; to save translations you wrote yourself, verbaly_write_drafts.",
|
|
392
|
+
description: "Fill missing translations with the configured provider (what `verbaly translate` does). The default provider is Claude, which needs @anthropic-ai/sdk and ANTHROPIC_API_KEY. Every new translation is saved as a draft awaiting human review (`verbaly review`), which no tool here can approve. A batch the provider never answers is reported in failed and everything else stays written, so a retry only asks for what is left. dryRun lists what would be translated without calling the provider. A locale the project does not have is an error that lists the ones it has, never an empty result. To see what is missing first, use verbaly_missing; to save translations you wrote yourself, verbaly_write_drafts.",
|
|
393
393
|
inputSchema: {
|
|
394
394
|
root: rootInput,
|
|
395
395
|
locales: z.array(z.string()).optional().describe("Target locales (default: all)"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.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.84.0",
|
|
53
53
|
"zod": "^4.6.7"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|