Seems that the MCP (model context protocol) plugin...
# ask-ai
w
Seems that the MCP (model context protocol) plugin doesn’t support any active tool updates (via notifications) is that correct?
t
Thanks for reaching out, Emile. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The MCP (Model Context Protocol) plugin doesn’t currently support active tool updates through push notifications. Instead, it works with a cache-based, pull-oriented approach for managing tools. This means tools are fetched when needed, and updates happen through cache invalidation or manual refreshes. If you’re looking for real-time tool updates, you might consider setting up a custom notification system outside of the MCP plugin, like using WebSocket connections or periodic polling combined with cache invalidation. I’m here to help if you’d like to explore and design a solution that fits your specific needs! Just let me know. Sources: livekit-agents/livekit/agents/voice/agent_session.py | mcp_client/server.py | Agent Session & Client Integration | livekit/livekit_composite | DeepWiki
w
Or i could just implement the MCP official context model tools update notification
t
Could you please help me understand a bit more about the type of notification behavior you're hoping for? For example: • Would you like automatic detection when MCP server tools become available or unavailable? • Are you looking for real-time notifications to clients when the agent’s tool set changes? • Or perhaps event-driven updates triggered by changes in the MCP server’s tool catalog? • Maybe integration with a specific MCP notification protocol? Knowing this will really help me guide you better and offer the most helpful suggestions. I'm here to support you every step of the way! Sources: Tool definition and use | LiveKit Docs | livekit-plugins/livekit-plugins-ultravox/livekit/plugins/ultravox/realtime/... | mcp_client/agent_tools.py
t
The MCP plugin in LiveKit doesn’t explicitly confirm support for the "List Changed Notification" feature from the MCP specification. Right now, it uses a cache-based, pull-oriented approach for tool updates, so there aren’t automatic push notifications from the server about tool list changes. If your MCP server does actively send List Changed Notifications, it might be helpful to test whether the LiveKit MCP implementation can handle these automatically or if you’ll need to manually invalidate the cache. Please feel free to reach out if you’d like some help exploring this further or working on a workaround—I’m here to support you! Sources: Tool definition and use | LiveKit Docs | livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | mcp_client/agent_tools.py