
passwerk
io.github.ShahriarBijoy由 GitHub 账号 ShahriarBijoy 发布v0.1.1更新于 Oct 24, 2026
Offline EU Battery Passport compiler: ingest documents, map, validate (IDTA 02035), emit AASX.
概览
离线 MCP 服务器,将供应商文档转换为经校验的欧盟数字电池护照(AAS/AASX 格式),并给出缺口报告。
- 可以做什么
- Passwerk 可读取杂乱的供应商文档(PDF、XLSX、DOCX、CSV、TXT),抽取并映射数据点,依据 IDTA 02035 模板和欧盟委员会数据点矩阵进行校验,并输出 AAS JSON、AASX 或 HTML 格式的数字电池护照,以及数据载体(UID、GS1 Digital Link、二维码)。它还会生成带法规引用的缺口报告,列出仍缺失的必填数据点,并可按电池类型、角色和上市日期查询义务。服务器通过 stdio 或 Streamable HTTP 提供十二个工具,并附带参考资源和工作流提示。
- 适用场景
- 当供应商或制造商需要回应欧盟电池护照数据请求,并要从 ERP 导出、表格和 PDF 中汇总约 90 个数据点时适用。它适合缺少面向 OEM 的商业工具的二三级供应商和中小企业,也适合希望由智能体或 CI 任务驱动“导入—映射—校验—修正—输出”流程的团队。
- 运行要求
- 作为本地 Node.js 进程运行(Node 22.13 或更高版本),通过 npx @passwerk/server 启动,也可使用 Docker 镜像。无需 API 密钥和账号。可选环境变量:PASSWERK_ROOT 指定 ingest_documents 可读取、emit_passport 可写入的目录(默认为工作目录);PASSWERK_LOG_LEVEL 设置 info 或 debug 日志输出到 stderr。Docker 版本使用 PASSWERK_AUTH_TOKEN。仅支持桌面端,无网页可执行版本。
安装
在 SourceWeft 中
- 打开 控制台中的 passwerk,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Passwerk
Offline EU Battery Passport Compiler.
Drop in a supplier's messy documents (BOMs, Excel exports, energy bills, supplier declarations). Get back a conformant Digital Battery Passport in the official AAS format (IDTA 02035-1 to -7) plus a legally cited gap report of what is still missing.
100 % offline. Zero API keys. Agent-agnostic: an MCP server for Claude Desktop, Claude Code, Codex, Cursor and OpenCode, a scriptable CLI, a plain TypeScript library, and a client-side web app with QR preview.
[passwerk in Claude Desktop: from five supplier documents to the gap report and the workbench]
Claude Desktop with the .mcpb bundle: the model ingests the Musterwerk documents, maps and validates, then opens the workbench inside the chat. Full-resolution MP4, 71 seconds.
Quick start
Let your agent install it. Paste this into Claude Code, Codex, Cursor, OpenCode or any other coding agent. It checks Node, picks the right commands for its host, installs passwerk and tells you how to check that it works:
Or run the commands yourself (Node >= 22.13):
Start a new session afterwards, then ask the agent to call list_capabilities.
Claude Desktop: download passwerk-<version>.mcpb from the
releases page and open it. Claude Desktop
installs the server, asks for your document folder, and the twelve passwerk tools are ready
after a restart. Details in docs/install/claude-desktop.md.
Everything else:
Host snippets for Codex, Cursor, OpenCode and plain HTTP are in docs/install. The agent workflow (ingest, map, validate, fix, emit) is taught by the bundled skill in skills/passwerk.
Why
Regulation (EU) 2023/1542, Art. 77: from 18 February 2027 every EV, light-means-of-transport and industrial >2 kWh battery placed on the EU market needs a Digital Battery Passport. The passport is roughly 90 data points scattered across a supplier's ERP, spreadsheets and PDFs. Every commercial platform sells to OEMs and Tier-1s. passwerk is the on-ramp for the Tier-2 and Mittelstand supplier who receives the data request and has no tooling to answer it.
Conformance is measured, not asserted. Every emitted golden passport is replayed through the
official aas-test-engines oracle on every CI run (docs/CONFORMANCE.md);
the badge reports verdict parity with that oracle, expected failures included. Mapping quality
on unseen supplier documents is scored in docs/EVALUATION.md. A
sovereignty test and a --network none Docker job prove zero network calls. None of this is a
certification of battery-passport compliance; the template (L3) and plausibility (L4) checks
are passwerk's own.
Packages
rules, core, server and cli make no network call and no model call, ever. The two
exceptions are opt-in and bring-your-own-key: the web app's mapping assist, which only ever
sees labels and values and only ever names attributes, and the passwerk chat demo loop.
Point the assist at http://localhost:11434/v1 and it runs against Ollama without a byte
leaving the building.
Command line
The CLI runs the same tools as the MCP server, in-process and offline, with exit codes a CI
job can gate on (audit: 0 valid, 1 warnings, 2 invalid; gaps: 0 when no required data
point is open).
Web app
apps/web runs the whole pipeline in the browser as six steps: project, documents, facts,
review, gaps and export. Documents never leave the browser; the autosave keeps your decisions,
facts and proposals in IndexedDB, never the uploaded files. Inside Claude Desktop the same
workbench runs as a fixed-height instrument in the host's iframe.
Development
Requires Node 22.13 or newer and pnpm 10.
Contributor instructions for humans and coding agents live in AGENTS.md. Architecture and
scope are in docs/BUILD_PLAN.md, every non-obvious choice in docs/DECISIONS.md.
Security and privacy
PRIVACY.md says what passwerk sends and stores, with the tests that enforce it: nothing
leaves the machine unless you switch on one of the two optional model features. SECURITY.md
says how to report a vulnerability privately and where the trust boundaries are, the document
parsers first.
Not legal advice
passwerk cites the regulation and the standards it implements, but it is a tool, not a
lawyer. Every legal claim it emits carries its sources and an isNotLegalAdvice: true flag.
License
Apache-2.0. See LICENSE and NOTICE. Bundled third-party artefacts are documented with
their sources, versions, checksums and licences in packages/rules/PROVENANCE.md.
来源:README.md,提交 cfb2c40
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分