# Ticket: Integrate MCP with LLM Host ## Ticket Information - **ID**: TICKET-030 - **Title**: Integrate MCP with Chosen LLM Host - **Type**: Feature - **Priority**: High - **Status**: Done - **Track**: Tools/MCP, LLM Infra - **Milestone**: Milestone 2 - Voice Chat MVP - **Created**: 2024-01-XX ## Description Integrate MCP server with LLM: - Write adapter converting model tool-use outputs into MCP calls - Convert MCP responses back to LLM format - Handle tool discovery and registration - Error handling and retries ## Acceptance Criteria - [x] MCP-LLM adapter implemented (`mcp-adapter/adapter.py`) - [x] Tool-use outputs → MCP calls working - [x] MCP responses → LLM format working - [x] Tool discovery automatic (`discover_tools()`) - [x] Error handling robust ## Technical Details Adapter should: - Parse LLM function calls - Map to MCP tool calls - Handle responses and errors - Support streaming if needed ## Dependencies - TICKET-029 (MCP server) - TICKET-021 or TICKET-022 (LLM server with function-calling) ## Related Files - `home-voice-agent/mcp-adapter/` (to be created) ## Notes Needs LLM server with function-calling support. Critical for tool integration.