feat(agentgateway): add mcp tools filtering#194
Open
jplbrun wants to merge 5 commits into
Open
Conversation
NicoleMGomes
reviewed
Jul 1, 2026
| credentials: CustomerCredentials, | ||
| system_token: str, | ||
| timeout: float, | ||
| names: list[str] | None = None, |
Contributor
There was a problem hiding this comment.
can't we receive filter object directly?
Contributor
Author
There was a problem hiding this comment.
We can, I'll include a commit changing the places that use name/ord_id to use filter instead. What do you think about me also changing get_agent_cards_lob in this PR so it follows the same patterns?
NicoleMGomes
reviewed
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds filtering support to list_mcp_tools via a new MCPToolFilter dataclass. The implementation mirrors the existing AgentCardFilter / list_agent_cards pattern:
before any MCP server is queried, saving a network round-trip per excluded server.
Both the LoB and customer flows are supported.
Related Issue
Closes #177
Type of Change
Please check the relevant option:
How to Test
Checklist
Before submitting your PR, please review and check the following:
Breaking Changes
None. The filter parameter defaults to None, so all existing call sites are unaffected.
Additional Notes
N/A