@intlayer/mcp 9.0.0-canary.0 → 9.0.0-canary.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { createMCPClient } from "@ai-sdk/mcp";
|
|
1
2
|
import { dirname as dirname$1 } from "node:path";
|
|
2
3
|
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { isESModule } from "@intlayer/config/utils";
|
|
4
|
-
import { createMCPClient } from "@ai-sdk/mcp";
|
|
5
5
|
|
|
6
6
|
//#region src/client/client.ts
|
|
7
7
|
const dirname = isESModule ? dirname$1(fileURLToPath(import.meta.url)) : __dirname;
|
|
@@ -3,11 +3,11 @@ import { loadCLITools } from "../tools/cli.mjs";
|
|
|
3
3
|
import { loadAPITools } from "../tools/api.mjs";
|
|
4
4
|
import { loadInstallSkillsTool } from "../tools/installSkills.mjs";
|
|
5
5
|
import { loadDocsTools } from "../tools/docs.mjs";
|
|
6
|
-
import z from "zod";
|
|
7
6
|
import { dirname as dirname$1, resolve } from "node:path";
|
|
8
|
-
import { readFileSync } from "node:fs";
|
|
9
7
|
import { fileURLToPath } from "node:url";
|
|
10
8
|
import { isESModule } from "@intlayer/config/utils";
|
|
9
|
+
import z from "zod";
|
|
10
|
+
import { readFileSync } from "node:fs";
|
|
11
11
|
|
|
12
12
|
//#region src/server/server.ts
|
|
13
13
|
const dirname = isESModule ? dirname$1(fileURLToPath(import.meta.url)) : __dirname;
|
package/dist/esm/tools/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { relative } from "node:path";
|
|
1
2
|
import { listProjects } from "@intlayer/chokidar/cli";
|
|
2
3
|
import z from "zod";
|
|
3
|
-
import { relative } from "node:path";
|
|
4
4
|
import { scanWebsite } from "@intlayer/chokidar/scan";
|
|
5
5
|
import { build, extract, fill, init, listContentDeclarationRows, listMissingTranslations, pull, push } from "@intlayer/cli";
|
|
6
6
|
import { ALL_LOCALES } from "@intlayer/types/allLocales";
|
package/dist/esm/tools/docs.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
import { getSearchAPI } from "@intlayer/api";
|
|
3
|
+
import { buildReviewReport, formatReviewReport } from "@intlayer/chokidar/docReview";
|
|
3
4
|
import { getDoc, getDocBySlug, getDocMetadataRecord, getDocsKeys } from "@intlayer/docs";
|
|
4
5
|
|
|
5
6
|
//#region src/tools/docs.ts
|
|
@@ -101,6 +102,42 @@ const loadDocsTools = async (server) => {
|
|
|
101
102
|
}] };
|
|
102
103
|
}
|
|
103
104
|
});
|
|
105
|
+
server.registerTool("review-doc-blocks", {
|
|
106
|
+
title: "Review Doc Blocks",
|
|
107
|
+
description: "Compare a base markdown document with its translation and return only the blocks that diverge (changed, missing, or stale), with their line ranges and content. Use this to translate a large document incrementally without retranslating it from scratch: it tells you exactly which blocks to (re)translate. Optionally pass the base line numbers that changed (for example from a git diff) so aligned-but-edited blocks are flagged for review.",
|
|
108
|
+
inputSchema: {
|
|
109
|
+
baseContent: z.string().describe("The base (source) markdown document, used as reference"),
|
|
110
|
+
targetContent: z.string().describe("The existing translated markdown document (may be empty for a brand new translation)"),
|
|
111
|
+
changedLines: z.array(z.number()).optional().describe("1-based line numbers that changed in the base document. When omitted, only inserted and deleted blocks are reported."),
|
|
112
|
+
baseLabel: z.string().optional().describe("Label for the base locale in the formatted output"),
|
|
113
|
+
targetLabel: z.string().optional().describe("Label for the target locale in the formatted output"),
|
|
114
|
+
format: z.enum(["text", "json"]).optional().describe("Output format. Defaults to \"text\".")
|
|
115
|
+
},
|
|
116
|
+
annotations: { readOnlyHint: true }
|
|
117
|
+
}, async ({ baseContent, targetContent, changedLines, baseLabel, targetLabel, format }) => {
|
|
118
|
+
try {
|
|
119
|
+
const report = buildReviewReport({
|
|
120
|
+
baseText: baseContent,
|
|
121
|
+
targetText: targetContent,
|
|
122
|
+
changedLines
|
|
123
|
+
});
|
|
124
|
+
return { content: [{
|
|
125
|
+
type: "text",
|
|
126
|
+
text: format === "json" ? JSON.stringify(report, null, 2) : formatReviewReport(report, {
|
|
127
|
+
baseLabel,
|
|
128
|
+
targetLabel
|
|
129
|
+
})
|
|
130
|
+
}] };
|
|
131
|
+
} catch (error) {
|
|
132
|
+
return {
|
|
133
|
+
content: [{
|
|
134
|
+
type: "text",
|
|
135
|
+
text: `Review doc blocks failed: ${error instanceof Error ? error.message : "An unknown error occurred"}`
|
|
136
|
+
}],
|
|
137
|
+
isError: true
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
104
141
|
};
|
|
105
142
|
|
|
106
143
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.mjs","names":[],"sources":["../../../src/tools/docs.ts"],"sourcesContent":["import { getSearchAPI } from '@intlayer/api';\nimport type { DocKey } from '@intlayer/docs';\nimport {\n getDoc,\n getDocBySlug,\n getDocMetadataRecord,\n getDocsKeys,\n} from '@intlayer/docs';\nimport z from 'zod';\n\nexport type ToolResult = {\n content: { type: string; text: string }[];\n isError?: boolean;\n};\nexport type McpServer = {\n registerTool(\n name: string,\n config: any,\n handler: (params: any) => Promise<ToolResult>\n ): void;\n};\n\ntype LoadDocsTools = (server: McpServer) => Promise<void>;\n\nexport const loadDocsTools: LoadDocsTools = async (server) => {\n const docsKeys = getDocsKeys();\n\n server.registerTool(\n 'get-doc-list',\n {\n title: 'Get Doc List',\n description:\n 'Get the list of docs names and their metadata to get more details about what doc to retrieve',\n inputSchema: {},\n annotations: {\n readOnlyHint: true,\n },\n },\n async () => {\n try {\n const docsMetadataRecord = await getDocMetadataRecord();\n\n return {\n content: [\n {\n type: 'text',\n text: JSON.stringify(docsMetadataRecord, null, 2),\n },\n ],\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Get doc list failed: ${errorMessage}` },\n ],\n };\n }\n }\n );\n\n server.registerTool(\n 'get-doc',\n {\n title: 'Get Doc by Key',\n description:\n 'Get a doc by his key. Example: `./docs/en/getting-started.md`. List all docs metadata first to get more details about what doc key to retrieve.',\n inputSchema: {\n docKey: z.enum(docsKeys as [string, ...string[]]),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({ docKey }) => {\n try {\n const doc = await getDoc(docKey as DocKey);\n return {\n content: [{ type: 'text', text: doc }],\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [{ type: 'text', text: `Get doc failed: ${errorMessage}` }],\n };\n }\n }\n );\n\n server.registerTool(\n 'get-doc-by-slug',\n {\n title: 'Get Doc by Slug',\n description:\n 'Get an array of docs by their slugs. If not slug is provided, return all docs (1.2Mb). List all docs metadata first to get more details about what doc to retrieve.',\n inputSchema: {\n slug: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\n 'Slug of the docs. If not provided, return all docs. If not provided, return all docs.'\n ),\n strict: z\n .boolean()\n .optional()\n .describe(\n 'Strict mode - only return docs that match all slugs, by excluding additional slugs'\n ),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({ slug, strict }) => {\n try {\n const doc = await getDocBySlug(slug ?? [], undefined, strict);\n return {\n content: doc.map((d) => ({ type: 'text', text: d })),\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Get doc by slug failed: ${errorMessage}` },\n ],\n };\n }\n }\n );\n\n server.registerTool(\n 'fetch-doc-chunks',\n {\n title: 'Fetch Doc Chunks',\n description:\n 'Fetch related doc chunks using keywords or questions. This tool will return the most relevant chunks of documentation based on the input query.',\n inputSchema: {\n query: z.string().describe('The keywords or question to search for'),\n limit: z\n .number()\n .optional()\n .describe('The number of chunks to retrieve (default: 10)'),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({ query, limit }) => {\n try {\n const { searchDoc } = getSearchAPI(undefined);\n const response = await searchDoc({\n input: query,\n limit: limit?.toString(),\n returnContent: 'true',\n });\n\n if (!response.data || !Array.isArray(response.data)) {\n return {\n content: [{ type: 'text', text: 'No relevant chunks found.' }],\n };\n }\n\n const chunks = response.data;\n\n return {\n content: chunks.map((chunk: any) => ({\n type: 'text',\n text: [\n `File: ${chunk.fileKey}`,\n `Title: ${chunk.docName}`,\n `URL: ${chunk.docUrl}`,\n `Chunk: ${chunk.chunkNumber}`,\n `Content:`,\n chunk.content,\n ].join('\\n'),\n })),\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Fetch doc chunks failed: ${errorMessage}` },\n ],\n };\n }\n }\n );\n};\n"],"mappings":";;;;;AAwBA,MAAa,gBAA+B,OAAO,WAAW;CAC5D,MAAM,WAAW,aAAa;AAE9B,QAAO,aACL,gBACA;EACE,OAAO;EACP,aACE;EACF,aAAa,EAAE;EACf,aAAa,EACX,cAAc,MACf;EACF,EACD,YAAY;AACV,MAAI;GACF,MAAM,qBAAqB,MAAM,sBAAsB;AAEvD,UAAO,EACL,SAAS,CACP;IACE,MAAM;IACN,MAAM,KAAK,UAAU,oBAAoB,MAAM,EAAE;IAClD,CACF,EACF;WACM,OAAO;AAGd,UAAO,EACL,SAAS,CACP;IAAE,MAAM;IAAQ,MAAM,wBAHxB,iBAAiB,QAAQ,MAAM,UAAU;IAGuB,CAC/D,EACF;;GAGN;AAED,QAAO,aACL,WACA;EACE,OAAO;EACP,aACE;EACF,aAAa,EACX,QAAQ,EAAE,KAAK,SAAkC,EAClD;EACD,aAAa,EACX,cAAc,MACf;EACF,EACD,OAAO,EAAE,aAAa;AACpB,MAAI;AAEF,UAAO,EACL,SAAS,CAAC;IAAE,MAAM;IAAQ,MAAM,MAFhB,OAAO,OAAiB;IAEH,CAAC,EACvC;WACM,OAAO;AAGd,UAAO,EACL,SAAS,CAAC;IAAE,MAAM;IAAQ,MAAM,mBAFhC,iBAAiB,QAAQ,MAAM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KACA,MAAM;KACP,CAAC,KAAK,KAAK;IACb,EAAE,EACJ;WACM,OAAO;AAGd,UAAO,EACL,SAAS,CACP;IAAE,MAAM;IAAQ,MAAM,4BAHxB,iBAAiB,QAAQ,MAAM,UAAU;IAG2B,CACnE,EACF;;GAGN"}
|
|
1
|
+
{"version":3,"file":"docs.mjs","names":[],"sources":["../../../src/tools/docs.ts"],"sourcesContent":["import { getSearchAPI } from '@intlayer/api';\nimport {\n buildReviewReport,\n formatReviewReport,\n} from '@intlayer/chokidar/docReview';\nimport type { DocKey } from '@intlayer/docs';\nimport {\n getDoc,\n getDocBySlug,\n getDocMetadataRecord,\n getDocsKeys,\n} from '@intlayer/docs';\nimport z from 'zod';\n\nexport type ToolResult = {\n content: { type: string; text: string }[];\n isError?: boolean;\n};\nexport type McpServer = {\n registerTool(\n name: string,\n config: any,\n handler: (params: any) => Promise<ToolResult>\n ): void;\n};\n\ntype LoadDocsTools = (server: McpServer) => Promise<void>;\n\nexport const loadDocsTools: LoadDocsTools = async (server) => {\n const docsKeys = getDocsKeys();\n\n server.registerTool(\n 'get-doc-list',\n {\n title: 'Get Doc List',\n description:\n 'Get the list of docs names and their metadata to get more details about what doc to retrieve',\n inputSchema: {},\n annotations: {\n readOnlyHint: true,\n },\n },\n async () => {\n try {\n const docsMetadataRecord = await getDocMetadataRecord();\n\n return {\n content: [\n {\n type: 'text',\n text: JSON.stringify(docsMetadataRecord, null, 2),\n },\n ],\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Get doc list failed: ${errorMessage}` },\n ],\n };\n }\n }\n );\n\n server.registerTool(\n 'get-doc',\n {\n title: 'Get Doc by Key',\n description:\n 'Get a doc by his key. Example: `./docs/en/getting-started.md`. List all docs metadata first to get more details about what doc key to retrieve.',\n inputSchema: {\n docKey: z.enum(docsKeys as [string, ...string[]]),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({ docKey }) => {\n try {\n const doc = await getDoc(docKey as DocKey);\n return {\n content: [{ type: 'text', text: doc }],\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [{ type: 'text', text: `Get doc failed: ${errorMessage}` }],\n };\n }\n }\n );\n\n server.registerTool(\n 'get-doc-by-slug',\n {\n title: 'Get Doc by Slug',\n description:\n 'Get an array of docs by their slugs. If not slug is provided, return all docs (1.2Mb). List all docs metadata first to get more details about what doc to retrieve.',\n inputSchema: {\n slug: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\n 'Slug of the docs. If not provided, return all docs. If not provided, return all docs.'\n ),\n strict: z\n .boolean()\n .optional()\n .describe(\n 'Strict mode - only return docs that match all slugs, by excluding additional slugs'\n ),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({ slug, strict }) => {\n try {\n const doc = await getDocBySlug(slug ?? [], undefined, strict);\n return {\n content: doc.map((d) => ({ type: 'text', text: d })),\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Get doc by slug failed: ${errorMessage}` },\n ],\n };\n }\n }\n );\n\n server.registerTool(\n 'fetch-doc-chunks',\n {\n title: 'Fetch Doc Chunks',\n description:\n 'Fetch related doc chunks using keywords or questions. This tool will return the most relevant chunks of documentation based on the input query.',\n inputSchema: {\n query: z.string().describe('The keywords or question to search for'),\n limit: z\n .number()\n .optional()\n .describe('The number of chunks to retrieve (default: 10)'),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({ query, limit }) => {\n try {\n const { searchDoc } = getSearchAPI(undefined);\n const response = await searchDoc({\n input: query,\n limit: limit?.toString(),\n returnContent: 'true',\n });\n\n if (!response.data || !Array.isArray(response.data)) {\n return {\n content: [{ type: 'text', text: 'No relevant chunks found.' }],\n };\n }\n\n const chunks = response.data;\n\n return {\n content: chunks.map((chunk: any) => ({\n type: 'text',\n text: [\n `File: ${chunk.fileKey}`,\n `Title: ${chunk.docName}`,\n `URL: ${chunk.docUrl}`,\n `Chunk: ${chunk.chunkNumber}`,\n `Content:`,\n chunk.content,\n ].join('\\n'),\n })),\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Fetch doc chunks failed: ${errorMessage}` },\n ],\n };\n }\n }\n );\n\n server.registerTool(\n 'review-doc-blocks',\n {\n title: 'Review Doc Blocks',\n description:\n 'Compare a base markdown document with its translation and return only the blocks that diverge (changed, missing, or stale), with their line ranges and content. Use this to translate a large document incrementally without retranslating it from scratch: it tells you exactly which blocks to (re)translate. Optionally pass the base line numbers that changed (for example from a git diff) so aligned-but-edited blocks are flagged for review.',\n inputSchema: {\n baseContent: z\n .string()\n .describe('The base (source) markdown document, used as reference'),\n targetContent: z\n .string()\n .describe(\n 'The existing translated markdown document (may be empty for a brand new translation)'\n ),\n changedLines: z\n .array(z.number())\n .optional()\n .describe(\n '1-based line numbers that changed in the base document. When omitted, only inserted and deleted blocks are reported.'\n ),\n baseLabel: z\n .string()\n .optional()\n .describe('Label for the base locale in the formatted output'),\n targetLabel: z\n .string()\n .optional()\n .describe('Label for the target locale in the formatted output'),\n format: z\n .enum(['text', 'json'])\n .optional()\n .describe('Output format. Defaults to \"text\".'),\n },\n annotations: {\n readOnlyHint: true,\n },\n },\n async ({\n baseContent,\n targetContent,\n changedLines,\n baseLabel,\n targetLabel,\n format,\n }) => {\n try {\n const report = buildReviewReport({\n baseText: baseContent,\n targetText: targetContent,\n changedLines,\n });\n\n const text =\n format === 'json'\n ? JSON.stringify(report, null, 2)\n : formatReviewReport(report, { baseLabel, targetLabel });\n\n return {\n content: [{ type: 'text', text }],\n };\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : 'An unknown error occurred';\n return {\n content: [\n { type: 'text', text: `Review doc blocks failed: ${errorMessage}` },\n ],\n isError: true,\n };\n }\n }\n );\n};\n"],"mappings":";;;;;;AA4BA,MAAa,gBAA+B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sDAAsD;GAClE,QAAQ,EACL,KAAK,CAAC,QAAQ,OAAO,CAAC,CACtB,UAAU,CACV,SAAS,uCAAqC;GAClD;EACD,aAAa,EACX,cAAc,MACf;EACF,EACD,OAAO,EACL,aACA,eACA,cACA,WACA,aACA,aACI;AACJ,MAAI;GACF,MAAM,SAAS,kBAAkB;IAC/B,UAAU;IACV,YAAY;IACZ;IACD,CAAC;AAOF,UAAO,EACL,SAAS,CAAC;IAAE,MAAM;IAAQ,MAL1B,WAAW,SACP,KAAK,UAAU,QAAQ,MAAM,EAAE,GAC/B,mBAAmB,QAAQ;KAAE;KAAW;KAAa,CAAC;IAG1B,CAAC,EAClC;WACM,OAAO;AAGd,UAAO;IACL,SAAS,CACP;KAAE,MAAM;KAAQ,MAAM,6BAHxB,iBAAiB,QAAQ,MAAM,UAAU;KAG4B,CACpE;IACD,SAAS;IACV;;GAGN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","names":[],"sources":["../../../src/tools/docs.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"docs.d.ts","names":[],"sources":["../../../src/tools/docs.ts"],"mappings":";KAcY,UAAA;EACV,OAAA;IAAW,IAAA;IAAc,IAAA;EAAA;EACzB,OAAA;AAAA;AAAA,KAEU,SAAA;EACV,YAAA,CACE,IAAA,UACA,MAAA,OACA,OAAA,GAAU,MAAA,UAAgB,OAAA,CAAQ,UAAA;AAAA;AAAA,KAIjC,aAAA,IAAiB,MAAA,EAAQ,SAAA,KAAc,OAAA;AAAA,cAE/B,aAAA,EAAe,aAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/mcp",
|
|
3
|
-
"version": "9.0.0-canary.
|
|
3
|
+
"version": "9.0.0-canary.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer MCP server. Handle MCP to help IDE to use Intlayer. It build, fill, pull, push, dictionaries",
|
|
6
6
|
"keywords": [
|
|
@@ -114,18 +114,18 @@
|
|
|
114
114
|
"@ai-sdk/mcp": "1.0.46",
|
|
115
115
|
"@fastify/cors": "11.2.0",
|
|
116
116
|
"@fastify/helmet": "13.0.2",
|
|
117
|
-
"@intlayer/api": "9.0.0-canary.
|
|
118
|
-
"@intlayer/chokidar": "9.0.0-canary.
|
|
119
|
-
"@intlayer/cli": "9.0.0-canary.
|
|
120
|
-
"@intlayer/config": "9.0.0-canary.
|
|
121
|
-
"@intlayer/docs": "
|
|
122
|
-
"@intlayer/types": "9.0.0-canary.
|
|
117
|
+
"@intlayer/api": "9.0.0-canary.2",
|
|
118
|
+
"@intlayer/chokidar": "9.0.0-canary.2",
|
|
119
|
+
"@intlayer/cli": "9.0.0-canary.2",
|
|
120
|
+
"@intlayer/config": "9.0.0-canary.2",
|
|
121
|
+
"@intlayer/docs": "9.0.0-canary.2",
|
|
122
|
+
"@intlayer/types": "9.0.0-canary.2",
|
|
123
123
|
"dotenv": "17.4.2",
|
|
124
124
|
"fastify": "5.8.5",
|
|
125
125
|
"zod": "4.4.3"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@intlayer/types": "9.0.0-canary.
|
|
128
|
+
"@intlayer/types": "9.0.0-canary.2",
|
|
129
129
|
"@types/node": "25.9.3",
|
|
130
130
|
"@utils/ts-config": "1.0.4",
|
|
131
131
|
"@utils/ts-config-types": "1.0.4",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"rimraf": "6.1.3",
|
|
134
134
|
"tsdown": "0.21.10",
|
|
135
135
|
"typescript": "6.0.3",
|
|
136
|
-
"vitest": "4.1.
|
|
136
|
+
"vitest": "4.1.9"
|
|
137
137
|
},
|
|
138
138
|
"engines": {
|
|
139
139
|
"node": ">=14.18"
|