MCP: Client-Host-Server Communication
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ MCP Client │ │ MCP Host │ │ MCP Server │
│ (AI Agent) │◄──►│ (Orchestrator) │◄──►│ (Tool Provider) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
- Discovery Phase: Client discovers available servers through the host
- Capability Negotiation: Client and server agree on supported features
- Authentication: Secure connection establishment
- Request/Response Cycle: Actual tool invocation and data exchange
- Session Management: Maintaining connection state and handling cleanup
Transport Mechanisms Supported:
- Standard I/O: For local processes and simple integrations
- HTTP/WebSocket: For remote services and web-based integrations
- Custom Transports: For specialized environments and protocols