Skip to content

Latest commit

 

History

History
 
 

README.md

AgentMesh Examples

Real-world examples and integrations showcasing how to secure AI agents with AgentMesh.

New to AgentMesh? Start here for a 5-minute tutorial to create your first governed agent.


Quick Start

Each example is self-contained with its own README and dependencies. Navigate to any example directory and follow the instructions.

Examples

Use Case: Secure an MCP (Model Context Protocol) tool server with identity and policy enforcement.

What you'll learn:

  • Register MCP tools with AgentMesh
  • Enforce rate limiting and access policies
  • Audit tool invocations
  • Automatically revoke access on policy violations

Best for: Anyone building MCP servers or tool-based agents


Use Case: Build a governed multi-agent customer service system with ticket routing, escalation, and knowledge base access.

What you'll learn:

  • Agent-to-agent (A2A) trust handshakes
  • Delegation chains (supervisor → specialist agents)
  • Cross-agent capability scoping
  • Collaborative trust scoring

Best for: Enterprise customer service automation


Use Case: Deploy a HIPAA-compliant agent for healthcare data analysis with automated compliance reporting.

What you'll learn:

  • HIPAA compliance automation
  • PHI (Protected Health Information) handling policies
  • Merkle-chained audit logs for compliance
  • Automated compliance report generation

Best for: Healthcare organizations, compliance teams


Use Case: Secure a DevOps agent that deploys infrastructure, manages secrets, and executes privileged operations.

What you'll learn:

  • Narrow delegation for sub-agents (deploy, secrets, DB)
  • Just-in-time credential issuance (15-min TTL)
  • Approval workflows for production deployments
  • Risk-based adaptive scoring

Best for: Platform engineers, SRE teams, DevOps automation


Use Case: An agent that reviews pull requests with governance, preventing malicious code suggestions.

What you'll learn:

  • Real-world GitHub integration
  • Output sanitization policies
  • Shadow mode for testing
  • Trust score decay on bad suggestions

Best for: DevRel teams, open source maintainers


Integration Guides

Quick-start guides for integrating AgentMesh with popular agent frameworks:


Running Examples

Prerequisites

# Install AgentMesh
pip install agentmesh-platform

# Or install from source
git clone https://github.com/imran-siddique/agent-mesh.git
cd agent-mesh
pip install -e .

Running an Example

# Navigate to example
cd examples/01-mcp-tool-server

# Install dependencies
pip install -r requirements.txt

# Run the example
python main.py

Contributing Examples

Have a great use case? We'd love to see it!

  1. Fork the repository
  2. Create a new example directory: examples/0X-your-example/
  3. Include:
    • README.md - Clear explanation and instructions
    • main.py - Working example code
    • requirements.txt - Dependencies
    • agentmesh.yaml - Agent configuration
    • policies/ - Example policies
  4. Submit a pull request

Getting Help


Remember: These examples demonstrate AgentMesh's capabilities. Always adapt them to your specific security and compliance requirements before deploying to production.