Model Context Protocol (MCP)
Production - MCP integration for external tool and context providers
The Model Context Protocol integration enables the AI Service to connect with external MCP servers for tool execution and context provision.
12.6.6.1MCP Architecture
Implemented in data-plane/ai-service/src/llm/mcp/:
# List MCP connections
curl "http://localhost:8000/api/v1/llm/mcp/connections?tenant_id=acme-corp"
# Register MCP server
curl -X POST http://localhost:8000/api/v1/llm/mcp/connections \
-H "Content-Type: application/json" \
-H "X-Tenant-ID: acme-corp" \
-d '{
"name": "GitHub Tools",
"url": "http://mcp-github.internal:3000",
"capabilities": ["tools", "resources"]
}'
# List available tools from MCP server
curl "http://localhost:8000/api/v1/llm/mcp/connections/{conn_id}/tools?tenant_id=acme-corp"