
Ecz Id Mcp Verifier
io.github.Ecocitizenz由 GitHub 账号 Ecocitizenz 发布v0.9.0更新于 Oct 24, 2026
Local-first, read-only ECZ-ID verifier over MCP (stdio): checks, reports, explains, routes.
概览
一个本地运行、只读的 MCP 服务器,可对目标进行分类并检查其公开 ECZ-ID Resolver 状态,返回确定性结果、解释与后续指引。
- 可以做什么
- 对目标(ECZ-ID、MCP 服务器 URL、代理清单、API URL、GitHub 仓库、npm 或 PyPI 包、容器镜像)进行分类,返回包含结果状态和原因代码的规范结果,可离线运行且不发起网络请求。对有效的 ECZ-ID 以只读 GET 重新检查公开 Resolver 状态,并报告是否存在公开证明。用公开安全的措辞解释已有的结果状态或原因代码。根据声明的操作者模式,将调用方引导至操作者设置或开发者指引。
- 适用场景
- 适合让助手对包、仓库、镜像、API 或 ECZ-ID 进行分类,并报告是否存在公开的 ECZ-ID Resolver 证明,例如用作 CI 门禁或快速状态检查。它不是安全扫描,也不判断目标是否安全。
- 运行要求
- 以本地 stdio 进程形式从 npm 包运行,需要 Node.js 以及 npx 或全局安装。无需账户、登录、API 密钥或环境变量。仅在查询 Resolver 时需要网络访问;离线模式会跳过查询。
安装
在 SourceWeft 中
- 打开 控制台中的 Ecz Id Mcp Verifier,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ECZ-ID MCP Verifier(TM)
Check public ECZ-ID Resolver posture from the CLI, CI or an MCP host. No sign-in, source upload or telemetry. Local policy decides.
A local-first, privacy-first tool that classifies a target, checks its public ECZ-ID Resolver posture where applicable, reports a deterministic result, explains it, and routes you onward. It only reads, reports, and routes — it never writes truth, activates proof, marks anything BOUND, performs checkout, or inspects artifact contents.
Quick start
check is an accepted leading subcommand; --target does the work. Add --report for the human-readable soft report, --policy REQUIRE to fail closed when proof is missing, or --offline for classification and routing with no network call.
First useful result in under a minute: run the command above, read a real JSON result, and follow the routed next action. No sign-in, no account, no config. Install it with a plain
npm install @ecocitizenz/ecz-id-mcp-verifier; pin an exact version only when you need reproducibility (see Reproducible version pinning).
Representative result
Real output for --target ECZ-GB-A93K7Q --policy OPEN --offline (representative excerpt; the full JSON also includes setup_handoff, request_to_resolve and additional boundary flags):
NO_PUBLIC_RESOLVER_PROOF_FOUND here means no public proof was located (offline run); it does not mean the target is unsafe. Local policy decides.
Use it from
Next actions: check a target · add to CI · add to an MCP host · inspect public Resolver proof · improve the posture of a target you operate · build an integration.
Common workflows
Supported target shapes
The classifier is deterministic (regex only — no LLM, no network). A public Resolver lookup is performed only for a valid ECZ-ID; every other shape is classified and routed but not resolved, and no shape has its artifact contents, manifest, or runtime protocol inspected.
For a non-ECZ-ID shape the verifier returns NO_PUBLIC_RESOLVER_PROOF_FOUND with resolver_url: null (it never fabricates a Resolver path). Classification is not security inspection.
What this package does
- Classifies a target deterministically (no LLM).
- For a valid ECZ-ID, GETs the public Resolver machine projection (read-only) and reports its posture.
- Reports a canonical
ResultStateand uppercaseReasonCodes. - Emits JSON, an optional human-readable soft report, an optional local Action Envelope (routing-only metadata), and an optional SARIF 2.1.0 file.
- Exposes deterministic exit codes for CI integration.
- Ships a GitHub Action wrapper and a read-only MCP stdio server.
What this package does not do
- It does not write truth.
- It does not activate proof.
- It does not mark anything BOUND.
- It does not inspect artifact contents, manifests, or runtime protocol of any target.
- It does not certify the safety of any server, agent, product, or API.
- It does not approve agents.
- It does not decide global trust.
- It does not upload source code.
- It does not upload secrets, API keys, prompts, or tool payloads.
- It does not emit telemetry, analytics, Sentry, or PostHog beacons.
- It does not call Backend/Core.
- It does not write to the Resolver.
- It does not call TrustOps as a verifier backend.
- It does not perform checkout.
- It does not create a client-side trust badge.
- It does not issue a reusable trust credential.
- It does not treat npm or Official MCP Registry presence as ECZ-ID proof.
- It does not infer safety or approval state for any third party.
- It does not run autonomous LLM or agent behaviour.
Privacy
The verifier:
- no source upload,
- no secrets upload (no API keys, no environment variables),
- never uploads prompts or tool payloads,
- never uploads private logs or raw telemetry,
- never uploads customer data,
- never sends a body to the Resolver (GET-only),
- never sends private headers,
- never emits analytics, Sentry, or PostHog beacons,
- never phones home,
- never auto-updates.
Network is opt-out via --offline / --no-network. No sign-in is required for normal checks. The public Resolver remains the proof surface; package and Registry metadata are discovery only, never proof.
Install
Install from the public registry (this gives you the current release):
Or run it on demand without installing:
From source (contributors):
CLI
Two equivalent command names are installed: ecz-id-mcp-verifier and ecz-mcp-verify (both run the same CLI). A third binary, ecz-id-mcp-server, starts the MCP stdio server.
Options
CLI examples
Self-test, capabilities, and MCP config
Three deterministic, offline helpers make setup and integration fast — none require a target, a network call, or a secret:
--capabilities returns a stable capability_profile (ecz-resolver-posture-v1) with the supported target types, result states, outputs, exit codes, MCP tools, privacy posture, and explicit scope flags (artifact_binding_performed: false, manifest_inspection_performed: false, runtime_protocol_inspection_performed: false, local_policy_decides: true) — a truthful, agent-readable description of the tool.
Operator modes
--operator is never auto-inferred. The caller declares whether they operate the target or are a third-party reader. The verifier uses this only to route guidance (TrustOps for operators, Developer Gateway for third-party readers).
Policy modes
Local policy decides. The verifier does not enforce a global gate.
Result states and reason codes
There are 18 canonical result_state values, including RESOLVER_VERIFIABLE, NO_PUBLIC_RESOLVER_PROOF_FOUND, DEGRADED, MISMATCH, EXPIRED, SUSPENDED, REVOKED, NOT_APPLICABLE and UNSUPPORTED_TARGET. An HTTP 200 alone is never proof: only an explicit active/current Resolver projection yields RESOLVER_VERIFIABLE; malformed, unknown-schema, subject-mismatched, revoked, suspended, expired, stale or abuse-flagged bodies map deterministically to non-positive states and are never cached as proof.
Reason codes are uppercase snake-case (e.g. NO_PUBLIC_RESOLVER_PROOF_FOUND, RESOLVER_READ_ONLY, RESOLVER_RESPONSE_UNVERIFIABLE, PULSEGUARD_STALE, LOCAL_POLICY_DECIDES). Use ecz_explain_result (MCP) or read the canonical lists exported from the library.
Exit codes
Machine-readable output
Default output is JSON (see the representative result above). Key fields: schema_version, verifier, verifier_version, target, target_type, policy_mode, result_state, reason_codes, resolver_url, machine_json_url, trustops_action_url, developer_guidance_url, the boundary flags (local_policy_decides, recheck_before_reliance, no_safety_or_approval_inference, no_source_uploaded, no_secrets_uploaded, no_telemetry), timestamp and exit_code.
--sarif <path>also writes a minimal SARIF 2.1.0 file for code-scanning surfaces.--actionsadds anaction_envelope(routing/guidance metadata only — not a proof authority).
Node library
Importing the package has no side effects — it never runs the CLI and never makes a network request on import. The canonical RESULT_STATES, REASON_CODES, exit-code constants and result types are exported for integrators.
MCP stdio server
The package ships a read-only MCP server over stdio with exactly three tools, all delegating to the same canonical verifier core. No secret or environment variable is required to start it; it writes no truth and exposes no remote transport. Run ecz-id-mcp-verifier --print-mcp-config to emit the block below for your host.
MCP host configuration
Add to your MCP host (e.g. an mcpServers block). Using the installed/global binary:
Or via npx without a global install:
This is local stdio use. The Official MCP Registry is a separate discovery lane, and Registry discovery is not ECZ-ID proof — proof comes only from the public Resolver.
Official MCP Registry (discovery)
Discoverable in the Official MCP Registry as io.github.Ecocitizenz/ecz-id-mcp-verifier:
Registry discovery is not ECZ-ID proof. Re-check the public Resolver before reliance.
GitHub Action
The repository ships a node24 action that wraps the same CLI.
Outputs: result-state, reason-codes, action-envelope-json, setup-handoff-json, mcp-action-envelope-json, request-to-resolve-json, primary-action, trustops-action-url, developer-guidance-url. The Action also writes a concise GitHub step summary.
Minimum permissions: contents: read. The action does not upload source. It does not upload secrets. It does not write truth. It does not mutate the repository, open PRs, or open issues. It does not call TrustOps checkout. It does not require an ECZ-ID token for public checks.
Offline mode
--offline (alias --no-network) performs deterministic classification and routing with no network call. The Resolver lookup is skipped and any ECZ-ID is reported as NO_PUBLIC_RESOLVER_PROOF_FOUND (the verifier never invents proof). Use offline mode in air-gapped CI or when you only need classification + routing.
Human report
The human report uses only approved soft copy. When no public resolver proof is found, the verifier emits this exact wording:
No public resolver proof was found for this MCP target yet. This does not mean the target is unsafe. It means ECZ-ID could not locate machine-readable public proof for the accountable operator. Your local policy decides the action.
Followed by the operator route:
Operate this server? Improve its resolver posture: https://trustops.ecocitizenz.com/start
And the closing reminders: "Re-check before reliance." and "Local policy decides." If you do not operate the target, share resolver guidance with the operator.
Troubleshooting
- No output? Run
npx @ecocitizenz/ecz-id-mcp-verifier --doctorto confirm a healthy install; every command prints JSON (or a report with--report) and returns a deterministic exit code. UNSUPPORTED_TARGET(exit 4): the target is empty, contains whitespace, or is a malformed ECZ-ID. Quote the target and check the supported-shapes table.REQUIREexits 1 offline: expected —REQUIREfails closed when no public proof is confirmed; useOPEN/PREFERfor informational runs, or drop--offline.- A non-ECZ-ID target shows
resolver_url: null: expected — only ECZ-IDs are resolvable; other shapes are classified and routed, not resolved. - Network errors under
REQUIRE: exit 5. The lookup already retries a cold or transient Core up to 3 times within a 32 s budget, so a failure here means it was unavailable for the whole budget. Raise--timeout-msonly if your Core is slower than that; or run--offline. An unavailable result is never a judgment about the identity.
Public routes
- Resolver (public proof):
https://resolver.ecocitizenz.org - Developer Gateway (docs/integration):
https://developers.ecocitizenz.com - TrustOps (operator setup):
https://trustops.ecocitizenz.com/start - Canonical machine discovery:
https://machine.ecocitizenz.org/.well-known/ecz-machine.json(a read-only pointer for agents and machines; discovery only, never proof)
When setup is required, the verifier routes the operator to TrustOps; it never performs setup itself. When documentation or guidance is required, it routes to the Developer Gateway. The verifier only GETs from the Resolver, requires HTTPS, treats any non-2xx as missing proof rather than inventing proof, and never POSTs, PUTs, PATCHes, or DELETEs.
If you operate the target, TrustOps can guide setup and posture improvement. The verifier never requires a purchase to run, never requires a third party to buy an ECZ-ID, and absence of public proof never means "unsafe" — local policy decides.
Role split
Backend remains final authority. Local policy decides. This verifier does not write truth.
No certification / safety / approval / compliance / insurance claims
The verifier does not assert that any target is trustworthy, low-risk, sanctioned, insured, or endorsed by any registry, platform, or regulator. It makes no safety, certification, approval, or compliance claim about any target. Every report says: re-check before reliance, local policy decides, backend remains final authority.
ECZ-ID format
Only a strictly valid identifier classifies as ecz_id, builds a Resolver URL, or triggers a lookup; a malformed identifier is reported as an unsupported / invalid target and never produces a Resolver request.
CCis exactly two uppercase letters (operator country/class code).XXXXXXandYYYYYYare each exactly six uppercase Base36 characters (0-9A-Z).PASSPORT_CODEis one of the 33 public passport-number codes below; it may contain hyphens, and the six-character instance suffix is split off the final hyphen. Only these public codes are valid; other identifiers and obsolete codes are not valid public child codes.
Resolver routes: a parent resolves to …/p/{parent}; a child resolves to …/p/{parent}/{passport_code}/{instance_suffix}.
Public passport-number codes (33)
Only the public passport names and codes are shown. Child machine_json_url is null (no proven child machine endpoint); the parent machine projection …/api/p/{parent}.json is read-only.
Security & responsible disclosure
Report suspected vulnerabilities privately via the repository's GitHub Security tab — https://github.com/Ecocitizenz/ecz-id-mcp-verifier/security (use Report a vulnerability / private advisories) — do not open public issues for security reports. Include the affected version and reproduction steps. See also docs/PRIVACY.md and docs/ROLE_SPLIT.md.
Support & uninstall
- Support / issues: https://github.com/Ecocitizenz/ecz-id-mcp-verifier/issues
- Uninstall:
npm uninstall -g @ecocitizenz/ecz-id-mcp-verifier(global) or remove it from your project and deletenode_modules. For the GitHub Action, remove theuses:step. No background services, daemons, or cached credentials are left behind.
Reproducible version pinning
A plain install uses the current release. Pin the exact release only when reproducibility is required:
Publication status
- npm:
@ecocitizenz/ecz-id-mcp-verifieris live on the public registry; a plainnpm install(ornpx) uses the current release. - GitHub Action:
Ecocitizenz/[email protected]on the GitHub Actions Marketplace. - Trusted publishing: npm releases use protected OIDC trusted publishing with published provenance through a GitHub
npm-releaseenvironment. The canonical Git remote (https://github.com/Ecocitizenz/ecz-id-mcp-verifier.git) is configured, andpackage.jsonrepository/bugsURLs match it exactly. - Published package versions and Action release tags are immutable.
Licence
The official, unmodified package and its bundled GitHub Action are free forever under the ECZ-ID Proprietary Limited-Use License (LICENSE.md) — free to install and run for personal, organisational, development, CI/CD, and internal business use.
This is not open source. Public visibility of the source (for transparency or installation) grants no redistribution, modification, derivative, or competing-product rights — see LICENSE.md.
Backend writes truth. TrustOps handles setup. Resolver proves. Machines re-check.
来源:README.md,提交 3bcde06
工具
0版本历史
1- v0.9.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
