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 方式启动;生成的 .docx 作为 MCP 内嵌二进制资源(base64)随工具结果回传,不提供公网下载链接。
本地开发自测
uv venv
uv pip install -e .
python -m cscec_gwdoc_mcp.server
数据与排版说明
- 生成器优先套用包内范文的页面设置、Word 样式及页眉页脚,再重建正文。
- 未提供的文号、日期、单位、统计数字、整改时限等应标记为待补充,人工核对后再正式发文。
- 「方正小标宋简体」「仿宋_GB2312」「楷体_GB2312」等字体需目标环境安装,缺字体会被自动替换。
Metadata
Release files for cscec-gwdoc-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cscec_gwdoc_mcp-0.1.0.tar.gz | 334.0 kB | Without provenance | Details for cscec_gwdoc_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cscec_gwdoc_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cscec_gwdoc_mcp-0.1.0-py3-none-any.whl |
Total release size: 668.8 kB
Release files / cscec_gwdoc_mcp-0.1.0.tar.gz
| Download URL | cscec_gwdoc_mcp-0.1.0.tar.gz |
|---|---|
| Size | 334.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c598b1e76d4243808602b615a32878bcbdcf8d59daed24ec45656dc130f140a6
|
|
BLAKE2b-256 checksum How to use checksums |
b36b10321ba391b5655c850a87b05d53c8dc50359e2c459b9e29ca802a7df0df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / cscec_gwdoc_mcp-0.1.0-py3-none-any.whl
| Download URL | cscec_gwdoc_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 334.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0692f3bde710bdcb82aafced1a205462ebae667bbb4f97e623553c6c8318dd69
|
|
BLAKE2b-256 checksum How to use checksums |
9589279830f4809907bf593b66cbed8ef94cd918990554c537262979358b7394
|
| 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.1.0
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.