
用于 Microsoft Dynamics 365 Business Central 的文字布局 MCP
概览
一个MCP(模型上下文协议)服务器,允许AI代理通过确定性、类型化的工具操作——而非自由手写的OOXML编辑,后者在文件格式中不可靠,单一丢失的元素会无声破坏文档。 在 Stdio 上:检查任何布局,验证(结构上,并通过真实的预演合并进行),渲染一个离线的模拟 PDF 预览,供代理查看,并编辑——字段、标签、重复表、嵌套细节行、表格结构、完整生命周期刷新。统一响应包络;不会跨越 MCP 边界;每个变异编辑在保存前都会经过验证,若会损坏文件则直接拒绝。 - 技能/al-word-layout/SKILL.md — 配套技能:预期代理工作流程(检查→编辑→验证→预览→沙盒验证)。- 技能/al-word-layout-design/SKILL。
概述(AI 翻译)
bc-word-layout-mcp
一个MCP(模型上下文协议)服务器,允许AI代理创建、编辑、验证和预览 Microsoft Word报告布局,适用于Microsoft Dynamics 365 Business Central,通过确定性, 类型工具——取代了自由操作的OOXML编辑,后者在一个文件格式中不可靠, 一个错置的元素无声地破坏了文档。
27个类型化MCP工具通过stdio:检查任何布局,验证(结构上,并通过真实的)验证 模拟合并),渲染一个离线的模拟PDF预览,代理可以查看,并编辑——字段, 标签、重复表、嵌套细节行、表格结构、完整生命周期刷新。统一 响应包络;没有任何东西会跨越MCP边界;每一次变异编辑都会在之前被验证 如果文件会损坏,则会被保存并直接拒绝。
skills/al-word-layout/SKILL.md— 伴随技能:the Intentiond Agent 工作流程(检查→编辑→验证→预览→沙箱验证)。skills/al-word-layout-design/SKILL.md—— 设计 技能:新布局应该是什么样子——原型骨骼和观察到的BC文档
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
bc-word-layout-mcp
An MCP (Model Context Protocol) server that lets AI agents create, edit, validate, and preview Microsoft Word report layouts for Microsoft Dynamics 365 Business Central through deterministic, typed tools — instead of free-hand OOXML editing, which is unreliable in a file format where a single misplaced element silently corrupts the document.
28 typed MCP tools over stdio: inspect any layout, validate it (structurally, and via a real dry-run merge), render an offline mock PDF preview the agent can look at, and author edits — fields, labels, repeater tables, nested detail rows, block repeaters, table structure, text and cell formatting, full lifecycle refresh. One uniform response envelope; nothing throws across the MCP boundary; every mutating edit is validated before it is saved and rejected outright if it would corrupt the file.
skills/al-word-layout/SKILL.md— the companion skill: the intended agent workflow (inspect → edit → validate → preview → sandbox verify).skills/al-word-layout-design/SKILL.md— the design skill: what a new layout should look like — archetype skeletons and observed BC document conventions, each tagged with the stock corpus layout or BC-verified build it comes from.skills/al-word-layout-from-design/SKILL.md— from a finished Word design plus the report’s empty layout to a bound layout: what to ask a consultant for, mapping sample text to dataset fields, binding it, checking it.skills/al-word-layout-composite/SKILL.md— composable layouts: what the body, header/footer and theme files contain, and the style contract between them.docs/SOLUTION-DESIGN.md— architecture and design rationale.docs/adr/— the deliberate design decisions, as ADRs.
Install
The server reads and writes layout files with your own permissions, at paths the calling agent supplies — point it only at repositories and layouts you trust, as you would any local build tool.
Option A — NuGet package via dnx (needs the .NET 10 SDK)
The .NET 10 SDK ships dnx, which fetches and
runs the packaged server on demand — no install step, version-pinnable.
VS Code (.vscode/mcp.json, or user-level mcp.json):
{
"servers": {
"bc-word-layout": {
"type": "stdio",
"command": "dnx",
"args": ["BcWordLayout.Mcp", "--yes"]
}
}
}
Claude Code (.mcp.json in a project, or user scope via the one-liner):
{
"mcpServers": {
"bc-word-layout": {
"command": "dnx",
"args": ["BcWordLayout.Mcp", "--yes"]
}
}
}
claude mcp add bc-word-layout -- dnx BcWordLayout.Mcp --yes
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add tkapitan/bc-word-layout-mcp