Skip to main content

鼎尖软件官网客户问答 MCP(Python / uvx)

鼎尖 ERP 第三方签名鉴权,调用 projectm/projectmDataItem/save 保存官网「客户问答」。

安装与运行

开发

cd mcp/dj-website-qa/dj-website-qa-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
cp -n .env.example .env
# 编辑 .env 填入 ERP_*
python -m dj_website_qa_mcp

用户侧(推荐 uvx)

先发布到 PyPI,再:

uvx dj-website-qa-mcp

MCP Tools

Tool 说明
save_website_qa 保存/更新官网客户问答(title + content 必填)

鉴权说明

与 erp-property-mcp 相同,无需 Bearer Token:

变量 对应第三方参数 说明
ERP_BASE_URL - 如 https://www.dingjianyun.com/dingjianerp/
ERP_SECRET secret 第三方 secret
ERP_CU_ID thirdCuId 控制单元
ERP_USER_ID thirdUserId 用户
ERP_DC thirdDc 数据中心
DJ_WEBSITE_PROGRAMA_ITEM_ID programaItem.id 客户问答栏目,默认 fa910000-0000-4000-8000-000000000001

签名步骤:

  1. 将 secret, thirdtimestamp, thirdCuId, thirdUserId, thirdDc, apiPath 字典序排序后拼接
  2. 做 SHA1 hex,写入请求头 djthirdsign
  3. apiPath = projectm/projectmDataItem/save(不含 host 与 query)
  4. URL 仅带 ?djrqformat=pcjson

测试

pytest

Release files for dj-website-qa-mcp 1.0.0

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

Source distribution (sdist)

Source distribution for dj-website-qa-mcp 1.0.0
File Size Uploaded
dj_website_qa_mcp-1.0.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dj-website-qa-mcp 1.0.0
File Interpreter ABI Platform
dj_website_qa_mcp-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / dj_website_qa_mcp-1.0.0.tar.gz

Download URL dj_website_qa_mcp-1.0.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4e11321c2e87af08248624f29368a6071f2fb4c3d3d5ca38674f21a3dc45ce20
BLAKE2b-256 checksum
How to use checksums
d826f472db640b0b706ff5e4c8041741a25bd93e45fbe517b6abd96bc65968d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / dj_website_qa_mcp-1.0.0-py3-none-any.whl

Download URL dj_website_qa_mcp-1.0.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a123081575a33fe9610a1663a86f7617d0e03c524e084fd754a2c8a2c98623f9
BLAKE2b-256 checksum
How to use checksums
000d894c3712e414a9d3ac5893a99f6c6934bc3a3c4615cd59b7676cb0d52397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

1.2.0

2 release files

1.1.0

2 release files

This release

1.0.0 This release

2 release files

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