Skip to content

add the ability to set a list of allowed tools on an mcp server #1219

Open
@JohnUiterwyk

Description

@JohnUiterwyk

Description

There are cases where we may want to restrict an agent to only be allowed to use a subset of tools returned by a particular MCP server. For example for a filesystem MCP server, we may want to restrict the agent to tools that are read only. This can be support by adding a allowed_tools parameter to the MCPServer class.
Initially we this could be supported through by an explicit list of tool names; subsequent improvements could support regex/glob patterns.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions