Skip to content

feat(mcp):support higress tool search#337

Merged
AlbumenJ merged 7 commits intoagentscope-ai:mainfrom
qingTang0305:higress-tool
Dec 26, 2025
Merged

feat(mcp):support higress tool search#337
AlbumenJ merged 7 commits intoagentscope-ai:mainfrom
qingTang0305:higress-tool

Conversation

@qingTang0305
Copy link
Contributor

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.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

Change-Id: Ia1745a9f18df02cea558774c9ecb994111d59931
@qingTang0305 qingTang0305 requested a review from a team December 24, 2025 11:28
Change-Id: I2cda9dec214e243973d7695e0471f6b14e6f1a69
@codecov
Copy link

codecov bot commented Dec 24, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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-higress module with builder pattern for client configuration
  • Semantic tool search via the x_higress_tool_search tool 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.

qingTang0305 and others added 5 commits December 25, 2025 14:06
…mples/quickstart/HigressToolExample.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Change-Id: Id5f63549c11dbf6543db8b4af750a5fc57bd8d41
Change-Id: I56d545b70de625b9eda792c3d2731c29a99a71f0
Change-Id: Icdf7424628e0537a5b42ae0a48a98709ab257687
@AlbumenJ AlbumenJ merged commit c1f0cec into agentscope-ai:main Dec 26, 2025
4 checks passed
JGoP-L pushed a commit to JGoP-L/agentscope-java that referenced this pull request Dec 29, 2025
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.

2 participants