Skip to main content

cscec-gwdoc-mcp

中建企业公文 Word(.docx)生成 stdio MCP 服务。可被 uvx 安装运行,适配阿里云百炼函数计算(FC)代码包(uvx)托管模式,再由中建 AI 等外部 MCP 客户端经百炼接入。

工具

generate_official_doc:根据结构化公文内容生成 .docx。

参数 类型 说明
title str 公文标题(必填)
sections list[dict] 章节列表,每项 {heading, paragraphs, subheadings?}
document_number str 文号
recipient str 主送单位
introduction str 导语
attachments list[str] 附件名称
issuer str 发文单位
department str 发文部门(代章)
issue_date str 发文日期
cc str 抄送
document_type str 公文类型,默认「通报」

运行

uvx cscec-gwdoc-mcp

服务以 stdio 方式启动。配置了对象存储(OSS)环境变量时,生成的 .docx 优先上传并在文字结果里回 https 下载链接;未配置或上传失败时,回退为 MCP 内嵌二进制资源(base64)。OSS 变量见 DEPLOY.md。

本地开发自测

uv venv
uv pip install -e .
python -m cscec_gwdoc_mcp.server

数据与排版说明

  • 生成器优先套用包内范文的页面设置、Word 样式及页眉页脚,再重建正文。
  • 未提供的文号、日期、单位、统计数字、整改时限等应标记为待补充,人工核对后再正式发文。
  • 「方正小标宋简体」「仿宋_GB2312」「楷体_GB2312」等字体需目标环境安装,缺字体会被自动替换。

Metadata

Release files for cscec-gwdoc-mcp 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for cscec-gwdoc-mcp 0.3.2
File Interpreter ABI Platform Actions
cscec_gwdoc_mcp-0.3.2-py3-none-any.whl Python 3 none any Details for cscec_gwdoc_mcp-0.3.2-py3-none-any.whl

Release files / cscec_gwdoc_mcp-0.3.2-py3-none-any.whl

Download URL cscec_gwdoc_mcp-0.3.2-py3-none-any.whl
Size 347.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06372403d4fff421b10dc53b2a4f26fdee477411fec19a9ee4d1c89f5aca8ab9
BLAKE2b-256 checksum
How to use checksums
9005ce9dc79e8d27161429fa545f5924943cea86292866a9faad1eccbf890f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for cscec-gwdoc-mcp 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page