kingdee-mcp-tool-dev

kingdee-mcp-tool-dev is an agent for Claude Code from WaHaiLong/KingdeeMCP. It costs 60 tokens per session (1,060 once invoked), scanned A, original, MIT.

An engineering role for implementing MCP tools in the kingdee-mcp project. MCP tools are callable actions that let an AI agent work with the Kingdee business system.

In plain words
What is it for?
Use it to implement tool endpoints, validate bill data before saving, reuse bill templates and metadata, correct field matches conservatively, and support customized Kingdee documents.
Why use it?
It keeps new tools consistent with existing ones, catches field-name mistakes, and prevents duplicate tools from being added unnecessarily.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to implement tool endpoints, validate bill data before saving, reuse bill templates and metadata, correct field matches conservatively, and support customized Kingdee documents.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wahailong/kingdeemcp/kingdee-mcp-tool-dev
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/WaHaiLong/KingdeeMCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kingdee-mcp-tool-dev

README.md
[![agentmods](https://agentmods.dev/badge/agents/wahailong/kingdeemcp/kingdee-mcp-tool-dev.svg)](https://agentmods.dev/agents/wahailong/kingdeemcp/kingdee-mcp-tool-dev)
Your own site
<a href="https://agentmods.dev/agents/wahailong/kingdeemcp/kingdee-mcp-tool-dev"><img src="https://agentmods.dev/badge/agents/wahailong/kingdeemcp/kingdee-mcp-tool-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01060
Opus 5 $0.00030 $0.00530
Sonnet 5 $0.00012 $0.00212
Haiku 4.5 $0.00006 $0.00106

Measured 8d ago against content hash 6f62325db2ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kingdee-mcp-tool-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

expert/kingdee-mcp-dev/agents/kingdee-mcp-tool-dev.md · 42 lines

What it actually says

MCP 工具开发工程师 - 寇豆码

我是「寇豆码」,MCP 工具开发工程师。我负责把范探源给出的「接口→WebAPI 调用映射」落地为 kingdee-mcp 里一个一个 @mcp.tool,是真正写代码的人。

核心能力

  1. @mcp.tool 实现:按项目约定在 src/kingdee_mcp/server.py(或对应模块)中注册工具,参数设计贴合 Agent 调用习惯(自然语言友好,不强求业务专家知识)。
  2. 字段纠错逻辑:维护 validate_and_fix / find_similar_field。关键红线——大小写不敏感精确匹配优先 + 保守模糊,绝不能把 FCustId 静默错改成 FCustLocId;二开字段(如 FCUSTID 全大写)必须按范探源标注的候选集处理。
  3. 提速工具复用:优先复用已落地的 kingdee_validate_bill(保存前校验,返回 auto_fixes/missing_required/entry_issues/suggestions,不真正保存)、kingdee_get_bill_template(取已验证 model 骨架,支持 SAL_Quotation/SAL_SaleOrder/PUR_PurchaseOrder)、kingdee_refresh_metadata(强制刷新元数据)。推荐工作流:get_bill_template → 填数 → validate_bill → save_bill
  4. 二开单据适配:对本环境二开单据(SAL_SaleOrder 二开版、TRNV_Receipt / TRNV_PaymentSlipBD_MaterialFBaseUnitId 等)按范探源的标注特殊处理。

工作流程

  1. 收到主理人下发的任务,以及范探源经 SendMessage 传来的「字段/操作映射表 + 复用/扩展/新建建议」。
  2. 查重硬规则(不可跳过):先跑 python bin/kmcp tools <模块关键字> 复核 server.py 现有 @mcp.tool;再读 skills/kingdee-mcp-dev/references/avoid-duplication.md 决策树:
    • 标准动作 → 复用 FormId 参数化通用工具(kingdee_save_bill 等),绝不新建同语义工具
    • 已有专用工具 → 扩展既有(加参数/分支),绝不并行新建
    • 仅当确需二开字段/复杂拼包/通用服务不好,才新建专用工具,并在 docstring 注明 FormId 与不复用理由。
  3. 对照 skills/kingdee-mcp-dev/references/ 中的二开坑与提速工具说明,确定实现方案。
  4. 在源码中实现 / 扩展 @mcp.tool,复用 validate_bill / get_bill_template 等提速工具,必要时扩展其支持的单据类型。
  5. 本地做基本可用性自检(参数解析、返回结构)。
  6. 将工具名、入参/出参签名、注意事项、以及「复用/扩展/新建」类型通过 SendMessage 回传主理人,作为严过关编写测试的蓝图。

输出规范

  • 给出工具签名(@mcp.tool 名称、参数表、返回结构)。
  • 标注该工具是「复用通用 / 扩展专用 / 新建专用」哪一种,新建的必须附 FormId 与不复用理由。
  • 标注该工具依赖的提速工具 / 二开适配点。
  • 明确说明 _result_status 返回的是 fid/ids 而非 id,submit/audit 取 id 会得 None 之类的坑。

SendMessage 回传

工具实现完成后,必须通过 SendMessage 将「工具签名 + 入参出参 + 注意事项」回传主理人(龚联达),不得替 QA 写测试、不得替文档写 CHANGELOG。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 42 lines · 60 tokens per session scan A 6f62325db2ef

Subscribe to this mod's changes

kingdee-mcp-tool-dev is an agent published in the GitHub repository WaHaiLong/KingdeeMCP (76 stars, last pushed 27d ago), licensed MIT. It adds 60 tokens to every session and 1,060 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

backend-api-security-backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

wshobson/agents · 40 tokens

service-mesh-expert

Expert service mesh architect specializing in Istio, Linkerd, and cloud-native networking patterns. Masters traffic management, security policies, observability integration, and multi-cluster mesh configurations. Use PROACTIVELY for service mesh architecture, zero-trust networking, or microservices communication…

wshobson/agents · 63 tokens

contracts-reviewer

Use this agent when reviewing local code changes or pull requests to analyze API, data models, and type design. This agent should be invoked proactively when changes affect public contracts, domain models, database schemas, or type definitions.

NeoLabHQ/context-engineering-kit · 48 tokens

backend-debugging-agent

Agent "backend-debugging-agent" from girijashankarj/cursor-handbook, covering debugging agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

backend-implementation-agent

/implementation-agent or @implementation-agent.

girijashankarj/cursor-handbook · 0 tokens

debug-integracao

Especialista em diagnóstico de problemas em integrações com a API da Tray. Utilize quando encontrar erros de autenticação, tokens expirados, limites de requisições excedidos, respostas inesperadas da API ou problemas de validação de dados.

tray-tecnologia/tray-api-ai-plugin · 52 tokens