ETDI Examples
This section contains examples and guides for using ETDI in various scenarios.
Core Examples
- Basic ETDI Usage: Get started with ETDI's core features
- E2E Demo: Complete end-to-end demonstration
- Tool Poisoning Demo: Security attack prevention
OAuth Integration
- OAuth Providers: Integrate various OAuth providers
- Auth0 Integration: Complete Auth0 setup guide
FastMCP Integration
- FastMCP Overview: Using ETDI with FastMCP servers
Example Categories
Security Examples
- Tool poisoning prevention
- OAuth authentication
- Request signing
- Call chain verification
Integration Examples
- FastMCP server integration
- Custom OAuth providers
- Event system usage
- Tool discovery
Development Examples
- Basic tool registration
- Custom provider implementation
- Security policy configuration
- Event handling
Running the Examples
Most examples can be run directly from the examples directory:
# Basic usage example
python examples/etdi/basic_usage.py
# Complete E2E demo
python examples/etdi/run_e2e_demo.py
# Tool poisoning prevention demo
python examples/etdi/tool_poisoning_demo/run_real_server_demo.py
Example Requirements
Make sure you have:
- Python 3.9 or higher
- ETDI package installed
- Required environment variables set
- OAuth provider credentials (if using OAuth examples)
Contributing Examples
Want to contribute a new example? Follow these steps:
- Create your example in the appropriate directory
- Add documentation in the docs/examples directory
- Update this index
- Submit a pull request
See Contributing Guide for more details.