Skip to content

Add filter tool functionality in MCP servers and allow specifying MCP type #4357

@wasaybaig201

Description

@wasaybaig201

Feature Type

I cannot use LiveKit without it

Feature Description

Currently, the LiveKit Agents framework automatically creates MCP server connections using MCPServerHTTP, but there's no way to:

  • Specify which MCP transport type to use (SSE vs Streamable HTTP)
  • Filter which tools are exposed from an MCP server to the agent

When integrating with MCP servers (especially third-party services like Pipedream), we often need to control which tools are available to specific agents to prevent agents from calling inappropriate or unnecessary tools, and
choose the transport mechanism which is not dependent on MCP URL.

Workarounds / Alternatives

Currently, I've implemented a custom workaround by creating a MCPServerHTTPFiltered class that wraps the standard MCPServerHTTP, with an addition that it has an allowed_tools and type attributes. I can create a PR for this.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions