Skip to content

mcp: add tools/list support.#44014

Open
guoyilin42 wants to merge 1 commit intoenvoyproxy:mainfrom
guoyilin42:mcp3
Open

mcp: add tools/list support.#44014
guoyilin42 wants to merge 1 commit intoenvoyproxy:mainfrom
guoyilin42:mcp3

Conversation

@guoyilin42
Copy link
Contributor

Commit Message: mcp: add tools/list support.
Additional Description: N/A
Risk Level: Low
Testing: Unit and Integ test
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Yilin Guo <guoyilin@google.com>
@guoyilin42
Copy link
Contributor Author

@paulhong01

@guoyilin42
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the tools/list method in the MCP JSON REST Bridge filter, enhancing its functionality to discover available tools. Key improvements include robust handling of Content-Length and Transfer-Encoding headers to prevent HTTP request smuggling vulnerabilities, and better error responses for Method Not Allowed by including an Allow header. The changes are well-covered by new unit and integration tests, ensuring the stability and correctness of the new features and fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant