Логотип AgentMesh

AgentMesh

Спільнота
imran-siddique

[DEPRECATED] Moved to microsoft/agent-governance-toolkit

Видавецьimran-siddique
Репозиторійagent-mesh
МоваPython
Форки
7
Зірки
18
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    AgentMesh надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 18, форки: 7 — у пов’язаному репозиторії.

AgentMesh — Community Edition

SSL for AI Agents

The trust, identity, and governance layer for production AI agent systems

Identity · Trust · Reward · Governance

GitHub Stars Sponsor CI License Python TypeScript Go PyPI Downloads Downloads OWASP Agent-OS Compatible Featured in awesome-llm-apps Discussions Integrated in LlamaIndex awesome-AI-Agents awesome-copilot awesome-opentelemetry

⭐ If this project helps you, please star it! It helps others discover AgentMesh.

🔗 Part of the Agent Governance Ecosystem — Works with Agent OS (kernel), Agent Hypervisor (runtime), and Agent SRE (reliability)

📦 Install the full stack: pip install ai-agent-governance[full] — PyPI | GitHub

Quick Start • MCP Proxy • Examples • Agent OS • Agent Hypervisor

Trusted By

Featured In

🏢 Production Integrations

FrameworkStarsStatusWhat We Ship
Dify65K ⭐✅ MergedTrust verification plugin in Dify Marketplace
LlamaIndex47K ⭐✅ MergedTrustedAgentWorker + TrustGatedQueryEngine
Microsoft Agent-Lightning15K ⭐✅ MergedGovernance kernel for RL training safety
LangGraph24K ⭐📦 PyPITrust-scored state transitions
OpenAI Agents SDK—📦 PyPITool-level governance guardrails
Haystack22K ⭐🔄 In ReviewGovernancePolicyChecker + TrustGate components

AgentMesh is "SSL for AI Agents" — the trust and identity layer that makes multi-agent systems enterprise-ready. Every agent gets a cryptographic identity. Every interaction is verified. Every action is audited.


Overview

AgentMesh is the first platform purpose-built for the Governed Agent Mesh — the cloud-native, multi-vendor network of AI agents that will define enterprise operations.

The protocols exist (A2A, MCP, IATP). The agents are shipping. The trust layer does not. AgentMesh fills that gap.

┌─────────────────────────────────────────────────────────────────────────────┐
│                           AGENTMESH ARCHITECTURE                            │
├─────────────────────────────────────────────────────────────────────────────┤
│  LAYER 4  │  Reward & Learning Engine                                       │
│           │  Per-agent trust scores · Behavioral rewards · Adaptive          │
├───────────┼─────────────────────────────────────────────────────────────────┤
│  LAYER 3  │  Governance & Compliance Plane                                  │
│           │  Policy engine · EU AI Act / SOC2 / HIPAA · Audit logs          │
├───────────┼─────────────────────────────────────────────────────────────────┤
│  LAYER 2  │  Trust & Protocol Bridge                                        │
│           │  A2A · MCP · IATP · Protocol translation · Capability scoping   │
├───────────┼─────────────────────────────────────────────────────────────────┤
│  LAYER 1  │  Identity & Zero-Trust Core                                     │
│           │  Agent CA · Ephemeral creds · SPIFFE/SVID · Human sponsors      │
└───────────┴─────────────────────────────────────────────────────────────────┘

Why AgentMesh?

The Problem

  • 40:1 to 100:1 — Non-human identities now outnumber human identities in enterprises
  • AI agents are the fastest-growing, least-governed identity category
  • A2A gives agents a common language. MCP gives agents tools. Neither enforces trust.

The Solution

AgentMesh provides:

CapabilityDescription
Agent IdentityFirst-class identity with human sponsor accountability
Ephemeral Credentials15-minute TTL by default, auto-rotation
Protocol BridgeNative A2A, MCP, IATP with unified trust model
Reward EngineContinuous behavioral scoring
Compliance AutomationEU AI Act, SOC 2, HIPAA, GDPR mapping

How It Works

1. Agent Registration & DID Issuance

2. Trust Handshake Between Two Agents

3. MCP Proxy Request Flow

4. Credential Rotation Lifecycle

5. Trust Score Update After Task Completion

Quick Start

Option 1: Secure Claude Desktop (Recommended)

bash
# Install AgentMesh
pip install agentmesh-platform

# Set up Claude Desktop to use AgentMesh governance
agentmesh init-integration --claude

# Restart Claude Desktop - all MCP tools are now secured!

Claude will now route tool calls through AgentMesh for policy enforcement and trust scoring.

Option 2: Create a Governed Agent

bash
# Initialize a governed agent in 30 seconds
agentmesh init --name my-agent --sponsor alice@company.com

# Register with the mesh
agentmesh register

# Start with governance enabled
agentmesh run

Option 3: Wrap Any MCP Server

bash
# Proxy any MCP server with governance
agentmesh proxy --target npx --target -y \
  --target @modelcontextprotocol/server-filesystem \
  --target /path/to/directory

# Use strict policy (blocks writes/deletes)
agentmesh proxy --policy strict --target <your-mcp-server>

Installation

bash
pip install agentmesh-platform

Or install with extra dependencies:

bash
pip install agentmesh-platform[server]  # FastAPI server
pip install agentmesh-platform[dev]     # Development tools

Or from source:

bash
git clone https://github.com/imran-siddique/agent-mesh.git
cd agent-mesh
pip install -e .

Examples & Integrations

Real-world examples to get started quickly:

ExampleUse CaseKey Features
Registration Hello WorldAgent registration walkthroughIdentity, DID, sponsor handshake
MCP Tool ServerSecure MCP server with governanceRate limiting, output sanitization, audit logs
Multi-Agent Customer ServiceCustomer support automationTrust handshakes, delegation, A2A
Healthcare HIPAAHIPAA-compliant data analysisCompliance automation, PHI protection, audit logs
DevOps AutomationJust-in-time DevOps credentialsEphemeral creds, capability scoping
GitHub PR ReviewCode review agentOutput policies, shadow mode, trust decay

Framework integrations:

📚 Browse all examples →

Trust Visualization Dashboard

Interactive Streamlit dashboard:

bash
cd examples/06-trust-score-dashboard
pip install -r requirements.txt
streamlit run trust_dashboard.py

Tabs: Trust Network | Trust Scores | Credential Lifecycle | Protocol Traffic | Compliance

The AgentMesh Proxy: "SSL for AI Agents"

Problem: AI agents like Claude Desktop have unfettered access to your filesystem, database, and APIs through MCP servers. One hallucination could be catastrophic.

Solution: AgentMesh acts as a transparent governance proxy:

bash
# Before: Unsafe direct access
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me"]
    }
  }
}

# After: Protected by AgentMesh
{
  "mcpServers": {
    "filesystem": {
      "command": "agentmesh",
      "args": [
        "proxy", "--policy", "strict",
        "--target", "npx", "--target", "-y",
        "--target", "@modelcontextprotocol/server-filesystem",
        "--target", "/Users/me"
      ]
    }
  }
}

What you get:

  • 🔒 Policy Enforcement - Block dangerous operations before they execute
  • 📊 Trust Scoring - Per-agent trust scoring (800-1000 scale)
  • 📝 Audit Logs - Record of every action
  • ✅ Verification Footers - Visual confirmation in outputs

Set it up in 10 seconds:

bash
agentmesh init-integration --claude
# Restart Claude Desktop - done!

Learn more: Claude Desktop Integration Guide

Core Concepts

1. Agent Identity

Every agent gets a unique, cryptographically bound identity:

python
from agentmesh import AgentIdentity

identity = AgentIdentity.create(
    name="data-analyst-agent",
    sponsor="alice@company.com",  # Human accountability
    capabilities=["read:data", "write:reports"],
)

2. Scope Chains

Agents can delegate to sub-agents, but scope always narrows:

python
# Parent agent delegates to child
child_identity = parent_identity.delegate(
    name="summarizer-subagent",
    capabilities=["read:data"],  # Subset of parent's capabilities
)

3. Trust Handshakes (IATP)

Cross-agent communication requires trust verification:

python
from agentmesh import AgentIdentity, TrustBridge

# Create your identity first
identity = AgentIdentity.create(name="my-agent", sponsor="admin@company.com")

# Set up trust bridge
bridge = TrustBridge(agent_did=str(identity.did))

# Verify peer before communication
verification = await bridge.verify_peer(
    peer_did="did:mesh:other-agent",
    required_trust_score=700,
)

if verification.verified:
    print(f"Peer trusted: score={verification.trust_score}")

4. Reward Scoring

Every action is scored to maintain agent trust:

python
from agentmesh import RewardEngine

engine = RewardEngine()

# Actions are automatically scored
score = engine.get_agent_score("did:mesh:my-agent")
# Returns trust score on 0-1000 scale

5. Policy Engine

Declarative governance policies:

yaml
# policy.yaml
version: "1.0"
agent: "data-analyst-agent"

rules:
  - name: "no-pii-export"
    condition: "action.type == 'export' and data.contains_pii"
    action: "deny"
    
  - name: "rate-limit-api"
    condition: "action.type == 'api_call'"
    limit: "100/hour"
    
  - name: "require-approval-for-delete"
    condition: "action.type == 'delete'"
    action: "require_approval"
    approvers: ["security-team"]

Protocol Support

ProtocolStatusDescription
AI Card✅ AlphaCross-protocol identity standard (src/agentmesh/integrations/ai_card/)
A2A✅ AlphaAgent-to-agent coordination (full adapter in src/agentmesh/integrations/a2a/)
MCP✅ AlphaTool and resource binding (trust-gated server/client in src/agentmesh/integrations/mcp/)
IATP✅ AlphaTrust handshakes (via agent-os, graceful fallback if unavailable)
ACP🔜 PlannedLightweight messaging (protocol bridge supports routing, adapter not yet implemented)
SPIFFE✅ AlphaWorkload identity

Architecture

agentmesh/
├── identity/           # Layer 1: Identity & Zero-Trust
│   ├── agent_id.py     # Agent identity management (DIDs, Ed25519 keys)
│   ├── credentials.py  # Ephemeral credential issuance (15-min TTL)
│   ├── delegation.py   # Scope chains
│   ├── spiffe.py       # SPIFFE/SVID integration
│   ├── risk.py         # Continuous risk scoring
│   └── sponsor.py      # Human sponsor accountability
│
├── trust/              # Layer 2: Trust & Protocol Bridge
│   ├── bridge.py       # Multi-protocol trust bridge (A2A/MCP/IATP/ACP)
│   ├── handshake.py    # IATP trust handshakes
│   ├── cards.py        # Trusted agent cards
│   └── capability.py   # Capability scoping
│
├── governance/         # Layer 3: Governance & Compliance
│   ├── policy.py       # Declarative policy engine (YAML/JSON)
│   ├── compliance.py   # Compliance mapping (EU AI Act, SOC2, HIPAA, GDPR)
│   ├── audit.py        # Audit logs
│   └── shadow.py       # Shadow mode for policy testing
│
├── reward/             # Layer 4: Reward & Learning
│   ├── engine.py       # Multi-dimensional reward engine
│   ├── scoring.py      # Trust scoring
│   └── learning.py     # Adaptive learning
│
├── integrations/       # Protocol & framework adapters
│   ├── ai_card/        # AI Card standard (cross-protocol identity)
│   ├── a2a/            # Google A2A protocol support
│   ├── mcp/            # Anthropic MCP trust-gated server/client
│   ├── langgraph/      # LangGraph trust checkpoints
│   └── swarm/          # OpenAI Swarm trust-verified handoffs
│
├── cli/                # Command-line interface
│   ├── main.py         # agentmesh init/register/status/audit/policy
│   └── proxy.py        # MCP governance proxy
│
├── core/               # Low-level services
│   └── identity/ca.py  # Certificate Authority (SPIFFE/SVID)
│
├── storage/            # Storage abstraction (memory, Redis, PostgreSQL)
│
├── observability/      # OpenTelemetry tracing & Prometheus metrics
│
└── services/           # Service wrappers (registry, audit, reward)

Compliance

AgentMesh automates compliance mapping for:

  • EU AI Act — Risk classification, transparency requirements
  • SOC 2 — Security, availability, processing integrity
  • HIPAA — PHI handling, audit controls
  • GDPR — Data processing, consent, right to explanation
python
from agentmesh import ComplianceEngine, ComplianceFramework

compliance = ComplianceEngine(frameworks=[ComplianceFramework.SOC2, ComplianceFramework.HIPAA])

# Check an action for violations
violations = compliance.check_compliance(
    agent_did="did:mesh:healthcare-agent",
    action_type="data_access",
    context={"data_type": "phi", "encrypted": True},
)

# Generate compliance report
from datetime import datetime, timedelta
report = compliance.generate_report(
    framework=ComplianceFramework.SOC2,
    period_start=datetime.utcnow() - timedelta(days=30),
    period_end=datetime.utcnow(),
)

Threat Model

ThreatAgentMesh Defense
Prompt InjectionTool output sanitized at Protocol Bridge
Credential Theft15-min TTL, instant revocation on trust breach
Shadow AgentsUnregistered agents blocked at network layer
Delegation EscalationChains enforce scope narrowing
Cascade FailurePer-agent trust scoring isolates blast radius

🗺️ Roadmap

QuarterMilestone
Q1 2026✅ Core trust layer, identity, governance engine, 6 framework integrations
Q2 2026TypeScript SDK, Go SDK, Dashboard UI, Plugin Marketplace
Q3 2026AI Card spec contribution, CNCF Sandbox application
Q4 2026Managed cloud service (AgentMesh Cloud), SOC2 Type II

See our full roadmap for details.

Known Limitations & Open Work

Transparency about what's done and what isn't.

Not Yet Implemented

ItemLocationNotes
ACP protocol adaptertrust/bridge.pyBridge routes ACP messages, but no dedicated ACPAdapter class yet
Service wrapper for auditservices/audit/Core audit module (governance/audit.py) is complete; service layer wrapper is a TODO
Service wrapper for reward engineservices/reward_engine/Core reward engine (reward/engine.py) is complete; service layer wrapper is a TODO
Mesh control planeservices/mesh-control-plane/Placeholder directory; no implementation yet
Scope chain cryptographic verificationpackages/langchain-agentmesh/trust.pySimulated verification; full cryptographic chain validation not yet implemented

Integration Caveats (Dify)

The Dify integration has these documented limitations:

  • Request body signature verification (X-Agent-Signature header) is not yet verified by middleware
  • Trust score time decay is not yet implemented (scores don't decay over time)
  • Audit logs are in-memory only (not persistent across multi-worker deployments)
  • Environment variable configuration requires programmatic initialization (not auto-wired)

Infrastructure

  • Redis/PostgreSQL storage providers: Implemented but require real infrastructure for testing (unit tests use in-memory provider)
  • Kubernetes Operator: GovernedAgent CRD defined, but no controller/operator to reconcile it
  • SPIRE Integration: SPIFFE identity module exists; real SPIRE agent integration is stubbed
  • Performance targets: Latency overhead (<5ms) and throughput (10k reg/sec) are design targets, not yet benchmarked

Documentation

  • docs/rfcs/ — Directory exists, no RFCs written yet
  • docs/architecture/ — Directory exists, no architecture docs yet (see IMPLEMENTATION-NOTES.md for current notes)

Dependencies

AgentMesh builds on:

  • Agent OS — IATP protocol, Nexus trust exchange
  • Agent Hypervisor — Runtime session governance
  • Agent SRE — SLO monitoring, chaos testing
  • SPIFFE/SPIRE — Workload identity
  • OpenTelemetry — Observability

Frequently Asked Questions

What is an agent mesh? An agent mesh is a trust and communication infrastructure for multi-agent AI systems, analogous to a service mesh for microservices. AgentMesh provides identity (DID-based), per-agent trust scoring (0-1000 scale), ephemeral credentials, reward distribution, and automated compliance mapping.

How does AgentMesh handle trust between agents? Every agent gets a trust score from 0 to 1000 based on behavioral history, vouching from other agents, and compliance with governance policies. Trust scores gate what actions agents can perform and which sessions they can join. The score updates in real-time based on agent behavior.

What protocols does AgentMesh bridge? AgentMesh unifies three major protocols: Google's A2A (Agent-to-Agent) for inter-agent communication, Anthropic's MCP (Model Context Protocol) for tool integration, and IATP (Inter-Agent Trust Protocol) for cryptographic trust establishment. This means agents built on different frameworks can communicate through a single trust-verified channel.

Does AgentMesh help with regulatory compliance? Yes. AgentMesh provides automated compliance mapping for EU AI Act, SOC 2, HIPAA, and GDPR. Combined with audit trails and deterministic policy enforcement from Agent OS, it provides the documentation and safety guarantees needed for regulatory compliance.

Contributing

See CONTRIBUTING.md for guidelines.

License

Apache 2.0 — See LICENSE for details.


Agents shouldn't be islands. But they also shouldn't be ungoverned.

AgentMesh is the trust layer that makes the mesh safe enough to scale.

Встановлення

TypingMind
Передумови:

Node.js 18+

{
  "mcpServers": {
    "imran-siddique-agent-mesh": {
      "command": "uvx",
      "args": [
        "agentmesh-platform"
      ]
    }
  }
}

Використовуйте MCP AgentMesh з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення AgentMesh ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте AgentMesh як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP AgentMesh.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "imran-siddique-agent-mesh": {
      "command": "npx",
      "args": [
        "-y",
        "agentmesh-platform"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для AgentMesh, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для AgentMesh.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через AgentMesh?
AgentMesh
Звісно. Я це прочитав.
Ось що я знайшов за допомогою AgentMesh.

Поширені запитання

Для чого використовується сервер MCP AgentMesh?

AgentMesh — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP AgentMesh з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати AgentMesh з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP AgentMesh із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши AgentMesh, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP AgentMesh до TypingMind?

AgentMesh працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP AgentMesh у TypingMind?

AgentMesh надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP AgentMesh?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо AgentMesh потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇