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.

概覽

AI 產生的概覽

離線 MCP 伺服器,將供應商文件轉換為通過驗證的歐盟數位電池護照(AAS/AASX 格式),並產出缺口報告。

可以做什麼
Passwerk 可讀取雜亂的供應商文件(PDF、XLSX、DOCX、CSV、TXT),擷取並對應資料點,依 IDTA 02035 範本與歐盟執委會資料點矩陣進行驗證,並輸出 AAS JSON、AASX 或 HTML 格式的數位電池護照,以及資料載體(UID、GS1 Digital Link、QR 碼)。它也會產生附法規引用的缺口報告,列出仍缺少的必填資料點,並可依電池類型、角色與上市日期查詢義務。伺服器透過 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。僅支援桌面端,沒有網頁可執行版本。
安裝前請注意
伺服器會從 PASSWERK_ROOT 指定的目錄讀取文件並寫入護照,請將其指向你願意曝露的資料夾。預設為離線運作;唯一的網路用途是兩項選用、自備金鑰的模型功能(網頁應用程式的對應輔助與聊天示範),可指向本機 Ollama 端點。輸出不構成合規認證,也不構成法律意見。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 passwerk,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Passwerk

Offline EU Battery Passport Compiler.

[CI] [AAS L2 oracle parity]

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:

Install passwerk for me by followinghttps://raw.githubusercontent.com/ShahriarBijoy/passwerk/main/docs/install/agent.md

Or run the commands yourself (Node >= 22.13):

HostSkill and tools (plugin)Tools only
Claude Codeclaude plugin marketplace add ShahriarBijoy/passwerk
claude plugin install passwerk@passwerk
claude mcp add passwerk --scope user -- npx -y @passwerk/server
Codexcodex plugin marketplace add ShahriarBijoy/passwerk
codex plugin add passwerk@passwerk
codex mcp add passwerk -- npx -y @passwerk/server

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:

sh
npx -y @passwerk/server            # MCP server over stdio, offline, no keysnpx -y @passwerk/cli audit passport.draft.jsondocker run -e PASSWERK_AUTH_TOKEN=$(openssl rand -hex 32) -p 127.0.0.1:3777:3777 ghcr.io/shahriarbijoy/passwerk

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

PackageRole
@passwerk/rulesBundled, checksummed IDTA 02035 templates, AAS schemas, EC data-point matrix, attribute knowledge base (DE/EN), legal timeline
@passwerk/coreMCP-free library: ingest (PDF, XLSX, DOCX, CSV, TXT), extract, map, validate (4 layers), gap report, emit AAS JSON / AASX / HTML, data carrier (UID, GS1 Digital Link, QR)
@passwerk/serverMCP server over stdio and Streamable HTTP: twelve tools, reference resources, workflow prompts, and the workbench as an MCP App
@passwerk/clipasswerk audit | extract | emit | gaps | obligations | carrier | tools | chat with CI-friendly exit codes (reference)
@passwerk/webClient-side web app: project, documents, facts, review, gaps, export
@passwerk/mcp-appThe same workbench inside Claude Desktop's iframe, opened by review_passport

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).

sh
passwerk obligations --type EV --role manufacturer --placed-on-market 2027-06-01passwerk extract ./supplier-docs --category EV --out facts.jsonpasswerk audit passport.draft.jsonpasswerk gaps passport.draft.json --lang depasswerk emit passport.draft.json --out ./passportpasswerk carrier passport.draft.json --out passport.qr.svg

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.

sh
pnpm install && pnpm buildpnpm --filter @passwerk/web dev

Development

Requires Node 22.13 or newer and pnpm 10.

sh
pnpm installpnpm check      # lint + typecheck + testpnpm buildpnpm oracle     # replay golden passports through aas-test-engines (needs uv)

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分