feat(mcp):support higress tool search#337
Merged
AlbumenJ merged 7 commits intoagentscope-ai:mainfrom Dec 26, 2025
Merged
Conversation
Change-Id: Ia1745a9f18df02cea558774c9ecb994111d59931
Change-Id: I2cda9dec214e243973d7695e0471f6b14e6f1a69
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds Higress AI Gateway integration to AgentScope-Java, enabling unified access to MCP tools through the Higress gateway with semantic search capabilities for intelligent tool selection.
Key Changes:
- New
agentscope-extensions-higressmodule with builder pattern for client configuration - Semantic tool search via the
x_higress_tool_searchtool to automatically select relevant tools - Support for both SSE and StreamableHTTP transport types
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
docs/zh/task/mcp.md |
Added Chinese documentation for Higress integration with usage examples |
docs/en/task/mcp.md |
Added English documentation for Higress integration with usage examples |
agentscope-extensions/pom.xml |
Added Higress module to extensions parent POM |
agentscope-extensions/agentscope-extensions-higress/pom.xml |
New module POM with dependencies on agentscope-core and MCP SDK |
HigressMcpClientBuilder.java |
Builder class for configuring Higress MCP clients with fluent API |
HigressMcpClientWrapper.java |
Wrapper extending McpClientWrapper to handle Higress-specific operations |
HigressToolSearchResult.java |
Result parser for x_higress_tool_search responses with structured content support |
HigressToolkit.java |
Extended Toolkit class that caches registered Higress clients |
HigressMcpClientBuilderTest.java |
Comprehensive unit tests for builder validation and configuration |
HigressMcpClientWrapperTest.java |
Unit tests for wrapper functionality including tool search and caching |
HigressToolSearchResultTest.java |
Unit tests for parsing various tool search result formats |
HigressToolkitTest.java |
Unit tests for toolkit registration and client caching |
HigressToolExample.java |
Example demonstrating Higress integration with ReActAgent |
agentscope-examples/quickstart/pom.xml |
Added Higress dependency to quickstart examples |
agentscope-distribution/agentscope-bom/pom.xml |
Added Higress extension to BOM for version management |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...-examples/quickstart/src/main/java/io/agentscope/examples/quickstart/HigressToolExample.java
Show resolved
Hide resolved
...-examples/quickstart/src/main/java/io/agentscope/examples/quickstart/HigressToolExample.java
Outdated
Show resolved
Hide resolved
...pe-extensions-higress/src/test/java/io/agentscope/extensions/higress/HigressToolkitTest.java
Outdated
Show resolved
Hide resolved
...tensions-higress/src/main/java/io/agentscope/extensions/higress/HigressMcpClientWrapper.java
Show resolved
Hide resolved
...tensions-higress/src/main/java/io/agentscope/extensions/higress/HigressMcpClientBuilder.java
Outdated
Show resolved
Hide resolved
…mples/quickstart/HigressToolExample.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Change-Id: Id5f63549c11dbf6543db8b4af750a5fc57bd8d41
Change-Id: I56d545b70de625b9eda792c3d2731c29a99a71f0
Change-Id: Icdf7424628e0537a5b42ae0a48a98709ab257687
AlbumenJ
requested changes
Dec 26, 2025
AlbumenJ
approved these changes
Dec 26, 2025
JGoP-L
pushed a commit
to JGoP-L/agentscope-java
that referenced
this pull request
Dec 29, 2025
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.
Change-Id: Ia1745a9f18df02cea558774c9ecb994111d59931
AgentScope-Java Version
[The version of AgentScope-Java you are working on, e.g. 1.0.3, check your pom.xml dependency version or run
mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]Description
feat(mcp):#312
Checklist
Please check the following items before code is ready to be reviewed.
mvn spotless:applymvn test)