What is MCP?
Model Context Protocol (MCP) is Anthropic’s open protocol for connecting AI systems to external tools and data sources. With Cloudflare’s announcement of MCP support (November 2024), Conductor implements HTTP-only MCP for secure, scalable tool integration on the edge.Why MCP?
- Standardized - Open protocol for tool integration
- Secure - Built-in auth (bearer, OAuth, HMAC)
- Scalable - HTTP-based, works on edge
- Interoperable - Works with any MCP-compatible system
Bidirectional MCP
Conductor supports MCP in both directions:- Outbound (Consumer) - Call external MCP servers using the
toolsoperation - Inbound (Provider) - Expose ensembles as MCP tools via
/mcpendpoints
Part 1: Using External MCP Tools
Call external MCP servers from your ensembles.1. Configure MCP Servers
Createconductor.config.ts in your project root:
2. Set Environment Variables
3. Use Tools in Ensembles
Examples: Common MCP Servers
GitHub MCP
Brave Search MCP
Authentication Options
Bearer Token:Part 2: Exposing Ensembles as MCP Tools
Make your ensembles available as MCP tools to external systems.1. Configure MCP Exposure
Addexpose configuration to your ensemble:
2. Deploy to Cloudflare Workers
3. Discover Available Tools
External systems can discover your tools:4. Invoke Tools
5. Use in Claude Desktop
Configure Claude Desktop to use your MCP server:Complete Example: Bidirectional Integration
Build a system that both consumes and provides MCP tools:Setup: conductor.config.ts
Ensemble 1: Research Assistant (Consumes MCP Tools)
Ensemble 2: PR Analyzer (Exposed as MCP Tool)
Usage
1. Use research-assistant ensemble directly:pr-analyzer tool!
Authentication Best Practices
1. Use Default-Deny Security
2. Rotate Tokens Regularly
3. Use OAuth for Third-Party Access
4. Monitor Token Usage
Testing MCP Integration
Test Outbound (Consuming Tools)
Test Inbound (Exposed Tools)
Common Patterns
Pattern 1: Aggregator Tool
Combine multiple MCP tools into one:Pattern 2: Transform Tool
Add AI-powered transformations:Pattern 3: Chain Tools
Create workflows across MCP servers:Troubleshooting
Tool Discovery Fails
Authentication Errors
Timeout Issues
OAuth Token Refresh
OAuth tokens are automatically refreshed. Check logs:Next Steps
tools Operation
Detailed tools operation reference
Webhooks
Inbound webhook integration
Notifications
Outbound webhook notifications
Security
Authentication best practices

