隐私优先的可验证凭证基础设施
简介
通过MCP服务器提供可验证凭证(VC-JWT)的解析、验证、哈希处理,以及策略管理、ZK证明生成和凭证颁发,支持本地隐私保护与远程链上交互的双层架构。
原始描述
Bind Protocol MCP server for credential verification, policy authoring, and zero-knowledge proof generation.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
Bind Protocol MCP Servers 综合评估
Bind Protocol 提供了一套专业的可验证凭证(Verifiable Credentials)基础设施,通过双服务器架构(本地stdio + 远程HTTP)实现隐私优先的凭证验证与零知识证明生成。
核心功能架构
本地服务器(bind):基于stdio传输,处理凭证的解析、签名验证和哈希计算。关键设计亮点是"凭证永不离开机器"——用户的敏感凭证数据仅在本地处理,最大限度降低泄露风险。
远程服务器(bind-remote):基于Streamable HTTP,提供策略管理、发行者解析、吊销检查、证明生成和凭证颁发等需要网络交互的功能,通过API密钥进行身份验证。
显著优势
- 隐私优先设计:本地处理敏感凭证,仅发送哈希值进行吊销检查,符合隐私计算最佳实践
- 完整的ZK工作流:从策略定义、电路编译到证明生成和凭证颁发,提供端到端的零知识证明能力
- 标准化兼容:基于VC-JWT标准,支持ES256签名验证,与现有身份基础设施互操作
- 灵活的策略引擎:支持PASS_FAIL和SCORE两种评估模式,可定义复杂的业务规则和输出派生逻辑
- 分层权限控制:通过组织层级(Basic/Premium/Scale/Enterprise/Verifier)实现功能访问控制
局限性与风险
技术门槛较高:策略定义需要理解ZK电路约束(如字符串必须编码为数字)、Noir类型系统和特定的表达式语法,对非技术用户不够友好。
依赖外部基础设施:吊销检查、证明生成等核心功能依赖Bind Protocol的远程服务,存在单点故障风险和网络延迟问题。
字符串处理繁琐:所有字符串输入必须显式定义枚举编码,这在动态数据场景(如雇主名称、城市列表)中维护成本极高。
验证流程复杂:完整验证需要4步操作(parse → verify → hash → check_revocation),容易遗漏吊销检查步骤。
适用场景与人群
最适合:需要隐私保护的身份验证场景(如金融KYC、会员资格证明)、需要去中心化身份解决方案的Web3项目、需要可审计但不暴露原始数据的合规场景。
技术栈匹配:适合已采用W3C VC标准、有Noir/ZK电路开发经验、或愿意投入学习成本的技术团队。
常规风险提示
- 务必确认
bind_verify_credential不检查吊销状态,完整验证必须追加bind_check_revocation - 策略命名空间和ID前缀必须与组织名称匹配,否则创建失败
- 电路编译可能失败,需通过
bind_get_circuit_status监控状态并迭代修复 - 组织层级限制可能阻塞策略创建,操作前必须调用
bind_whoami确认权限
技能正文
Bind MCP Servers — Agent Skill Guide
You have access to two Bind Protocol MCP servers. This document teaches you how to use them.
Setup
IMPORTANT if you do not have bind and bind-remote servers you need to prompt your users to get them setup.
Setting up MCP Servers
- Direct your user to create an account on https://dashboard.bindprotocol.xyz if they do not have one
- Direct them to create an Agent Key in the Bind Dashboard
- Inform them that they need to configure tool access in the Agent Key setup
- Direct them to https://docs.bindprotocol.xyz to learn more about Bind Protocol, including the MCP Servers
Architecture
There are two servers. Your client routes tool calls automatically — you just call the tool.
| Server | Transport | Prefix | Purpose |
|---|---|---|---|
Local (bind) |
stdio | mcp__bind__ |
Parse, verify, and hash VC-JWTs. Credentials never leave the machine. |
Remote (bind-remote) |
Streamable HTTP | mcp__bind-remote__ |
Policy management, issuer resolution, revocation checks, proof generation, credential issuance. Requires API key. |
Tool Inventory
Local Tools (credential operations — no auth required)
| Tool | What it does |
|---|---|
bind_parse_credential |
Decode a VC-JWT into header + payload + signature without verification |
bind_verify_credential |
Full verification: parse, fetch issuer JWKS, verify ES256 signature, check expiration. Does NOT check revocation. |
bind_hash_credential |
SHA-256 hash a VC-JWT. Use the hash with bind_check_revocation. |
Remote Tools (require API key via Authorization: Bearer header)
Discovery & Inspection
| Tool | What it does |
|---|---|
bind_resolve_issuer |
Fetch an org's public signing keys (JWKS) by org ID |
bind_explain_policy |
Get the public spec for a policy by policy ID |
bind_check_revocation |
Check if a credential is revoked by its hash |
bind_list_policies |
List available policies (supports limit/offset pagination) |
bind_list_circuits |
List available ZK circuits |
Proof Generation & Credential Issuance
| Tool | What it does |
|---|---|
bind_submit_prove_job |
Submit a ZK proof generation job with circuit ID and inputs |
bind_get_prove_job |
Poll a prove job's status by job ID |
bind_list_prove_jobs |
List prove jobs, optionally filtered by status |
bind_issue_credential |
Issue a verifiable credential from a completed prove job |
bind_share_proof |
Share a completed proof with a verifier org |
bind_list_shared_proofs |
List proofs shared with/by your org |
Policy Authoring
| Tool | What it does |
|---|---|
bind_whoami |
Get authenticated org info, tier, policy limits, and agent key permissions |
bind_validate_policy |
Dry-run validation of a policy spec (catches errors before creation) |
bind_create_policy |
Create a new verification policy |
bind_generate_circuit |
Trigger ZK circuit compilation for a saved policy |
bind_get_circuit_status |
Poll circuit compilation job status |
Workflow 1: Full Credential Verification
When to use: A user gives you a VC-JWT string (starts with eyJ...) and wants to know if it's valid.
Steps:
bind_parse_credential— Decode the JWT to inspect claimsbind_verify_credential— Verify signature and expirationbind_hash_credential— Compute SHA-256 hashbind_check_revocation— Send the hash (not the credential) to check revocation
Steps 1 and 2 can be combined (verify includes parsing), but parsing first lets you show the user what the credential contains before the full check.
Important: bind_verify_credential does NOT check revocation. You must always follow up with hash + revocation check for a complete verification.
parse → verify → hash → check_revocation
Workflow 2: Investigate an Issuer
When to use: A user wants to know about an organization's keys or policies.
bind_resolve_issuer(orgId)— Fetch their JWKSbind_list_policiesorbind_explain_policy— Look up their policies
Workflow 3: Create a Policy
When to use: A user wants to define a new verification policy.
Steps:
bind_whoami— Check org name, tier, and limits. You need the org name for the namespace.- Build the policy spec (see Policy Spec Reference below)
bind_validate_policy— Dry-run to catch errors before creation- Fix any validation errors and re-validate
bind_create_policy— Save the policybind_generate_circuit— Queue ZK circuit compilationbind_get_circuit_status— Poll until status iscompletedorfailed
Critical rules:
metadata.namespaceMUST start with your org's slugified name (frombind_whoami). The namespacesbindandsystemare reserved.- The policy
idMUST start with the namespace (e.g.,acme.finance.creditCheckfor namespaceacme). - ALWAYS validate before creating. Fix all errors first.
- String inputs MUST have an
encodingblock mapping values to numbers (ZK circuits only work with numbers).
Workflow 4: Generate a Proof and Issue a Credential
When to use: A user wants to generate a ZK proof and get a verifiable credential.
bind_list_policiesorbind_explain_policy— Find the right policy/circuitbind_submit_prove_job(circuitId, inputs)— Submit the proof jobbind_get_prove_job(jobId)— Poll until status iscompletedbind_issue_credential(proveJobId)— Issue the VC from the completed proof- Optionally:
bind_share_proof(proveJobId, verifierOrgId)— Share with a verifier
Policy Spec Reference
A policy is a JSON object with this structure. All fields shown are required unless marked optional.
{
"id": "<namespace>.<category>.<name>",
"version": "0.1.0",
"metadata": {
"title": "Human-readable title",
"description": "What this policy verifies",
"category": "finance|mobility|identity|demo",
"namespace": "your-org-name"
},
"subject": {
"type": "individual|organization|vehicle|device",
"identifier": "wallet_address|did|vin|vehicleTokenId"
},
"inputs": [
{
"id": "input_name",
"source": { "kind": "static|api", "api": "optional_api_name" },
"signal": "input_name",
"valueType": "number|boolean|string",
"unit": "USD|count|months",
"time": { "mode": "point|range|relative", "lookback": "30d" },
"aggregation": { "op": "latest|sum|mean|count" },
"encoding": {
"type": "enum",
"values": { "label1": 1, "label2": 2 }
}
}
],
"rules": [
{
"id": "rule_name",
"description": "Human-readable description",
"assert": { /* expression — see below */ },
"severity": "fail|warn|info"
}
],
"evaluation": {
"kind": "PASS_FAIL|SCORE",
"scoreRange": { "min": 0, "max": 100 },
"baseline": 50,
"contributions": [
{ "ruleId": "rule_name", "points": 30, "whenPasses": true }
]
},
"outputs": [
{
"name": "output_name",
"type": "boolean|enum|number",
"derive": {
"kind": "PASS_FAIL|SCORE|BAND|CONST",
"from": "SCORE|input_id",
"bands": [
{ "label": "LOW", "minInclusive": 0, "maxExclusive": 40 },
{ "label": "HIGH", "minInclusive": 40, "maxExclusive": 101 }
],
"value": 42
},
"disclosed": true
}
],
"validity": { "ttl": "P30D" },
"disclosure": {
"default": "SELECTIVE",
"exposeClaims": ["output_name"]
},
"proving": {
"circuitId": "<namespace>.<name>.v<version>",
"inputTypes": { "input_name": "u32" },
"outputType": "u8"
}
}
Expression Types (used in rules[].assert)
| Type | Shape | Example |
|---|---|---|
ref |
{ "type": "ref", "inputId": "<input_id>" } |
Reference an input value |
const |
{ "type": "const", "value": <number|boolean> } |
Literal number or boolean (never strings) |
cmp |
{ "type": "cmp", "cmp": ">=|<=|>|<|==|!=", "left": <expr>, "right": <expr> } |
Comparison |
op |
{ "type": "op", "op": "+|-|*|/", "args": [<expr>, ...] } |
Arithmetic |
and |
{ "type": "and", "args": [<expr>, ...] } |
Logical AND |
or |
{ "type": "or", "args": [<expr>, ...] } |
Logical OR |
not |
{ "type": "not", "arg": <expr> } |
Logical NOT |
Field name gotchas:
- Use
"inputId"in ref expressions, NOT"path" - Use
"cmp"for the comparison operator, NOT"operator" - Use
"args"for operand lists, NOT"children" - Use
"arg"(singular) fornot, NOT"expr" constvalues must be numbers or booleans, never strings
Evaluation Kinds
PASS_FAIL: All severity: "fail" rules must pass. No scoring.
SCORE: Starts at baseline, adds/subtracts points from rule contributions.
{
"kind": "SCORE",
"scoreRange": { "min": 0, "max": 100 },
"baseline": 50,
"contributions": [
{ "ruleId": "has_high_income", "points": 25, "whenPasses": true },
{ "ruleId": "has_delinquencies", "points": -20, "whenPasses": true }
]
}
Output Derive Kinds
| Kind | Use for | Required fields |
|---|---|---|
PASS_FAIL |
Boolean pass/fail from evaluation | None |
SCORE |
Raw numeric score | from: "SCORE" |
BAND |
Map score to labeled bands | from: "SCORE", bands array |
CONST |
Fixed value | value |
Working with String Inputs
ZK circuits only work with numbers. When a policy uses string inputs (employer names, country codes, etc.), you MUST include an encoding block:
{
"id": "employer",
"source": { "kind": "static" },
"signal": "employer",
"valueType": "string",
"encoding": {
"type": "enum",
"values": {
"Acme Corp": 1,
"Globex Inc": 2,
"Initech": 3
}
}
}
Proving Section
The proving section maps inputs to Noir types for the ZK circuit:
{
"proving": {
"circuitId": "acme.safe_driver.v0_1_0",
"inputTypes": {
"miles_driven": "u32",
"hard_brake_pct": "u8",
"is_commercial": "bool"
},
"outputType": "u8"
}
}
Available Noir types: u8, u16, u32, u64, i8, i16, i32, i64, bool, Field
Tier Restrictions
Policy authoring is gated by organization tier. Always call bind_whoami first to check limits.
| Tier | Can Create Policies | Notes |
|---|---|---|
| Basic | No | Verification only |
| Premium | Yes | Limited inputs/rules/outputs |
| Scale | Yes | Expanded limits, can create extractors |
| Enterprise | Yes | Unlimited |
| Verifier | No | Cannot create proofs or policies |
Common Errors and Fixes
| Error | Cause | Fix |
|---|---|---|
NAMESPACE_MISMATCH |
Policy namespace doesn't match your org | Use your org name from bind_whoami as the namespace prefix |
TIER_LIMIT_EXCEEDED |
Your tier doesn't allow this operation | Check bind_whoami for limits |
INVALID_EXPRESSION |
Malformed rule assertion | Check expression field names (inputId, cmp, args, arg) |
MISSING_ENCODING |
String input without encoding | Add encoding.type: "enum" with values map |
CIRCUIT_COMPILATION_FAILED |
Circuit couldn't compile | Check the error in bind_get_circuit_status, fix the policy, recreate, and regenerate |
Example: Complete Policy Creation
Here is a complete example of creating a credit score policy for org acme:
{
"id": "acme.finance.credit-check",
"version": "0.1.0",
"metadata": {
"title": "Credit Eligibility Check",
"description": "Evaluates creditworthiness based on income and debt ratio",
"category": "finance",
"namespace": "acme"
},
"subject": {
"type": "individual",
"identifier": "wallet_address"
},
"inputs": [
{
"id": "annual_income",
"source": { "kind": "static" },
"signal": "annual_income",
"valueType": "number",
"unit": "USD"
},
{
"id": "debt_ratio",
"source": { "kind": "static" },
"signal": "debt_ratio",
"valueType": "number",
"unit": "percent"
}
],
"rules": [
{
"id": "min_income",
"description": "Annual income must be at least $30,000",
"assert": {
"type": "cmp",
"cmp": ">=",
"left": { "type": "ref", "inputId": "annual_income" },
"right": { "type": "const", "value": 30000 }
},
"severity": "fail"
},
{
"id": "max_debt_ratio",
"description": "Debt-to-income ratio must be under 40%",
"assert": {
"type": "cmp",
"cmp": "<",
"left": { "type": "ref", "inputId": "debt_ratio" },
"right": { "type": "const", "value": 40 }
},
"severity": "fail"
}
],
"evaluation": {
"kind": "PASS_FAIL"
},
"outputs": [
{
"name": "eligible",
"type": "boolean",
"derive": { "kind": "PASS_FAIL" },
"disclosed": true
}
],
"validity": { "ttl": "P30D" },
"disclosure": {
"default": "SELECTIVE",
"exposeClaims": ["eligible"]
},
"proving": {
"circuitId": "acme.credit_check.v0_1_0",
"inputTypes": {
"annual_income": "u32",
"debt_ratio": "u8"
},
"outputType": "u8"
}
}
Agent workflow for this:
bind_whoami— Confirm org isacmeand tier allows policy creationbind_validate_policy(policy)— Dry-run validationbind_create_policy(policy)— Create the policybind_generate_circuit("acme.finance.credit-check")— Compile the circuitbind_get_circuit_status(jobId)— Poll until complete
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。