bernstein-mcp
Verifies Bernstein run receipts and hash chains; lists the shipped presets and adapters. Read-only.
我該用這個嗎
品質與安全性
發現項目(2)
- LOW在 server_info 中
- LOW在 list_adapters 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"bernstein-mcp": {
"url": "https://mcp.bernstein.run/mcp"
}
}
}遠端端點
https://mcp.bernstein.run/mcpstreamable-http它能做什麼
工具清單
工具(11)
⚪server_info
Identity, version, and request limits for this MCP server.
輸入結構描述
{
"type": "object",
"properties": {}
}輸出結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"limits": {
"type": "object",
"properties": {
"max_body_bytes": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"max_chain_entries": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"max_trace_records": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"max_body_bytes",
"max_chain_entries",
"max_trace_records"
],
"additionalProperties": false
},
"verdict_key": {
"anyOf": [
{
"type": "object",
"properties": {
"kty": {
"type": "string"
},
"crv": {
"type": "string"
},
"x": {
"type": "string"
},
"kid": {
"type": "string"
},
"use": {
"type": "string"
},
"alg": {
"type": "string"
}
},
"required": [
"kty",
"crv",
"x",
"kid",
"use",
"alg"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Public Ed25519 JWK this deployment signs verdicts with; also at keys_url."
},
"keys_url": {
"type": "string"
}
},
"required": [
"name",
"version",
"limits",
"verdict_key",
"keys_url"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢verify_receipt(receipt)
Recompute every hash chain a bernstein run receipt embeds (journal, lineage spine, optional audit range), rebuild the signed subject from the recomputed heads, and check the Ed25519 signature with the key the receipt carries. Needs no secret and reads nothing but the receipt. Returns the verdict, the first failing check, one line per check, and the same verdict as a DSSE envelope signed by this verifier's Ed25519 key (public key at keys_url) so the outcome can be kept and re-checked offline.
輸入結構描述
{
"type": "object",
"properties": {
"receipt": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
],
"description": "The run receipt: pass the file contents as a string for byte-exact verification, or the parsed object."
}
},
"required": [
"receipt"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"verdict": {
"type": "string",
"enum": [
"valid",
"invalid",
"unverifiable"
]
},
"failing_check": {
"anyOf": [
{
"type": "string",
"enum": [
"schema",
"journal_chain",
"journal_head",
"spine_chain",
"spine_head",
"audit_range_head",
"audit_range_linkage",
"audit_range_hmac",
"subject_binding",
"signature"
]
},
{
"type": "null"
}
]
},
"divergent_step": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"receipt_sha256": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"schema",
"journal_chain",
"journal_head",
"spine_chain",
"spine_head",
"audit_range_head",
"audit_range_linkage",
"audit_range_hmac",
"subject_binding",
"signature"
]
},
"outcome": {
"type": "string",
"enum": [
"ok",
"fail",
"unverifiable",
"skipped"
]
},
"detail": {
"type": "string"
}
},
"required": [
"name",
"outcome",
"detail"
],
"additionalProperties": false
}
},
"summary": {
"anyOf": [
{
"type": "object",
"properties": {
"run_id": {
"type": "string"
},
"schema_version": {
"type": "string"
},
"hash_profile": {
"type": "string"
},
"journal_events": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"spine_entries": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"audit_events": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"key_id": {
"type": "string"
},
"producer": {
"type": [
"string",
"null"
]
},
"tool_calls": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"run_id",
"schema_version",
"hash_profile",
"journal_events",
"spine_entries",
"audit_events",
"key_id",
"producer",
"tool_calls"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"verify_url": {
"type": [
"string",
"null"
]
},
"signed_verdict": {
"anyOf": [
{
"type": "object",
"properties": {
"payloadType": {
"type": "string"
},
"payload": {
"type": "string"
},
"signatures": {
"type": "array",
"items": {
"type": "object",
"properties": {
"keyid": {
"type": "string"
},
"sig": {
"type": "string"
}
},
"required": [
"keyid",
"sig"
],
"additionalProperties": false
}
}
},
"required": [
"payloadType",
"payload",
"signatures"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "DSSE envelope over the verdict statement (JCS JSON in payload), Ed25519 over the DSSE PAE."
},
"keys_url": {
"type": "string"
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"verdict",
"failing_check",
"divergent_step",
"receipt_sha256",
"checks",
"summary",
"verify_url",
"signed_verdict",
"keys_url",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢explain_receipt(receipt)
Verify a run receipt and narrate the result in plain language: what the run recorded, which chains recomputed, where the first divergence is, and what an auditor can and cannot conclude without the producing install's keys.
輸入結構描述
{
"type": "object",
"properties": {
"receipt": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
],
"description": "The run receipt: pass the file contents as a string for byte-exact verification, or the parsed object."
}
},
"required": [
"receipt"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"verdict": {
"type": "string",
"enum": [
"valid",
"invalid",
"unverifiable"
]
},
"explanation": {
"type": "string"
},
"receipt_sha256": {
"type": "string"
}
},
"required": [
"verdict",
"explanation",
"receipt_sha256"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}⚪verify_chain(entries, kind)
Walk bernstein chain rows and recompute every link: journal rows (event_hash), lineage spine entries (entry_hash) or audit events (prev_hmac linkage). The row kind is detected from the fields, or pass `kind` explicitly. Reports the first divergent index. Pass `entries` as the file text (a JSON array or one row per line, as journal.jsonl is written) for byte-exact hashing; a parsed array also works, but then a float spelled 1.0 or -0.0 in the file cannot be told apart from an integer.
輸入結構描述
{
"type": "object",
"properties": {
"entries": {
"anyOf": [
{
"maxItems": 2000,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "string",
"maxLength": 1048576
}
],
"description": "Rows in chain order, oldest first: a JSON array, or the raw text of the file."
},
"kind": {
"type": "string",
"enum": [
"journal",
"spine",
"audit_linkage"
]
}
},
"required": [
"entries"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"journal",
"spine",
"audit_linkage"
]
},
"intact": {
"type": "boolean"
},
"entries": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"head": {
"type": "string"
},
"divergent_index": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"detail": {
"type": "string"
}
},
"required": [
"kind",
"intact",
"entries",
"head",
"divergent_index",
"detail"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}⚪verify_trace_record(record)
TRACE v0.2 conformance checks on one Trust Record, stateless, no account: schema (vendored trace-claim.json), profile, subject URI, software-only runtime rule, policy digest, public-only confirmation key, the embedded signature (EdDSA, ES256 or ES384 with the key in cnf.jwk), appraisal, delegation link shape and references. Nothing is fetched: resolvers are checked as URIs only. `record_sha256` is the RFC 8785 digest of the complete record, signature included — the value a child hop puts in delegation.parent_record_hash.
輸入結構描述
{
"type": "object",
"properties": {
"record": {
"anyOf": [
{
"type": "string",
"maxLength": 1048576
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
],
"description": "A TRACE v0.2 Trust Record: the file contents as a string, or the parsed object."
}
},
"required": [
"record"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"verdict": {
"type": "string",
"enum": [
"valid",
"invalid",
"unverifiable"
]
},
"failing_check": {
"anyOf": [
{
"type": "string",
"enum": [
"parse",
"schema",
"profile",
"subject",
"runtime",
"policy",
"cnf_key",
"signature",
"appraisal",
"delegation",
"references",
"canonicalization"
]
},
{
"type": "null"
}
]
},
"record_sha256": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"parse",
"schema",
"profile",
"subject",
"runtime",
"policy",
"cnf_key",
"signature",
"appraisal",
"delegation",
"references",
"canonicalization"
]
},
"outcome": {
"type": "string",
"enum": [
"ok",
"fail",
"unverifiable",
"skipped"
]
},
"detail": {
"type": "string"
}
},
"required": [
"name",
"outcome",
"detail"
],
"additionalProperties": false
}
},
"summary": {
"anyOf": [
{
"type": "object",
"properties": {
"subject": {
"type": "string"
},
"eat_profile": {
"type": "string"
},
"iat": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"model_id": {
"type": "string"
},
"provider": {
"type": "string"
},
"data_class": {
"type": "string"
},
"key_thumbprint": {
"type": "string"
},
"has_delegation": {
"type": "boolean"
},
"references": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"tool_calls": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"subject",
"eat_profile",
"iat",
"model_id",
"provider",
"data_class",
"key_thumbprint",
"has_delegation",
"references",
"tool_calls"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"verdict",
"failing_check",
"record_sha256",
"checks",
"summary",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}⚪verify_agent_manifest(manifest, trustRecord)
Agent Manifest v0.2 conformance checks on one manifest, stateless, no account: schema (vendored agent-manifest.schema.json), profile context, version, canonicalization, COSE envelope signature (Ed25519, key identified by kid in the protected header; ML-DSA-65 is reported unverifiable). Optionally checks that a TRACE Trust Record cites this manifest by digest. Nothing is fetched; resolvers are checked as URIs only. The manifest hash is sha256 over the COSE payload bytes (or RFC 8785 canonical JSON for object input).
輸入結構描述
{
"type": "object",
"properties": {
"manifest": {
"anyOf": [
{
"type": "string",
"maxLength": 1048576
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
],
"description": "The agent manifest: COSE envelope as base64 string, or the parsed JSON object (payload)."
},
"trustRecord": {
"description": "Optional TRACE v0.2 Trust Record to check if it cites this manifest (references[].rel == 'agent-manifest').",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"manifest"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"verdict": {
"type": "string",
"enum": [
"valid",
"invalid",
"unverifiable"
]
},
"failing_check": {
"anyOf": [
{
"type": "string",
"enum": [
"parse",
"cose_structure",
"protected_header",
"schema",
"profile",
"version",
"canonicalization",
"signature",
"record_cites_manifest"
]
},
{
"type": "null"
}
]
},
"manifest_sha256": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"parse",
"cose_structure",
"protected_header",
"schema",
"profile",
"version",
"canonicalization",
"signature",
"record_cites_manifest"
]
},
"outcome": {
"type": "string",
"enum": [
"ok",
"fail",
"unverifiable",
"skipped"
]
},
"detail": {
"type": "string"
}
},
"required": [
"name",
"outcome",
"detail"
],
"additionalProperties": false
}
},
"summary": {
"anyOf": [
{
"type": "object",
"properties": {
"manifest_id": {
"type": "string"
},
"agent_id": {
"type": "string"
},
"version": {
"type": "string"
},
"issued_at": {
"type": "string"
},
"expires_at": {
"type": "string"
},
"issuer": {
"type": "string"
},
"crypto_profile": {
"type": "string"
},
"manifest_hash": {
"type": "string"
},
"key_kind": {
"type": "string"
},
"key_kid": {
"type": "string"
}
},
"required": [
"manifest_id",
"agent_id",
"version",
"issued_at",
"expires_at",
"issuer",
"crypto_profile",
"manifest_hash",
"key_kind",
"key_kid"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"verdict",
"failing_check",
"manifest_sha256",
"checks",
"summary",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢verify_delegation_chain(records, context)
TRACE v0.2 delegation-chain conformance, stateless, no account: index every Trust Record by the RFC 8785 digest of its complete form, start at the leaf, follow delegation.parent_record_hash to the root, and check each hop's signature, the root key against `trusted_root_keys`, the depth bound, the link's digest algorithm, the credential (registered, issuer = parent subject, holder = record subject, window at the hop's own iat) and data_class narrowing under `data_class_lattice`. Classification: provenance-invalid outranks authorization-invalid; an unread link is unverifiable, not broken. Pass `records` as a JSON array or as file text (one record per line or a JSON array).
輸入結構描述
{
"type": "object",
"properties": {
"records": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
]
}
},
{
"type": "string",
"maxLength": 1048576
}
],
"description": "The record set in any order: a JSON array of records (objects or strings), or the raw text of a file."
},
"context": {
"type": "object",
"properties": {
"leaf": {
"description": "Digest of the record under appraisal (`sha256:<hex>`); absent → the record no other record names as parent.",
"type": "string"
},
"now": {
"description": "Carried for completeness; credential windows are judged at each hop's own iat.",
"type": "number"
},
"max_depth": {
"description": "Default 8.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"supported_digest_algorithms": {
"description": "Default [\"sha256\"]; \"sha384\" is also computed.",
"type": "array",
"items": {
"type": "string"
}
},
"data_class_lattice": {
"description": "Least to most sensitive; classes outside it are not compared. Default [].",
"type": "array",
"items": {
"type": "string"
}
},
"trusted_root_keys": {
"description": "Public JWKs; identity is (kty, crv, x, y). Default [] → the root is untrusted.",
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"credentials": {
"description": "credential_id → {issuer, holder, not_before, not_after}. Default {} → every hop's credential is unknown.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"properties": {
"issuer": {
"type": "string"
},
"holder": {
"type": "string"
},
"not_before": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"not_after": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"issuer",
"holder",
"not_before",
"not_after"
]
}
}
}
}
},
"required": [
"records"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"classification": {
"type": "string",
"enum": [
"verified",
"provenance-invalid",
"authorization-invalid",
"unverifiable"
]
},
"codes": {
"type": "array",
"items": {
"type": "string"
}
},
"failures": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"depth": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"walk": {
"type": "array",
"items": {
"type": "object",
"properties": {
"record_sha256": {
"type": "string"
},
"subject": {
"type": "string"
},
"depth": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"delegation": {
"anyOf": [
{
"type": "object",
"properties": {
"parent_record_hash": {
"type": "string"
},
"credential_id": {
"type": "string"
}
},
"required": [
"parent_record_hash",
"credential_id"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"codes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"record_sha256",
"subject",
"depth",
"delegation",
"codes"
],
"additionalProperties": false
}
},
"first_broken_link": {
"anyOf": [
{
"type": "object",
"properties": {
"record_sha256": {
"type": "string"
},
"code": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"record_sha256",
"code",
"detail"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"classification",
"codes",
"failures",
"warnings",
"depth",
"walk",
"first_broken_link",
"note"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢explain_trace_mapping(receipt)
How a bernstein run maps onto a TRACE v0.2 Trust Record: one row per claim with the journal field it is sourced from and the rule that derives it. Pass a run receipt to fill in the rows its embedded journal can answer (subject, iat, model, data_class, policy digest, tool transcript) alongside the receipt's own verdict.
輸入結構描述
{
"type": "object",
"properties": {
"receipt": {
"description": "Optional run receipt: the file contents as a string, or the parsed object.",
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"mapping": {
"type": "array",
"items": {
"type": "object",
"properties": {
"claim": {
"type": "string"
},
"source": {
"type": "string"
},
"rule": {
"type": "string"
},
"value": {
"type": [
"string",
"null"
]
}
},
"required": [
"claim",
"source",
"rule",
"value"
],
"additionalProperties": false
}
},
"markdown": {
"type": "string"
},
"verdict": {
"anyOf": [
{
"type": "string",
"enum": [
"valid",
"invalid",
"unverifiable"
]
},
{
"type": "null"
}
]
},
"receipt_sha256": {
"type": [
"string",
"null"
]
}
},
"required": [
"mapping",
"markdown",
"verdict",
"receipt_sha256"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_presets
The compliance presets bernstein v3.19.2 ships, with the switches each one turns on.
輸入結構描述
{
"type": "object",
"properties": {}
}輸出結構描述
{
"type": "object",
"properties": {
"bernstein_version": {
"type": "string"
},
"presets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"enabled"
],
"additionalProperties": false
}
}
},
"required": [
"bernstein_version",
"presets"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_preset(name)
Every field of one compliance preset as bernstein v3.19.2 resolves it.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"development",
"hipaa",
"regulated",
"standard"
]
}
},
"required": [
"name"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"bernstein_version": {
"type": "string"
},
"name": {
"type": "string"
},
"config": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"bernstein_version",
"name",
"config"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_adapters
The agent adapters bundled with bernstein v3.19.2: adapter name, the binary it drives, the module that implements it.
輸入結構描述
{
"type": "object",
"properties": {}
}輸出結構描述
{
"type": "object",
"properties": {
"bernstein_version": {
"type": "string"
},
"adapters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"binary": {
"type": "string"
},
"module": {
"type": "string"
}
},
"required": [
"name",
"binary",
"module"
],
"additionalProperties": false
}
}
},
"required": [
"bernstein_version",
"adapters"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社群
證據