@docxkit/mcp 0.3.0 → 0.4.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/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { AiTemplateInfo } from "@docxkit/ai";
2
2
  import { DocxPlugin, DocxSchema } from "@docxkit/core";
3
-
4
3
  //#region src/resources/schema.d.ts
5
4
  /**
6
5
  * MCP resource: DocxSchema JSON Schema.
package/dist/index.js CHANGED
@@ -418,6 +418,7 @@ function buildPluginHelp(plugin) {
418
418
  name: plugin.name,
419
419
  usageExample: {
420
420
  pageNumber: "{ type: \"plugin\", name: \"pageNumber\", options: {} }",
421
+ barcode: "{ type: \"plugin\", name: \"barcode\", options: { text: \"DOCX-KIT-2026\", format: \"code128\" } }",
421
422
  callout: "{ type: \"plugin\", name: \"callout\", options: { title: \"Note\", variant: \"info\", text: \"Important message\" } }",
422
423
  codeBlock: "{ type: \"plugin\", name: \"codeBlock\", options: { code: \"console.log('hello')\", language: \"javascript\" } }",
423
424
  coverPage: "{ type: \"plugin\", name: \"coverPage\", options: { title: \"Annual Report\", author: \"John Doe\", date: \"2026-06-12\" } }",
@@ -539,7 +540,7 @@ function validateSchema(schema) {
539
540
  path: "/content"
540
541
  });
541
542
  else if (Array.isArray(content)) {
542
- const validNodeTypes = new Set([
543
+ const validNodeTypes = /* @__PURE__ */ new Set([
543
544
  "bulletList",
544
545
  "heading",
545
546
  "hyperlink",
@@ -702,6 +703,7 @@ async function createDocxKitServer() {
702
703
  inputSchema: { filter: z.string().optional().describe("Optional name filter pattern") }
703
704
  }, async (input) => {
704
705
  const infoList = [
706
+ "barcode",
705
707
  "callout",
706
708
  "codeBlock",
707
709
  "coverPage",
@@ -735,6 +737,7 @@ async function createDocxKitServer() {
735
737
  };
736
738
  const usageExamples = {
737
739
  pageNumber: "{ type: \"plugin\", name: \"pageNumber\", options: {} }",
740
+ barcode: "{ type: \"plugin\", name: \"barcode\", options: { text: \"DOCX-KIT-2026\", format: \"code128\" } }",
738
741
  callout: "{ type: \"plugin\", name: \"callout\", options: { title: \"Note\", variant: \"info\", text: \"Important message\" } }",
739
742
  codeBlock: "{ type: \"plugin\", name: \"codeBlock\", options: { code: \"console.log('hello')\", language: \"javascript\" } }",
740
743
  coverPage: "{ type: \"plugin\", name: \"coverPage\", options: { title: \"Annual Report\", author: \"John Doe\", date: \"2026-06-12\" } }",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docxkit/mcp",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "description": "MCP server for docx-kit — AI agent integration",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -31,8 +31,8 @@
31
31
  "peerDependencies": {
32
32
  "@modelcontextprotocol/sdk": ">=1.0.0",
33
33
  "zod": ">=3.0.0",
34
- "@docxkit/ai": "0.3.0",
35
- "@docxkit/core": "0.3.0"
34
+ "@docxkit/ai": "0.4.0",
35
+ "@docxkit/core": "0.4.0"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@modelcontextprotocol/sdk": {