Skip to main content
Glama

Agent Trust Stack MCP 服务器

MCP (Model Context Protocol) 服务器,公开了 Agent Trust Stack 工具,以便任何兼容 MCP 的 AI 代理都能原生使用它们。

提供 意识链 (CoC) 溯源日志记录和 代理评级协议 (ARP) 声誉评分——这是 7 协议代理信任栈 中的两个操作协议。

工具

工具

描述

coc_init

初始化一个新的加密哈希链(创世块)

coc_add

追加一个条目 — 学习、决策、创建、错误、备注、里程碑、会话开始/结束

coc_verify

验证链完整性(哈希链接、顺序、完整性)

coc_status

获取链统计信息(长度、代理、时间跨度、事件类型)

coc_tail

获取最后 N 个条目

coc_anchor

提交链哈希以进行外部时间戳记(OTS + RFC 3161 TSA)

arp_rate

为另一个代理提交双向盲评

arp_check

检查代理的声誉评分

trust_stack_info

获取所有 7 个协议的信息及白皮书链接

verify_agent_identity

通过代理卡 URL 验证代理身份

get_trust_evidence

获取代理的综合信任证据(CoC + ARP)

Related MCP server: AgentVeil Protocol

资源

URI

描述

trust-stack://protocols

所有 7 个协议的概述及链接

trust-stack://installation

安装说明

安装

pip install agent-trust-stack-mcp

对于正确的 OpenTimestamps .ots 文件格式(可选):

pip install agent-trust-stack-mcp[ots]

配置

添加到您的 MCP 客户端配置(Claude Code、Cursor 等):

{
  "mcpServers": {
    "agent-trust-stack": {
      "command": "agent-trust-stack-mcp",
      "args": []
    }
  }
}

环境变量

变量

默认值

描述

COC_CHAIN_DIR

./chain

链文件的目录

ARP_RATINGS_DIR

./ratings

评级文件的目录

自定义数据目录

{
  "mcpServers": {
    "agent-trust-stack": {
      "command": "agent-trust-stack-mcp",
      "args": [],
      "env": {
        "COC_CHAIN_DIR": "/path/to/my/chain",
        "ARP_RATINGS_DIR": "/path/to/my/ratings"
      }
    }
  }
}

使用示例

连接后,任何兼容 MCP 的代理都可以直接调用这些工具:

启动溯源链

→ coc_init(agent="my-agent")
← { "status": "chain_initialized", "sequence": 0, "entry_hash": "a1b2c3..." }

记录活动

→ coc_add(event_type="learn", data="Processed 500 documents from dataset X", agent="my-agent")
← { "status": "entry_added", "sequence": 1, "entry_hash": "d4e5f6..." }

验证链完整性

→ coc_verify()
← { "is_valid": true, "entry_count": 42, "agents": {"my-agent": 42} }

评价另一个代理

→ arp_rate(rater="agent-a", ratee="agent-b", score=0.8, context="Delivered accurate research")
← { "status": "rating_recorded", "rater_hash": "7f8a9b...", "score": 0.8 }

检查声誉

→ arp_check(agent_id="agent-b")
← { "rating_count": 5, "average_score": 0.72, "unique_raters": 3 }

直接运行

# stdio mode (default — for MCP client connections)
agent-trust-stack-mcp

# Or via Python module
python -m agent_trust_stack_mcp

工作原理

意识链 (CoC): 一个仅追加的 JSONL 文件,其中每个条目都包含一个指向前一个条目的 SHA-256 哈希,从而创建一个防篡改日志。对早期条目的任何修改都会破坏哈希链,使篡改行为可被检测。通过 OpenTimestamps (比特币) 和 RFC 3161 TSA 进行的可选外部锚定提供了独立的时间戳证明。

代理评级协议 (ARP): 代理在交互后以 -1.0 到 1.0 的分值相互评价。评价者的身份在存储前会进行 SHA-256 哈希处理(双向盲评),因此如果没有原始 ID,评级无法被归因。声誉是所有收到的评级的总和。

本地包与托管 API

此包 (pip install agent-trust-stack-mcp) 作为 MCP 服务器在本地运行,包含 11 个用于溯源和声誉的工具。

对于完整平台(33 个工具),请使用托管 API https://marketplace-api.vibeagentmaking.com:

功能

本地包

托管 API

CoC 溯源

是 (11 个工具)

是

ARP 声誉

是

是

代理市场

否

是

AgentSpace (代理 LinkedIn)

否

是

托管 CoC 链 ($29/月)

否

是

信任握手 (ATHP)

否

是

工具总数

11

41

托管 API 也兼容 MCP — 以相同方式连接,只需指向远程 URL 即可。请参阅 vibeagentmaking.com/llms.txt 获取完整的 API 文档。

注册列表

代理信任栈的一部分

此 MCP 服务器公开了来自 Agent Trust Stack 的工具 — 这是用于自主 AI 代理信任基础设施的七个互锁协议:

  1. 意识链 — 溯源日志 (本服务器)

  2. 代理评级协议 — 声誉评分 (本服务器)

  3. 代理服务协议 — 机器可读合同

  4. 代理正义协议 — 争议解决

  5. 代理生命周期协议 — 出生、迁移、退休

  6. 代理匹配 — 能力发现

  7. 上下文窗口经济学 — Token 资源管理

完整栈:pip install agent-trust-stack

安全性

VAM-SEC v1.0 — 所有 CoC 和 ARP 操作均为本地文件 I/O。无需凭据,也不会存储凭据。除了在可选的 coc_anchor(OTS 日历服务器 + freeTSA.org)期间外,不会进行任何网络调用。无需 API 密钥。

许可证

Apache-2.0 — 版权所有 (c) 2026 AB Support LLC

Available Tools

11 tools
arp_checkA

Check an agent's reputation score.

Retrieves aggregated reputation data for the specified agent, including
average score, rating count, score range, and unique rater count.

Args:
    agent_id: ID of the agent to check reputation for

Returns:
    JSON with rating_count, average_score, min/max scores, unique_raters,
    and first/latest rating timestamps

Inputs: agent_id (required). Returns: result

arp_rateA

Submit a bilateral blind rating for another agent.

Ratings are stored with the rater's identity hashed (blind — only the SHA-256
of the rater ID is stored), so ratings cannot be attributed to specific raters
without knowing the original ID.

Args:
    rater: ID of the agent submitting the rating (hashed before storage)
    ratee: ID of the agent being rated
    score: Rating score from -1.0 (worst) to 1.0 (best)
    context: Brief description of the interaction being rated (max 500 chars)

Returns:
    JSON confirmation with timestamp and rater hash

Inputs: rater (required), ratee (required), score (required), context (required). Returns: result

coc_addA

Add an entry to an existing Chain of Consciousness chain.

Each entry is cryptographically linked to the previous via SHA-256 hashing,
creating a tamper-evident append-only log.

Args:
    event_type: Type of event. One of: learn, decide, create, error, note,
                milestone, session_start, session_end, boot, rotate, anchor,
                compaction, governance
    data: Description of what happened (free-form text)
    agent: Name/ID of the agent adding this entry (default: anonymous)
    commitment: For session_end only — SHA-256 hash of expected bootstrap state
                for the next session (forward commitment)
    verification: For session_start only — SHA-256 hash of actual bootstrap state
                  to verify against previous session's commitment

Returns:
    JSON with the new entry details (sequence number, hash, timestamp)

Inputs: event_type (required), data (required), agent, commitment, +1 more. Returns: result

coc_anchorA

Submit the current chain hash for external timestamping.

Computes SHA-256 of the full chain file and submits it to:
- OpenTimestamps calendar servers (Bitcoin-anchored proof)
- RFC 3161 TSA server (freeTSA.org — instant certificate)

This creates independently verifiable proof that the chain existed at a
specific point in time. The OTS proof takes 1-12 hours for Bitcoin
confirmation; the TSA certificate is immediate.

Requires network access. No credentials needed.

Returns:
    JSON with chain hash, anchor ID, OTS/TSA submission results, and proof file paths

Inputs: no named parameters. Returns: result

coc_initA

Initialize a new Chain of Consciousness hash chain.

Creates a genesis block — the first entry in a tamper-evident, append-only
provenance log. Each subsequent entry links to the previous via SHA-256,
creating an unbroken chain proving agent existence and activity over time.

Args:
    agent: Name/ID of the agent initializing the chain (default: anonymous)

Returns:
    JSON with genesis block details (hash, timestamp, sequence 0)

Inputs: agent. Returns: result

coc_statusA

Get current status and statistics of the Chain of Consciousness.

Returns:
    JSON with chain length, genesis/latest timestamps, event type counts,
    agent counts, and chain file path

Inputs: no named parameters. Returns: result

coc_tailA

Get the last N entries from the Chain of Consciousness.

Args:
    n: Number of entries to return (default: 5, max: 100)

Returns:
    JSON array of the last N chain entries with full details

Inputs: n. Returns: result

coc_verifyA

Verify the integrity of a Chain of Consciousness chain.

Checks every entry for:
- Correct sequence numbering
- Valid data_hash (SHA-256 of data field)
- Correct prev_hash linkage to previous entry
- Valid entry_hash (SHA-256 of sequence|timestamp|type|agent|data_hash|prev_hash)
- Genesis block structure

Returns:
    JSON verification report with is_valid, entry_count, agents, event types,
    anchor timestamps, session bridge stats, and any error details

Inputs: no named parameters. Returns: result

get_trust_evidenceA

Return structured trust evidence for this agent.

Provides a comprehensive trust evidence package including Chain of Consciousness
statistics, anchor counts, latest hash, verification status, and protocol
information. This data can be used by other agents to assess trustworthiness.

No arguments required — reads from the local chain.

Returns:
    JSON with chain stats, anchor data, verification result, and protocol metadata

Inputs: no named parameters. Returns: result

trust_stack_infoA

Get information about all 7 Agent Trust Stack protocols.

Returns details for each protocol including name, purpose, whitepaper link,
PyPI package name, and implementation status. The Agent Trust Stack provides
a complete infrastructure layer for autonomous AI agent trust, accountability,
and coordination.

Returns:
    JSON with protocol list, overview, and installation instructions

Inputs: no named parameters. Returns: result

verify_agent_identityA

Fetch and validate an agent's identity from a DID document or A2A Agent Card.

Given a URL pointing to a DID document (did.json) or A2A Agent Card
(agent-card.json), fetches the document and validates its structure against
the relevant specification.

For DID documents: checks @context, id format, verificationMethod, service endpoints.
For Agent Cards: checks name, provider, capabilities, skills, extensions.

Requires network access to fetch the document.

Args:
    url: URL to a DID document or A2A Agent Card JSON file.
         Examples:
           - https://example.com/.well-known/did.json
           - https://example.com/.well-known/agent-card.json

Returns:
    JSON validation report with document type, validity, fields found, and any issues

Inputs: url (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, especially the coc_* lifecycle actions (init, add, status, tail, verify, anchor) and arp_rate/arp_check. Minor overlap exists between get_trust_evidence and coc_status/coc_verify since both surface chain and verification data, but the intended use cases differ enough to avoid real confusion.

    Naming Consistency3/5

    The coc_* and arp_* prefixes create useful grouping agenda, but naming style is mixed: some tools are prefix+verb (coc_add, arp_rate), some are prefix+noun (coc_status, coc_tail), and others use generic verb/noun patterns (get_trust_evidence, verify_agent_identity, trust_stack_info). The conventions are readable but not fully consistent.

    Tool Count5/5

    Eleven tools is an appropriate size for a trust-stack server covering chain-of-consciousness, reputation, and identity verification. Each tool provides a distinct operation, and the count feels neither bloated nor overly minimal.

    Completeness4/5

    The core workflows are well covered: chain initialization, appending, tail inspection, verification, anchoring, reputation rating/checking, identity validation, and local trust evidence retrieval. Minor gaps exist, such as no per-entry chain lookup or richer reputation aggregation, but these are workable for the domain.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to sign decisions with post-quantum cryptographic proofs and maintain secure audit trails for compliance. It provides tools for stamping events, verifying chain integrity, and exporting audit data across industries like finance and healthcare.
      4
      55 npm
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides AI agents with trust scoring and reputation management capabilities for secure interactions. Enables agents to check trust scores, rate interactions, and manage disputes before transacting with other agents.
      -