mcp-word 1.0.0 → 1.0.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/dist/index.js +3 -3
  2. package/package.json +16 -2
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { convertMarkdownToDocx } from "@mohtasham/md-to-docx";
13
13
  const MarkdownToDocxSchema = z.object({
14
14
  markdown: z.string().describe("要轉換的 Markdown 文字內容"),
15
15
  filePath: z.string().describe("要儲存的檔案路徑(包含檔名,例如:/path/to/file.docx)"),
16
- useGovernmentFormat: z.boolean().optional().default(false).describe("是否套用政府報告書格式(標題字體大小:H1=18pt, H2=14pt, H3=12pt"),
16
+ useGovernmentFormat: z.boolean().optional().default(true).describe("是否套用政府報告書格式(標題字體大小:H1=18pt, H2=14pt, H3=12pt)。預設為 true,除非使用者明確指定為 false。"),
17
17
  });
18
18
  // ============================================
19
19
  // Server 初始化
@@ -48,8 +48,8 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
48
48
  },
49
49
  useGovernmentFormat: {
50
50
  type: "boolean",
51
- description: "是否套用政府報告書格式樣式(標題字體大小:H1=18pt, H2=14pt, H3=12pt)。預設為 false。",
52
- default: false
51
+ description: "是否套用政府報告書格式樣式(標題字體大小:H1=18pt, H2=14pt, H3=12pt)。預設為 true,除非使用者明確指定為 false。",
52
+ default: true
53
53
  },
54
54
  },
55
55
  required: ["markdown", "filePath"],
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "mcp-word",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
+ "description": "MCP server for converting Markdown to DOCX with government report format support",
4
5
  "type": "module",
5
6
  "main": "dist/index.js",
6
7
  "bin": {
@@ -10,11 +11,24 @@
10
11
  "build": "tsc",
11
12
  "start": "node dist/index.js",
12
13
  "dev": "tsc --watch",
13
- "inspect": "npx @modelcontextprotocol/inspector node dist/index.js"
14
+ "inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
15
+ "prepublishOnly": "npm run build"
14
16
  },
15
17
  "files": [
16
18
  "dist"
17
19
  ],
20
+ "keywords": [
21
+ "mcp",
22
+ "model-context-protocol",
23
+ "markdown",
24
+ "docx",
25
+ "word",
26
+ "government-format",
27
+ "document-converter"
28
+ ],
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ },
18
32
  "dependencies": {
19
33
  "@modelcontextprotocol/sdk": "^1.25.2",
20
34
  "@mohtasham/md-to-docx": "^2.6.0",