Do you know what MCP capabilities is supported by ...
# ask-ai
d
Do you know what MCP capabilities is supported by LiveKit agents? I have MCP server (HTTP streamable) which has tools, resources and prompts but I’m not sure what is the agent capable of
t
Thanks for reaching out, Marcin. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm glad you're interested in how LiveKit agents support the Model Context Protocol (MCP) for integrating external tools and services. This feature is designed to help you seamlessly load tools from MCP servers, making your agent's execution more dynamic and efficient. Let me walk you through the main capabilities: • Tool Loading: Your agents can easily connect to MCP servers, whether they're HTTP-based or stdio-based, to load tools on the fly. • Dynamic Registration: Tools get registered during runtime and follow standard schemas, ensuring inputs and outputs are well-structured. • Connection Methods: We support HTTP connections for remote services and stdio connections for local tools, giving you flexibility depending on your setup. If you have a particular use case in mind or would like some guidance setting up your MCP server with LiveKit, please don’t hesitate to reach out—I’m here to help! Sources: livekit-agents/livekit/agents/voice/agent_activity.py | LiveKit Docs | Using MCP with LiveKit Agents | Tool definition and use | LiveKit Docs | mcp/http_client.py
d
yes, so I’d like to use MCP resources and prompts, not only tools. Is the client capable of that?
t
Absolutely! LiveKit agents can definitely use MCP resources and prompts alongside tools. This integration is designed to help agents connect smoothly to MCP servers, so they can dynamically load tools, make the most of contextual prompts, and use parameters set by the MCP server while working. For instance, you have the flexibility to set up your agent with specific prompts by including them in the agent’s instructions. These prompts are then sent to the MCP server whenever a tool is invoked. Plus, things like metadata, parameters, and structured arguments can also be really helpful in guiding how the agent interacts with the server. If you'd like, I’m here to help you with setting up those prompts or configuring your MCP server—just let me know! Sources: Tool definition and use | LiveKit Docs | docs/index.yaml | examples/voice_agents/mcp/mcp-agent.py | mcp_client/agent_tools.py | Using MCP with LiveKit Agents
d
Do you have any documentation on that? I can see clearly in
mcp
that it only supports
tools
t
Thanks for reaching out! I wanted to share that LiveKit's MCP integration currently supports only tools. From what I’ve seen in the documentation and examples, resources or prompts aren’t supported through MCP just yet. The integration mainly focuses on dynamically loading and using tools from MCP servers, which are then registered and used during agent execution. If you’re looking to work with resources or prompts, you’d need to handle those outside of the MCP integration for now. Please feel free to let me know if you’d like some guidance or suggestions on alternative ways to manage resources or prompts—I’m here to help! Sources: Using MCP with LiveKit Agents | README.md | README.md | Tool definition and use | LiveKit Docs