Agent skill

Kingdee Query

by WaHaiLong in WaHaiLong/KingdeeMCP

基于已连接的 kingdee-mcp(第三方开源金蝶云星空 MCP 服务器,非金蝶官方出品),用自然语言查询与操作金蝶 ERP:销售/采购订单、即时库存、物料档案、客户/供应商、单据提交/审核/下推、生产/成本/资产等。当用户提到"金蝶""查金蝶""金蝶销售订单/库存/物料"等 ERP 查询或操作需求时触发。

MITAuto-check passedAgent Workflows

Install Kingdee Query

skills CLI
$ npx skills add WaHaiLong/KingdeeMCP --skill kingdee-query -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WaHaiLong/KingdeeMCP kingdee-query --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/WaHaiLong/KingdeeMCP.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill/kingdee-query .claude/skills/kingdee-query && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kingdee-query
GitHub stars
105
Token cost
~907 tokens
SKILL.md length
213 words
Files
2
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

基于已连接的 kingdee-mcp(第三方开源金蝶云星空 MCP 服务器,非金蝶官方出品),用自然语言查询与操作金蝶 ERP:销售/采购订单、即时库存、物料档案、客户/供应商、单据提交/审核/下推、生产/成本/资产等。当用户提到"金蝶""查金蝶""金蝶销售订单/库存/物料"等 ERP 查询或操作需求时触发。

  • Works in 5 steps: 先探查后查询:不知道 form_id 时,用… → 只读优先:查询用 kingdee_query_* 系列;看单据全貌用… → 写操作谨慎:kingdee_save_bill /… → …
  • Tasks that involve MCP servers
  • SKILL.md covers 一、前置条件(务必先确认), 二、触发示例, 三、可用工具(kingdee-mcp,共 86 个,按业务域) and 四、使用约定, plus 2 more sections
  • Calls pip and uvx; needs KINGDEE_PASSWORD

What it does

Kingdee Query is an agent skill from WaHaiLong/KingdeeMCP. 基于已连接的 kingdee-mcp(第三方开源金蝶云星空 MCP 服务器,非金蝶官方出品),用自然语言查询与操作金蝶 ERP:销售/采购订单、即时库存、物料档案、客户/供应商、单据提交/审核/下推、生产/成本/资产等。当用户提到"金蝶""查金蝶""金蝶销售订单/库存/物料"等 ERP 查询或操作需求时触发。

Its SKILL.md is about 910 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol and Python. The repository describes itself as: 金蝶云星空 MCP Server:让 Claude/Cursor 等 AI 助手用自然语言直接查询、操作 ERP(采购/销售/库存/财务等 97 个工具). The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers

Example prompts

  • “金蝶销售订单/库存/物料”
  • “/kingdee-query”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 先探查后查询:不知道 form_id 时,用 kingdee_list_forms 搜索表单、用 kingdee_get_fields 取字段;通用查询用 kingdee_query_bills(需传 form_id)。
  2. 只读优先:查询用 kingdee_query_* 系列;看单据全貌用 kingdee_view_bill。
  3. 写操作谨慎:kingdee_save_bill / kingdee_submit_bills / kingdee_audit_bills / kingdee_push_and_audit 等会改动 ERP…
  4. 中文呈现:结果用中文结构化输出(表格/要点),金额、数量、日期等保留原值并注明单位。
  5. 错误处理:登录失败多为账号无权限或密码错误;连接超时先检查 KINGDEE_SERVER_URL 是否含 /k3cloud/。

What it can do on your machine

Read from SKILL.md and the folder at commit 2c44e6f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip
    • uvx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip and uvx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KINGDEE_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kingdee Query loads about 907 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 213 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~907

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WaHaiLong/KingdeeMCP at commit 2c44e6f, republished under its MIT licence (© WaHaiLong). 213 words, ~907 tokens.

Download SKILL.mdSave it as .claude/skills/kingdee-query/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
kingdee-query
description
基于已连接的 kingdee-mcp(第三方开源金蝶云星空 MCP 服务器,非金蝶官方出品),用自然语言查询与操作金蝶 ERP:销售/采购订单、即时库存、物料档案、客户/供应商、单据提交/审核/下推、生产/成本/资产等。当用户提到"金蝶""查金蝶""金蝶销售订单/库存/物料"等 ERP 查询或操作需求时触发。
slug
kingdee-query
displayName
金蝶云星空查询与操作助手
version
1.0.0

金蝶云星空 查询与操作助手 (kingdee-query)

本技能不自己连接金蝶,它只是"导航员":依赖名为 kingdee 的 MCP 服务器已在 WorkBuddy 中连接,并把用户的自然语言翻译成 kingdee-mcp 的工具调用。

一、前置条件(务必先确认)

  • 入口:WorkBuddy 左侧 插件 → MCP 服务器 → 配置 MCP,确认 kingdee 已添加且状态为已连接(工具列表正常加载)。
  • 必需环境变量:
    • KINGDEE_SERVER_URL:金蝶服务器地址,必须包含 /k3cloud/ 后缀
    • KINGDEE_ACCT_ID:账套 ID
    • KINGDEE_USERNAME:金蝶账号(建议专用集成账号,不要 Administrator)
    • KINGDEE_PASSWORD:账号密码(ValidateUser 登录,必填)
  • 可选:
    • KINGDEE_LCID:语言区,默认 2052(简体中文)
    • MCP_SQLSERVER_*:SQL Server 主机/端口/库/账号,启用数据库探查工具
  • 认证方式:金蝶 WebAPI 账号密码(ValidateUser),无需 AppID / AppSecret。
  • 若尚未配置,请把仓库 examples/workbuddy-mcp-config.example.json 中的 kingdee 片段加入用户级 ~/.workbuddy/mcp.json(替换占位符),重启 WorkBuddy 后再用本技能。

二、触发示例

  • "查一下本月已审核的销售订单"
  • "物料 MAT001 的即时库存是多少"
  • "显示客户 C001 的所有销售订单"
  • "帮我新建一张采购订单,供应商 S001,物料 MAT001,数量 100,单价 10.5"
  • "审核这几张采购入库单:12345, 12346, 12347"
  • "采购订单在数据库里对应哪张表"(需配置 MCP_SQLSERVER_*)

三、可用工具(kingdee-mcp,共 86 个,按业务域)

业务域代表性工具说明
通用单据kingdee_save_bill · kingdee_submit_bills · kingdee_audit_bills · kingdee_validate_bill · kingdee_push_and_audit新建/提交/审核/下推
生产制造kingdee_query_production_orders · kingdee_save_production_order · kingdee_query_mrp_result生产订单、MRP
成本核算kingdee_query_material_cost · kingdee_query_cost_calculation · kingdee_save_cost_adjustment材料成本、成本计算
固定资产kingdee_query_fixed_asset · kingdee_save_asset · kingdee_query_asset_depreciation资产卡片、折旧
库存kingdee_query_inventory · kingdee_query_stock_bills · kingdee_push_stock_transfer即时库存、出入库
审计合规kingdee_query_operation_logs · kingdee_query_change_log · kingdee_create_and_audit操作/变更日志
采购kingdee_query_purchase_orders · kingdee_query_purchase_requisitions采购订单/申请
销售kingdee_query_sale_orders · kingdee_query_sale_quotations销售订单/报价
工作流kingdee_query_pending_approvals · kingdee_workflow_approve待审/审批
基础资料kingdee_query_materials · kingdee_query_partners · kingdee_query_user物料/往来/用户
元数据探查kingdee_list_forms · kingdee_get_fields · kingdee_get_bill_template · kingdee_discover_tables表单/字段/库表
系统/统计kingdee_query_system_config · kingdee_usage_stats · kingdee_usage_report配置/用量

完整 86 个工具见 src/kingdee_mcp/server.py。元数据探查含 4 个 SQL Server 工具(kingdee_discover_tables / kingdee_discover_columns / kingdee_describe_table / kingdee_discover_metadata_candidates),需配置 MCP_SQLSERVER_*。

四、使用约定

  1. 先探查后查询:不知道 form_id 时,用 kingdee_list_forms 搜索表单、用 kingdee_get_fields 取字段;通用查询用 kingdee_query_bills(需传 form_id)。
  2. 只读优先:查询用 kingdee_query_* 系列;看单据全貌用 kingdee_view_bill。
  3. 写操作谨慎:kingdee_save_bill / kingdee_submit_bills / kingdee_audit_bills / kingdee_push_and_audit 等会改动 ERP 数据,执行前必须与用户确认关键参数(单据类型、数量/金额、目标单号),必要时二次确认。
  4. 中文呈现:结果用中文结构化输出(表格/要点),金额、数量、日期等保留原值并注明单位。
  5. 错误处理:登录失败多为账号无权限或密码错误;连接超时先检查 KINGDEE_SERVER_URL 是否含 /k3cloud/。

五、常见 form_id 速查

PUR_PurchaseOrder 采购订单 · SAL_SaleOrder 销售订单 · STK_InStock 采购入库单 · SAL_OUTSTOCK 销售出库单 · STK_TransferDirect 直接调拨单 · STK_Inventory 即时库存 · BD_Material 物料 · BD_Customer 客户 · BD_Supplier 供应商

六、依赖

  • 本技能依赖 kingdee-mcp MCP 服务器(PyPI:pip install kingdee-mcp,或 uvx kingdee-mcp)。
  • 安装与配置见仓库根目录 README.md 与 PUBLISH.md。

© WaHaiLong, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skill/kingdee-query of WaHaiLong/KingdeeMCP.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit 2c44e6f

Compare with similar skills

Kingdee Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kingdee Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kingdee Query this skillWaHaiLong/KingdeeMCP105—~907Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MemPalace Setup and OperationMemPalace/mempalace60k—~2.2kAutomated safety check: PassMIT
FastmcpTommy-yw/RunbookHermes5463 repos~2.1kAutomated safety check: PassMIT
Fastmcp Client CLIPrefectHQ/fastmcp28k—~823Automated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Installs and configures MemPalace as a private local palace, a shared-brain hub or a client of an existing hub, including MCP registration and version-correct initialization.

    60k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Fastmcp

    Tommy-yw/RunbookHermes

    Build, test, inspect, install, and deploy MCP servers with FastMCP in Python.

    546 GitHub starsUsed in 3 repos~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Fastmcp Client CLI

    PrefectHQ/fastmcp

    Query and invoke tools on MCP servers using fastmcp list and fastmcp call.

    28k GitHub stars~823 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Migrate To Archestra

    archestra-ai/archestra

    Migrate an existing agentic PoC/pilot (Claude Code project files, MCP configs, hooks, local tools, openclaw config, or similar hand-rolled setup artifacts) into an Archestra instance.

    4.4k GitHub stars~2.5k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from WaHaiLong/KingdeeMCP

  • Kingdee MCP Dev

    WaHaiLong/KingdeeMCP

    Knowledge base for the Kingdee MCP Dev Squad. An agent skill from WaHaiLong/KingdeeMCP.

    105 GitHub stars~853 tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Kingdee Query

What does Kingdee Query do?

基于已连接的 kingdee-mcp(第三方开源金蝶云星空 MCP 服务器,非金蝶官方出品),用自然语言查询与操作金蝶 ERP:销售/采购订单、即时库存、物料档案、客户/供应商、单据提交/审核/下推、生产/成本/资产等。当用户提到"金蝶""查金蝶""金蝶销售订单/库存/物料"等 ERP 查询或操作需求时触发。. Kingdee Query is an agent skill from WaHaiLong/KingdeeMCP.

When should I use Kingdee Query?

Kingdee Query fits situations like: tasks that involve MCP servers.

How do I install Kingdee Query in Claude Code?

Run `npx skills add WaHaiLong/KingdeeMCP --skill kingdee-query -a claude-code`. Or copy the skill folder (skill/kingdee-query in WaHaiLong/KingdeeMCP) into .claude/skills/kingdee-query in your project. Claude Code loads it when a task matches its description.

How do I install Kingdee Query in Codex?

Run `npx skills add WaHaiLong/KingdeeMCP --skill kingdee-query -a codex`. Or copy the skill folder (skill/kingdee-query in WaHaiLong/KingdeeMCP) into .agents/skills/kingdee-query in your project. Codex loads it when a task matches its description.

Can I use Kingdee Query in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WaHaiLong/KingdeeMCP --skill kingdee-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kingdee-query, .gemini/skills/kingdee-query, .github/skills/kingdee-query and .opencode/skills/kingdee-query in your project.

What does Kingdee Query need to run?

Going by SKILL.md and its folder, Kingdee Query needs the command-line tools its instructions call (pip and uvx) and credentials named KINGDEE_PASSWORD. Our summary lists: Python 3.

Does Kingdee Query access the network?

SKILL.md contains no URLs. Its commands use pip and uvx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Kingdee Query safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kingdee Query use?

Kingdee Query is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kingdee Query use?

About 907 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kingdee Query?

Skills that share tags, products or a category with Kingdee Query: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MemPalace Setup and Operation (MemPalace/mempalace, 60k stars) and Fastmcp (Tommy-yw/RunbookHermes, 546 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kingdee Query?

WaHaiLong (a GitHub user) maintains it in WaHaiLong/KingdeeMCP, which has 105 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 11, 2026.

Source: WaHaiLong/KingdeeMCP on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.