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.
Each example is self-contained with its own README and dependencies. Navigate to any example directory and follow the instructions.
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
Quick-start guides for integrating AgentMesh with popular agent frameworks:
- LangChain Integration - Secure LangChain agents
- AutoGPT Integration - Govern AutoGPT instances
- CrewAI Integration - Multi-agent crew governance
# 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 .# Navigate to example
cd examples/01-mcp-tool-server
# Install dependencies
pip install -r requirements.txt
# Run the example
python main.pyHave a great use case? We'd love to see it!
- Fork the repository
- Create a new example directory:
examples/0X-your-example/ - Include:
README.md- Clear explanation and instructionsmain.py- Working example coderequirements.txt- Dependenciesagentmesh.yaml- Agent configurationpolicies/- Example policies
- Submit a pull request
- Documentation: README
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Remember: These examples demonstrate AgentMesh's capabilities. Always adapt them to your specific security and compliance requirements before deploying to production.