DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-docx-mcp

d

dsh-docx-mcp

Manifest valid

Zero-dependency MCP stdio server that generates real .docx files from a JSON spec — Chinese office-automation vertical for DeepSeek Harness.

hasBundlePatch

dsh-docx-mcp

零依赖的 MCP stdio 服务,根据 JSON 规格生成真正可打开的 .docx 文件(标题 / 段落 / 项目符号列表 / 表格)。 属于 helibeiqi 的 DeepSeek Harness 插件矩阵中的 中文办公自动化 垂直。

  • 纯 Node 实现,手写 OOXML + store-zip,无需 npm install、无第三方依赖 —— 与 dsh-quant-data-mcp 同源的「自包含、抗重装」哲学。
  • 通过 dsh 的 MCP 桥接(@deepseek-ai/dsh-mcp-client)注册为 docx 工具,供 dsh agent 直接调用。

工具:docx_generate

参数类型说明
titlestring文档大标题(自动作为一级标题插入开头)
filenamestring输出文件名(可含或不含 .docx)
outDirstring输出目录,默认 ~/dsh-docx-output
blocksarray内容块数组(见下)

blocks 内容块

type字段说明
headinglevel(1-3), text标题
paragraphruns(数组 {text,bold}) 或 text,bold段落;runs 支持同一段落内混合加粗
bulletitems(string[]) 或 text项目符号列表
tablerows(string[][])表格,每行是一组单元格

调用示例

{
  "title": "员工劳动合同续签通知书",
  "blocks": [
    { "type": "paragraph", "runs": [
      { "text": "致:", "bold": false },
      { "text": "张三", "bold": true },
      { "text": "(工号 E000123)" }
    ]},
    { "type": "heading", "level": 2, "text": "一、续签事项" },
    { "type": "bullet", "items": ["合同期限:3 年", "试用期:无", "工时制度:标准工时"] },
    { "type": "heading", "level": 2, "text": "二、薪资结构" },
    { "type": "table", "rows": [
      ["项目", "占比"], ["基本工资", "40%"], ["岗位工资", "40%"], ["绩效工资", "20%"]
    ]}
  ]
}

返回 { "path": "...", "bytes": N, "blocks": N }。


与 dsh 集成

本仓库是一个 dsh bundle:package.json 声明 dsh.bundle.patch 指向 cordis.patch.yml, 后者以 - insert: 形式向 @deepseek-ai/dsh-mcp-client 注册一个 docx MCP server 行。

路径约定:当前 cordis.patch.yml 中 args / cwd 写的是作者本机的绝对路径 C:\Users\helib\dsh-docx-mcp\...。部署到其他机器时,请改为该机器上 docx-mcp-server.mjs 的实际路径; 或通过 QUANT_MCP_NODE 环境变量指定 Node 运行时(与 dsh-quant-data-mcp 同款硬化写法,可兼容 managed-node 版本目录漂移)。


本地运行 / 自测

# 直接起 MCP 服务(stdio)
node docx-mcp-server.mjs

# 自测:生成 selftest.docx 并校验为合法 OOXML 包
node _selftest.mjs

Roadmap

  • docx_fill_template:对含 {{占位符}} 的 .docx 模板做字段填充(HR 合同 / 通知书高频场景)。
  • 页眉页脚、多级编号、字体 / 对齐等段落属性。
  • 与 dsh-excel-kit 联动(表格数据 → 文档)。

许可

MIT © helibeiqi —— 详见 dsh-ecosystem。

Comments

Loading…

From the same category

archify

by tt-a1i

Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.

Workflow & AutomationTools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 72.7k

↓ 5.1k/wk

MIT

JavaScript

Sep 27, 2026

dsh plugin --profile agent add @tt-a1i/archify-dsh

DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.

Tools & CapabilitiesManifest valid

★ 41.7k

↓ 292/wk

MIT

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-reactive-resume

by Tencent

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

Development & InfrastructureTools & CapabilitiesManifest valid

★ 30.6k

↓ 1.1k/wk

NOASSERTION

Go

Sep 27, 2026

dsh plugin --profile web add @wxg-prc-cpg/dsh-weknora

by anywhere-labs

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

Tools & CapabilitiesManifest valid

★ 29.2k

↓ 195/wk

MIT

TypeScript

Sep 27, 2026

dsh plugin --profile web add dsh-plugin-desktop

deepseek-harness-desktop is a interface plugin for DeepSeek Harness. See the repository documentation for its documented capabilities.

Tools & CapabilitiesUI & Experience

★ 28.6k

MIT

Index only — not installable

by titanwings

Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skill).

Tools & Capabilities

★ 25.1k

MIT

TypeScript

Sep 22, 2026

Index only — not installable