Skip to main content

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

鼎尖 ERP 第三方签名鉴权,查询 + 保存官网「客户问答」。

  • 查询:projectm/projectmDataItem/listData
  • 保存: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)

uvx dj-website-qa-mcp

MCP Tools

Tool 说明
list_website_qa 查询已有问答;支持关键词过滤与标题查重
save_website_qa 保存/更新;新建默认查重,疑似重复会拦截

鉴权说明

与 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 / list 的 id 客户问答栏目默认 fa910000-0000-4000-8000-000000000001

签名步骤:

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

注意:列表侧已发布多为 status=2,保存侧发布为 status=1,勿混用。

测试

pytest

Release files for dj-website-qa-mcp 1.1.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.1.0
File Size Uploaded
dj_website_qa_mcp-1.1.0.tar.gz 10.4 kB Details

Built distribution (wheel)

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

Total release size: 21.4 kB

Release files / dj_website_qa_mcp-1.1.0.tar.gz

Download URL dj_website_qa_mcp-1.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5864b15a4113ad0fcef27627b9dbd4551067cf7abf07e4579d4ad4db0c663d1c
BLAKE2b-256 checksum
How to use checksums
e7c798a034b2b53edddb705c004cfa39ea3995bfb4fbfafeef798b41f876672e
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.1.0-py3-none-any.whl

Download URL dj_website_qa_mcp-1.1.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5aac461eac5ec91996022bf71b8075783a31e815c71633510a9fe16b03fe2a4
BLAKE2b-256 checksum
How to use checksums
32f42bd8b3d998488cb884824dc951c01607fa2b88debdfe1bfefcec68945f60
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

This release

1.1.0 This release

2 release files

1.0.0

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